Compress Images to an Exact Target Size
Pick your images, choose a target size, and get files that fit — for form uploads, email attachments, visa applications or forum avatars. The smart binary search inside the tool finds the highest quality that still meets your limit. Everything runs locally in your browser, so your images are never uploaded anywhere.
Drop images here, click to browse, or paste from clipboard (Ctrl+V)
JPEG, PNG or WebP · up to 30 MB per file · up to 5 images at a time · processed locally
What is this tool
Compressing an image to an exact target file size is different from generic compression. Instead of guessing with a quality slider and hoping the output lands somewhere reasonable, this tool works backwards: you tell it the size you need — 100 KB, 200 KB, 500 KB, 1 MB, or any custom value — and it searches for the highest image quality that still fits inside that limit. A binary search over quality runs entirely in your browser and typically finishes within a couple of seconds per image. The result is a file that passes strict upload checks: government visa portals, online application forms, email attachment limits, forum avatars, and marketplace listings that reject anything over a specific size. Every result card shows the original size, the final size and the exact percentage saved, so you always know what you are getting before you download.
Quality mode vs target size mode
This page offers two ways to shrink an image. Target size mode is goal-driven: you name the byte limit and the tool binary-searches for the highest quality that fits inside it. Quality mode is preference-driven: you pick a quality level from 10 to 100 with a slider and the image is re-encoded exactly once at that level. Quality mode is faster because there is no search, and it is the right choice when you simply want a good-looking, smaller file without a hard limit. A setting around 60 is similar to what popular smart-compression tools produce, which is why it is the default. Switching between the two modes clears the current batch, since the results follow different rules.
Why compress in your browser
Every image you drop here is decoded, resized and re-encoded on your own device using WebAssembly. The files never leave your browser — there is no server, no upload queue and no temporary storage anywhere. That matters for three reasons. First, privacy: passport scans, ID photos and personal documents stay on your machine, which is exactly what our slogan promises — your images never touch the internet. Second, speed: there is no upload or download round-trip, so even a 20 MB photo starts compressing instantly. Third, availability: the tool works offline once the page has loaded, it costs nothing, and it adds no watermark and no sign-up wall. Your files are processed locally and your images are never uploaded.
How to use it in 3 steps
- Add your images. Drag up to 5 files onto the upload zone or click to browse. Each file can be up to 30 MB, and everything stays on your device.
- Pick a target size and format. Choose one of the presets — 100 KB, 200 KB, 500 KB or 1 MB — or type a custom value in KB. JPEG keeps photos looking natural, WebP reaches tight targets more easily, and PNG stays completely lossless.
- Compress and download. Press the compress button and watch each file move through the queue. Download images one by one, or grab everything at once with the Download all (ZIP) button.
Frequently asked questions
Can I compress an image to an exact size like 100 KB?
Pixel-perfect byte counts are impossible to guarantee for lossy formats, but this tool gets very close: it binary-searches encoder quality until the output lands at or just under your target, and reports the final size on every result card. If an image genuinely cannot fit — for example a huge photo pushed toward 20 KB — the tool tells you clearly and suggests WebP or a smaller resolution instead of silently delivering an unusable file.
Which formats are supported?
You can compress JPEG, PNG and WebP images, and you can also choose the output format. Converting between formats is common and often dramatic: a large PNG screenshot usually becomes far smaller as JPEG or WebP. HEIC files from newer phones are not supported, so convert those to JPEG first.
Are my files uploaded to a server?
No. Compression runs locally in your browser through WebAssembly codecs. Nothing is transmitted, stored or logged. You can even disconnect from the internet after the page has loaded and the tool keeps working normally — there is simply no server to talk to.
Why is WebP more likely to hit a tight target?
The WebP encoder produces much smaller files at the same visual quality than JPEG, especially for photos and screenshots with gradients or flat colors. When your target is tight — say 50 KB for a 2000-pixel photo — WebP usually lands on target at a quality that still looks good, while JPEG often has to drop so low that compression artifacts become visible.