Compress Image to Size

Set a maximum file size in KB or MB and get the best-looking image that fits, perfect for online forms, applications, email and websites.

NewFreeNo uploadBatch & ZIP
1Add your imagesBatch supported
2Target file size
maximum per image

We search for the highest quality that fits under your limit and only reduce the dimensions when quality alone is not enough. 1 KB = 1,000 bytes, so the result also fits limits that use 1,024.

3Options
Output format

Auto saves JPG (accepted by every form and website), or WEBP when you upload WEBP.

How to use Compress Image to Size

  1. 1

    Add your images

    Drop one or many photos, or paste a screenshot with Ctrl+V. JPG, PNG, WEBP, GIF and BMP are supported.

  2. 2

    Set the target size

    Type a limit such as 50 KB or pick a quick size. Optionally set a maximum width or height.

  3. 3

    Download

    Check the before/after preview, then download each image or all of them as a ZIP.

Compress a photo to an exact file size

Many websites and online forms only accept images below a certain size: 20 KB for a signature, 50 KB for an ID photo, 100 KB or 200 KB for documents, or 1 MB for email and uploads. This tool hits that limit automatically. It searches for the highest JPEG or WEBP quality that fits under your target, and only reduces the dimensions when quality alone cannot get the file small enough.

How it works

  • Quality first: the tool tests quality levels with a binary search and keeps the best one that fits.
  • Smart resizing: if even good quality is too large, the image is scaled down step by step, keeping its proportions.
  • Never bigger than needed: images that already fit are kept unchanged, with no quality loss.
  • Transparent PNGs: transparency is filled with white or a colour you choose, because JPG has no transparency.

Popular target sizes

Tips

  • If a form also asks for exact dimensions (for example 200 × 230 px), set the maximum width and height as well.
  • For print sizes in centimetres or inches, use Resize Image in cm, and to change the DPI use Change DPI.
  • Very small targets (under 10 KB) work best with small photos such as signatures and passport crops.

Frequently asked questions

How do I compress an image to a specific size?
Upload the image, type the size you need (for example 50 KB) and download. The tool finds the best quality that fits under the limit.
Are my images uploaded?
No. Compression runs entirely in your browser. Your photos never leave your device, which makes it safe for ID photos and documents.
Will the image look worse?
We always use the highest quality that fits under your limit, and only shrink the dimensions when quality alone is not enough. Use the before/after slider to check.
Is 1 KB 1,000 or 1,024 bytes?
Forms use both. We compress to 1,000 bytes per KB, so the result also fits limits that count 1,024 bytes per KB.
Can I compress several images at once?
Yes. Add as many images as you like; each is compressed to the target and you can download them one by one or as a ZIP.
Which format do I get?
JPG by default, because every form and website accepts it. You can switch to WEBP, which looks better at the same size.

Related tools