Image Compressor
Set a target size (20 KB, 50 KB, 100 KB or a custom value) and this tool shrinks your image to fit it. JPEG quality is binary-searched so the real encoded file size lands under your limit — no guesswork. If a target is genuinely impossible, the tool says so instead of silently outputting a non-compliant file.
Your files never leave your device. All processing happens on your device. No uploads, ever.
How to use Image Compressor
- 1
Upload an image
Choose a picture from your device.
- 2
Pick a target size
Tap 20/50/100/200/500 KB or enter a custom maximum.
- 3
Compress
Run the compression — the real size is verified.
- 4
Download
Save the compressed image locally.
How compression works
The image is decoded once, then JPEG quality is adjusted so the actual encoded byte count fits under your target. The real file size is read after every step.
Honest limits
If even the lowest quality is still larger than your target, the tool reports it cannot reach the size rather than producing a file that still exceeds the limit.
Private by design
Decoding, resizing and encoding all happen in your browser. No pixels are ever uploaded.
Frequently asked questions
Does it work offline?
Yes. The image is decoded, resized and encoded fully in your browser; nothing is uploaded.
What if my image can't reach the target size?
The tool reports honestly that the file cannot satisfy the requested size instead of producing a non-compliant file.
Which formats are supported?
Any browser-decoded image can be uploaded. Output is JPEG, which lets you hit tight byte targets.
More images tools
Background Remover
Client-SideRemove, replace or blur the background of any image in seconds. Instant solid-background mode plus on-device AI for complex shots — nothing is ever uploaded.
Image Dimensions Checker
Client-SideCheck the pixel dimensions, aspect ratio, megapixels, format and DPI of a JPG or PNG in one click.
Image to Base64
Client-SideConvert an image to a Base64 data URL, or decode Base64 back into a download-ready image. All in your browser.
Image Converter (JPG / PNG / WebP)
Client-SideConvert images between JPG, PNG and WebP in your browser. Adjustable quality for lossy formats, 100% on-device.
Image Cropper
Client-SideCrop an image with a draggable, resizable box and save as JPG or PNG. Crop aspect presets included, 100% in your browser.
DPI Converter
Client-SideChange the DPI metadata of a JPG or PNG to 72, 96, 150, 200, 300 or 600 — without resampling a single pixel.
Related tools
Image Resizer
Client-SideResize an image to exact pixel dimensions in your browser. Aspect ratio is preserved automatically when you set one side.
Image to Base64
Client-SideConvert an image to a Base64 data URL, or decode Base64 back into a download-ready image. All in your browser.
Last updated 7 August 2026