Skip to content
Free ToolUtilities

Compress an image to a target file size

Choose a target KB size and this browser tool searches for the highest quality export under that limit. Files stay on your device.

Use this tool free

Browser tool

Image file size targeter

Runs locally in your browser. The selected image is not uploaded by this tool.

JPEG, PNG, and WebP are supported by default. Specialized converters restrict the file picker to their required input format.

Choose an image to start.

How to use

1

Upload images

Drag and drop JPEG, PNG, or WebP files into the drop zone, or click to browse. Each file can be up to 50 MB.

2

Set target size

Enter the maximum KB size required for your upload or website performance budget.

3

Download the closest match

Run the targeter, review the output size, and download the browser-generated file. If it cannot hit the exact cap, use the warning to adjust the target.

Features

1

Target KB input

Set an exact file size goal, then let the browser find the highest quality output under that limit.

2

Fast size presets

Pick common limits like 50 KB, 100 KB, 200 KB, 500 KB, or 1 MB, then fine-tune the exact number when a form has a strict upload cap.

3

Closest-match warnings

If the requested size is too aggressive for the image dimensions, the tool explains the closest export and suggests raising the target or resizing first.

4

Private browser export

Compression runs with Canvas and Blob APIs in your browser. The image is not uploaded to a server before download.

After this task

After this free tool, open Ai Enhance for the next AI editing workflow.

Continue with Ai Enhance

Specifications

Supported formatsJPEG, PNG, WebP
Max file size50 MB per image
Search range20–95% canvas export quality
Typical reduction40–80 % smaller
Target presets50 KB, 100 KB, 200 KB, 500 KB, 1 MB
ProcessingClient-side (no upload)

Related Magic Eraser Tools

Common questions

Why did the result miss my exact target?

+

Some images cannot fit under very small limits without resizing dimensions. The tool returns the closest browser export and tells you when to raise the target or resize first.

Should I compress images before uploading to my website?

+

Yes. Smaller images load faster, improve Core Web Vitals scores, and reduce bandwidth costs. Aim for under 200 KB per hero image and under 100 KB per thumbnail.

What happens to PNG uploads?

+

PNG uploads are exported as WebP because target-size workflows usually need the smallest acceptable web file. Use the PNG to JPG or WebP converter if you need a specific format.

Compressed but blurry?

AI Enhance can restore sharpness and detail to over-compressed images. Run your photo through the enhancer after compressing for the best of both worlds.

Try it free