Compress an image to an exact size in KB
Type the size the form asks for (20 KB, 50 KB, 100 KB, 2 MB) and get images that really are under it, at the best quality that fits. One photo or a whole folder, in your browser: nothing is uploaded.
- 100% free, no watermark
- No usage limits or sign-up
- Size checked on the real file
- Nothing uploaded: runs in your browser
No image at hand? (a 3000 × 2000 px dog photo, CC0)
How to compress an image to a size in KB
- Type the size. The number the form or the website gives you: 20 KB, 50 KB, 100 KB, 1 MB… or click one of the common sizes.
- Add your images. One or hundreds: JPEG, PNG, WebP, AVIF or GIF. Each one is saved again and again until the real file fits.
- Download. One file or everything in a ZIP. Change the size or the format and the whole batch is redone in seconds.
Which size do you need?
| Limit | Typical use | What fits (a photo, roughly) |
|---|---|---|
| 20 KB | Signatures and small photos for application forms | About 400–500 px on the long side |
| 50 KB | Passport-style photos for exam and job portals | About 700–900 px |
| 100 KB | Scanned documents, ID cards, CV photos | About 1,000–1,400 px |
| 200 KB | Product photos, web images, visa uploads | About 1,600–2,000 px |
| 1–2 MB | Email attachments, upload limits of websites and apps | Usually the full phone photo |
The pixel figures are a guide for an ordinary photo; pictures with flat backgrounds keep more, very detailed ones less. The tool finds the real answer for each image.
More than a size limit
- Ranges“Between 20 and 50 KB”: set a minimum as well as a maximum and the file lands in between, even if the original was lighter.
- Exact dimensions“200 × 230 pixels and under 50 KB”: fix the pixels, choose whether to crop or add margins, and the weight is fitted afterwards.
- Printed size“3.5 × 4.5 cm at 300 DPI”: enter centimetres, millimetres or inches. The resolution is written into the file. See Resize image in cm.
- Whole batchesEvery image gets the same rules and its own search for the best quality. Several run at the same time, one per processor core.
How it reaches the exact size
Most compressors ask for a “quality” and leave you guessing what the file will weigh. This one works the other way round: it saves the image, weighs the real file and tries again, up to a couple of dozen times, until it finds the highest quality that fits.
- Quality firstIt starts at high quality and lowers it only as far as needed, so a file that asks for little compression keeps almost all its detail.
- Then pixelsIf the image still does not fit at an acceptable quality, it is made smaller step by step. A sharp smaller picture looks better than a big blotchy one.
- Checked on the real fileThe size shown is the size of the file you download, not an estimate. If the limit cannot be met, the row says so instead of pretending.
- Untouched when it already fitsAn image that is already under the limit, in the format you chose, is returned as it is: recompressing it would only make it worse.
Private by design
The usual “compress to KB” sites upload your photo to their servers, and what people compress for forms is exactly what should not be uploaded: ID cards, passport photos, signatures, certificates. Here the images are opened and saved by your own browser. You can check it in the Network tab of your browser’s developer tools, or load the page, go offline and keep working. Recompressed images also lose their EXIF data, including the GPS location; to control exactly what is removed, use Remove EXIF data.
Limitations
- HEIC photos open only in Safari. In other browsers, convert them to JPEG first or set the iPhone camera to “Most Compatible”.
- PNG is lossless: the only way to make a PNG lighter here is to reduce its dimensions. For photos, JPG or WebP give far better results at the same weight.
- WebP can be saved in Chrome, Edge and Firefox. Safari cannot save WebP, so the tool switches to JPG there.
- With fixed dimensions (exact pixels or cm) and a very low limit, the target can be impossible; the row tells you and gives you the smallest file that exists.
- Animated GIFs are saved as a still image of the first frame. Colour profiles are converted to sRGB.
- There is no quota, but very large batches depend on your device’s memory, above all when everything is packed into one ZIP.
Frequently asked questions
Is this image compressor really free?
Yes. It is 100% free, with no usage limits, no account and no sign-up. There is no paid plan, no watermark and no daily quota: compress as many images as you want.
Are my images uploaded?
No. Your images are opened, resized and saved inside your browser and never leave your device. The page only downloads its own code from this site. If you accept analytics cookies, Google Analytics receives anonymous usage data such as page views, never your images or their names.
Will the file really be under the limit?
Yes. The tool saves the image, measures the real file and repeats until it fits, so the size you see is the size you download. To be safe with every form, the limit is counted with 1 KB = 1,000 bytes, which also passes a check that uses 1,024. If a limit cannot be met (for example a lossless PNG with fixed dimensions), the image is flagged instead of being passed off as valid.
How much quality is lost?
As little as the size allows. The tool looks for the highest quality that fits; if that is not enough it reduces the pixel dimensions step by step rather than turning the picture into blotches. Images that already fit are not recompressed at all.
The form asks for a size between two values, such as 20 to 50 KB. Can it do that?
Yes. Set the maximum, open “Also set a minimum” and type the lower value. If the image is too light, the quality is raised and, if necessary, the image is enlarged until the file falls inside the range.
The form also asks for exact dimensions. What do I do?
Under Dimensions choose “Exact (px)” and type the width and height in pixels, or “cm · mm · in” for a printed size with its DPI. The image is cropped or padded to that shape and then compressed to the file size.
Which formats can I use?
It opens JPEG, PNG, WebP, AVIF and GIF (first frame), and HEIC in Safari. It saves JPG, WebP or PNG. JPG is the safe choice for forms; transparent areas become white in JPG.
How many images can I compress at once?
There is no fixed number or quota. Images are processed several at a time on your own device; hundreds of photos are fine on a normal computer. The practical limit is memory, mainly when everything is packed into one ZIP.
Analytics: only if you accept cookies, the page loads Google Analytics (through Google Tag Manager) to count visits and see which tools are used. It never receives your photos, their names or their metadata. You can change your choice at any time with “Cookie settings” at the bottom of the page.