Compress to target size

Compress an image to an exact size in KB

Type the limit a form or website gives you. The tool searches for the highest quality setting that fits under it and tells you plainly if it can't.

  • Processed on your device
  • No upload
  • No watermark

Drag & drop your image here

or

JPG, PNG, WebP · up to 50 MB · nothing is uploaded

KB

Result

Choose an image and a target size. The result shows the exact byte count so you can check it against the limit.

What this tool does

Many application forms, job portals and government websites reject photos above a fixed size, often 20 KB, 50 KB, 100 KB or 200 KB. This tool re-encodes your image as JPG or WebP and tries quality levels until it finds the highest quality setting it can find whose file is at or under your target (the search is accurate to about one quality step). If even the lowest sensible quality is too big, it can shrink the width and height step by step until the file fits.

The result card shows the exact number of bytes. The green "Meets target" label only appears when the file really is at or below the limit. If the target can't be reached, you get a clear message and the smallest version we managed, labelled as not meeting the target.

When it's useful

  • Passport-style or ID photos for online applications with strict size caps.
  • Signature scans that must be under 20 KB or 50 KB.
  • Email attachments, forum avatars and marketplace listings with upload limits.
  • Making a large phone photo small enough to send over a slow connection.

How to use it

  1. Choose or drop one image (JPG, PNG, WebP, GIF, BMP or AVIF).
  2. Enter the target size, or tap a common value like 50 KB.
  3. Pick JPG unless the website asks for WebP.
  4. Press Compress to target and check the byte count on the result.
  5. Download the file and upload it where you need it.

KB vs KiB: which one does the website mean?

Some systems count 1 KB as 1,000 bytes, others as 1,024 bytes. A file that is "100 KB" under one rule can be over the limit under the other. The default here is 1 KB = 1,000 bytes, which is the stricter reading, so the file fits either way.

Target1 KB = 1,000 bytes1 KB = 1,024 bytes
20 KB20,000 bytes20,480 bytes
50 KB50,000 bytes51,200 bytes
100 KB100,000 bytes102,400 bytes
200 KB200,000 bytes204,800 bytes

Practical examples

  • A 4 MB phone photo to 100 KB: usually needs both lower quality and smaller dimensions. Expect a result around 1,200–1,600 px wide, which still looks fine on screen.
  • A signature scan to 20 KB: scans with lots of white space compress very well; quality often stays high.
  • A 300 KB image to 250 KB: a small reduction; the dimensions are normally kept.

Supported formats and limits

  • Input: JPG, PNG, WebP, GIF (first frame only), BMP and AVIF where your browser can read it. HEIC iPhone photos aren't supported by browsers; set your camera to "Most Compatible" or export as JPG first.
  • Output: JPG or WebP. PNG is lossless, so its size can't be steered to a target.
  • Transparent areas become a solid colour in JPG (white by default).
  • Very small targets for very detailed photos may need large reductions in dimensions. If you turn off resizing, some targets simply can't be reached, and the tool will say so.
  • Maximum file size is 50 MB. On iPhone and Safari, images above about 16.7 megapixels are first scaled to fit the browser's canvas limit, and you'll see the new dimensions.
  • Metadata such as camera details and GPS location is removed from the output. The photo is turned upright using its orientation tag first.

Other tools