Compress an image to an exact file size

Forms keep saying "max 100 KB"? Type the limit, drop your photo, and get the sharpest image that still fits.

🔒 100% in your browser — files are never uploaded

Follow a worked example

  1. Choose the 20 KB preset and JPG output, then open the sample JPG.
  2. Check the target badge before downloading. The 53.3 KB, 640 × 640 source came out at 19.3 KB and 490 × 490 at quality 42 in this browser. Encoding results can differ by browser.
A JPG under the 20 KB target
A JPG under the 20 KB target

Example photo · NASA / Apollo 17

How it works

Most compressors make you guess a quality setting and try again. This tool tests many quality levels for you and keeps the highest one that fits under your limit. If even the lowest quality is too large, it shrinks the image dimensions a little at a time until it fits.

Common size limits

Frequently asked questions

Does 100 KB mean 100,000 or 102,400 bytes?

Different sites count differently, so we use the stricter 100,000 bytes. Your file will pass either way.

Should I choose JPG or WebP?

Choose JPG when you're uploading to a form, since every site accepts it. Choose WebP for your own website, where it gives better quality at the same size.

Is my photo uploaded?

No. Compression happens entirely in your browser.

Need a tool that doesn't exist yet?

Every tool here started with something I found annoying, and I keep adding new ones. If there's a task that's inconvenient or a tool you wish worked differently, tell me. Your idea could be the next tool.

Request a tool