Image
Compress Image to an Exact Size
Give it a file and a number in kilobytes. It searches the quality settings and finds the largest one that still fits.
JPEG, PNG or WebP. The file is read in this tab and never sent anywhere.
The result lands at or just under this number — never over it.
Choose an image to begin.
Some forms do not ask for a smaller image, they ask for a number: a profile photo under 100 KB, a scan under 500 KB, an attachment that must fit inside 2 MB. A quality slider does not help with that, because the only way to find out what a slider setting produces is to export the file and look.
This tool works the other way round. You type the limit, and it re-encodes the picture repeatedly — measuring the output each time — until it finds the highest quality that stays under your number. On a typical photograph that takes a handful of attempts and a second or two. If the target is out of reach, it says so and tells you the smallest file it could actually make.
How to use it
- Choose an image. JPEG, PNG and WebP all open; a PNG will be flattened to JPEG unless you pick WebP.
- Type the target in kilobytes, or press one of the four preset buttons. Read the limit from whatever is asking for the file — it is usually written next to the upload button.
- Leave Reduce the dimensions ticked unless the pixel count matters. When quality alone cannot reach the target, the tool steps the width and height down by ten percent at a time, which is far less damaging than crushing the quality to nothing.
- Press Compress to target and read the result: original size, output size, the dimensions it settled on, the quality value it found, and the space saved.
- Check the preview, then press Download. The filename includes the target so you can tell versions apart.
Privacy
The picture is opened with the browser's file API and drawn onto a canvas in memory. There is no upload, no server, no account and no temporary copy on anyone else's disk — closing the tab discards everything. Re-encoding also strips EXIF, so camera details and GPS coordinates do not travel with the output file.
Questions
Why not just use the quality slider?
Because you do not know the number it produces until after the fact. If a form says 200 KB maximum, guessing means exporting, checking, lowering the slider and exporting again. This tool takes the number you have to hit and searches for it: up to fourteen re-encodes, each one measured, until the file lands at or just under your target.
What happens if the target is impossible?
Below a certain size a photograph simply cannot be compressed without falling apart. The tool tests the lowest quality it is willing to use, then steps the dimensions down by ten percent at a time if you have allowed that. If it still cannot reach your number it stops and tells you the smallest file it could produce, rather than looping or handing you something that misses the target silently.
Does it remove EXIF and GPS data?
Yes. The image is redrawn onto a canvas and re-encoded, so the camera make, capture settings, timestamps and any location tag are not carried over — the output contains picture data only. That is usually what you want before posting a photo publicly, but it does also mean the orientation tag is gone, so check the preview is the right way up.
Is the quality loss visible?
At the sizes most forms ask for, a 100 KB photographic JPEG usually looks clean on a screen and only shows weakness in gradients and fine texture. Anything under about 30 KB will look soft, and text in screenshots degrades much earlier than faces do. The tool reports the quality value it settled on so you can judge it, and shows the result before you download.
Is my image uploaded anywhere?
No. The file is read with the browser's own file API and processed in memory on your machine. There is no server component, no queue and no copy left behind after you close the tab.