Skip to content

Compress an image to a target size — under 100 KB, 500 KB or 1 MB

Free · no sign-up · runs in your browser

Compress JPEG, PNG or WebP images to fit under an exact size like 100 KB, 200 KB or 1 MB. The tool searches for the highest quality that fits, shrinks the image only if it has to, and runs entirely in your browser.

Pick one or more files. Nothing is uploaded.

Common limits

1 KB = 1000 bytes, as file managers count.

Only used when even low quality is still too big.

Compressed

Compressed images will appear here.

Files are read, compressed and zipped in this page. Nothing is uploaded — check your network tab.

Upload forms, CMS fields, email templates and store listings often come with a hard limit: under 100 KB, under 1 MB. Guessing a quality slider until the number drops is slow. Here you type the limit and the page does the guessing: it re-encodes the image at different qualities, keeps the best one that fits, and only scales it down when even the lowest quality is too big. Nothing is uploaded.

How it works

  1. 01Pick images and a target size. Presets cover the common limits; any number in KB works.
  2. 02Each image is first encoded at high quality. If that already fits, you get it as is.
  3. 03Otherwise the quality is binary-searched — seven steps narrow it to within a fraction of a percent — and the highest quality under the limit wins.
  4. 04Only when the lowest useful quality is still too large is the image shrunk, 15% at a time, and searched again. Losing pixels is a bigger loss than losing a little quality, so it is the last resort. Untick resizing to forbid it.
  5. 05WebP is the default because it is smaller than JPEG at the same quality and every current browser shows it. AVIF is offered where your browser can encode it.
  6. 06Each row shows the old and new size, the quality used and whether the image was resized; download one or all as a zip.

Use cases

  • Getting a profile photo or logo under an upload form's 100 KB limit.
  • Fitting screenshots under a CMS or documentation platform's per-file cap.
  • Keeping images in an HTML email small enough to load quickly.
  • Meeting a page-weight budget for a hero image.
  • Shrinking a batch of photos for a repository without opening a design tool.
  • Compressing images you would rather not send to an online service.

Frequently asked questions

How do I compress an image to 100 KB?

Pick the image, press the 100 KB preset and download the result. The page tries the highest quality first and searches downward until the file fits; if even low quality is too big, it scales the image down until it fits. The row tells you the quality it used and whether it resized.

Does KB here mean 1000 or 1024 bytes?

1000, the decimal kilobyte that macOS, most file managers and most upload forms use. If a form means 1024-byte kilobytes (KiB), the result still fits, because a 100 KB file is smaller than 100 KiB.

Which format gives the smallest file?

AVIF, then WebP, then JPEG, for most photographs. WebP is the safe default: it is supported everywhere and noticeably smaller than JPEG. Some upload forms only accept JPEG — pick JPEG for those.

Why did my image get smaller in pixels?

Because even the lowest sensible quality was still over your limit at full size. Rather than hand back a file that does not fit, the tool shrinks the image step by step. Untick 'Allow resizing' to keep the original dimensions; you then get the smallest full-size result even if it misses the target.

Can I compress a PNG without turning it into JPEG?

Not to a target size: PNG is lossless and has no quality setting, so there is nothing to search. Converting to WebP keeps transparency and is usually many times smaller. For a true PNG optimiser, a desktop tool like ImageOptim or oxipng is the right choice.

Are my images uploaded?

No. Images are decoded, drawn to a canvas and re-encoded by your browser. The zip is built in the page. There is no server step at any point.

Related reading

More tools