Compress Image to an Exact Size

Shrink any JPG, PNG or WebP to a precise target like 100 KB β€” right in your browser, with nothing uploaded anywhere.

πŸ”’ 100% private β€” images are processed in your browser and never uploaded.

Drop your image here or tap to browse

JPG, PNG or WebP Β· you can also paste with Ctrl+V

Hit an exact file size, not a rough one

Most image compressors give you a slider and a shrug β€” you drag it around, download, check the size, and try again. This tool works the other way round: you tell it the number, and it finds the best possible quality that fits under it. Type 100 KB and you get a file that is at most 100 KB, guaranteed, at the highest quality and largest dimensions that limit allows.

How it works

When you press Compress, the tool runs a binary search over JPEG or WebP quality settings, encoding your image several times and measuring each result until it converges on the highest quality that still fits your target. If even the lowest quality setting is too big β€” say you asked for 20 KB from a 24-megapixel photo β€” it starts scaling the dimensions down too, and repeats the search until the file fits. All of that happens in a background thread, so the page stays responsive even with large photos.

Your images never leave your device

There is no server doing the work here. The compression runs entirely inside your browser using the same graphics engine the browser uses to display images. Nothing is uploaded, nothing is stored, and the tool even keeps working offline once the page has loaded. As a side effect of how browser image encoding works, EXIF metadata β€” GPS location, camera serial number, timestamps β€” is stripped from the output automatically, which is usually exactly what you want before submitting a photo to a website.

When you need an exact size

Exact size caps show up everywhere: government and exam application portals, job sites, university admission forms, visa applications, marketplace listings and email systems all reject files over a fixed limit. If you already know your limit, jump straight to the matching page β€” the target will be pre-filled: 20 KB, 50 KB, 100 KB, 200 KB, 500 KB or 1 MB.

Tips for the best result

Frequently asked questions

Is this image compressor really free?

Yes. The tool is completely free with no sign-up, no watermarks and no limits on how many images you compress. It is supported by ads placed away from the workflow.

Are my images uploaded to a server?

No. All compression happens locally in your browser using the Canvas API. Your image never leaves your device, which also means it works offline after the first page load.

Will the output ever be larger than my target size?

No. The tool guarantees the result is at or below the size you asked for. If a target is impossibly small for the image, it tells you the smallest achievable size and offers that instead.

Which formats are supported?

You can upload JPG, PNG and WebP images. Output is JPG by default because it compresses best, with options for WebP or keeping the original format. HEIC photos from iPhones need to be converted to JPG first.

Does compressing reduce image quality?

JPG and WebP are lossy formats, so some quality is traded for size β€” but the tool always finds the highest quality that fits your target, so you never lose more than necessary.

Other sizes