Image Tools

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.

No image at hand? (a 3000 × 2000 px dog photo, CC0)

File size

Also set a minimum (for “between 20 and 50 KB”)

Leave it empty if the form only gives a maximum. If the image is too light, quality is raised and, if needed, the image is enlarged.

Format

JPG is accepted everywhere. PNG is lossless: it only gets lighter with fewer pixels. Transparent areas turn white in JPG.

Dimensions

Keeps the original pixels when the size allows it, and reduces them only as much as needed.

How to compress an image to a size in KB

  1. 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.
  2. Add your images. One or hundreds: JPEG, PNG, WebP, AVIF or GIF. Each one is saved again and again until the real file fits.
  3. 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?

LimitTypical useWhat fits (a photo, roughly)
20 KBSignatures and small photos for application formsAbout 400–500 px on the long side
50 KBPassport-style photos for exam and job portalsAbout 700–900 px
100 KBScanned documents, ID cards, CV photosAbout 1,000–1,400 px
200 KBProduct photos, web images, visa uploadsAbout 1,600–2,000 px
1–2 MBEmail attachments, upload limits of websites and appsUsually 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

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.

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

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.