IMG / 01 · exact-size compression
Compress image to exact size
Name a limit in KB or MB. Get the best-looking file that fits under it. Nothing leaves your device.
Zooly is still building this one. The interface below is the real thing, switched off until the compression engine ships. Nothing here will accept a file yet — we would rather show you what is coming than fake a progress bar. Read how it will work.
- 1 Choose
- 2 Compress
- 3 Download
No upload · processed on device · metadata stripped
How to compress an image to an exact size
- 01
Choose your image
Drop a file on the tool or press the button to pick one. Because nothing uploads, a large file costs you no waiting — a 40 MB camera JPEG starts processing as fast as a screenshot.
- 02
Set the target
Pick a preset or type an exact number in KB or MB. This is a ceiling, not a goal: the result will be at or under it, never over.
- 03
Let the search run
The tool encodes at several quality levels and narrows in on the highest one that still fits, rather than encoding once at a guessed setting. On Auto, dimensions are only reduced if no quality level can reach the target.
- 04
Check and download
You see the original size, the new size and the reduction as a percentage, with a preview to judge the result. Aspect ratio is preserved and camera metadata is dropped.
Privacy
Your image is decoded, compressed and re-encoded inside this browser tab. It is never sent to ToolZool or to anyone else, there is no upload queue, and nothing is stored — which is also why we cannot see what you processed.
- No upload — there is no endpoint to send a file to
- Nothing stored, so there is nothing for us to delete or leak
- Camera, timestamp and GPS metadata are dropped by re-encoding
- Works offline once the page has been visited
Supported formats
Accepts
JPGPNGWebPAVIF
Produces
JPEGWebP
Practically around 50 MB in a normal browser tab. The limit is your device's memory, not a server quota.
Who uses this
Students and applicants
A portal that will only accept 50 KB. Exam boards, visa forms and job sites cap uploads. Set the number, keep the face recognisable.
Site owners
Images that do not wreck page speed. Hit a per-image budget before upload, so Core Web Vitals stay green without a build step.
Office and admin
A photo too big to email. Bring an attachment under the limit without opening desktop software.
Anyone with a phone
Huge camera files. Modern phone cameras produce 10–20 MB images that most forms simply refuse.
Limitations
- Compression is lossy. If your original is far above the target, some quality loss is unavoidable — the tool minimises it, it cannot eliminate it.
- Screenshots of text and UI compress badly as JPEG. Below roughly 100 KB they go visibly soft; reducing dimensions usually looks better than pushing quality down.
- Re-compressing an already-compressed file compounds the loss. Work from the original whenever you have it.
- Very large files are bounded by your device's memory rather than by any quota we set. On a phone, expect trouble well before 50 MB.
- Animated GIFs and multi-frame images are not supported; the first frame would be all that survived.
Questions about this tool
Will the image lose visible quality?
Some, unavoidably, if the original is far above the target. ToolZool minimises it by finding the highest quality that still fits, and reducing dimensions only when quality alone cannot get there.
Which formats can I put in?
JPG, PNG, WebP and AVIF. Output is JPEG or WebP; WebP reaches a given size at better quality, but check the form you are submitting to accepts it.
Is there a file size limit?
Practically around 50 MB in a normal browser tab. The constraint is your device memory rather than a server quota.
Is EXIF and location data removed?
Yes. Re-encoding drops camera, timestamp and GPS metadata. Orientation is applied to the pixels first, so the image does not come out rotated.
Does the result go over my target?
No. The target is treated as a ceiling. If no setting can reach it — which happens when a target is very small and the image very detailed — the tool tells you the smallest size it managed instead of silently handing you a file that is too big.
Related tools
Related guides
How-to · 7 min
How to hit a 50 KB limit without wrecking the photo
The order of operations that keeps a heavily compressed photo looking like a photo, and the one mistake almost everyone makes first.
Updated 1 September 2026
Technical · 11 min
What happens when a browser compresses an image
Decoding, colour transforms, discrete cosine transforms and quantisation — where the quality actually goes, and why doing it in a tab is now realistic.
Updated 1 September 2026
Troubleshooting · 6 min
Why an upload form keeps rejecting your file
Size caps, dimension caps and format checks look identical from the outside — the error message is usually the same unhelpful sentence. Here is how to tell them apart.
Updated 1 September 2026
About this tool
Most image compressors give you a quality slider and leave you to guess. That is the wrong way round, because the constraint you were handed is a number: 50 KB for an exam portal, 2 MB for an email attachment, 500 KB for a page that has to stay fast. This tool works from the number. It searches encoder quality levels for the highest one whose output still fits under your target, and only reduces dimensions when quality alone cannot get there. You get the largest file that fits — which is also the best-looking one.
