Skip to content
OurImg logo
Compression & optimization

Compress an Image to an Exact File Size

Forms and portals often say “maximum 200 KB” or “under 1 MB”. Guessing a quality setting is tedious, so this tool searches for you: it tries qualities until it finds the highest one that fits your limit.

  • Never uploaded
  • Instant, no sign-up
  • Works offline

Drop images here

Files stay in your browser — nothing is uploaded.

About this tool

The target starts at 200 KB. Change it to whatever your form requires. If the image can't fit even at low quality, you're told, and you can lower the maximum width.

How it works

  1. 1

    Add your image.

  2. 2

    Type the size limit in KB.

  3. 3

    Download the image that fits.

Features

  • Automatic searchQuality is narrowed down in steps to the best value under your limit.
  • Honest resultIf the target can't be reached, the row says so instead of failing silently.
  • Any limitFrom 10 KB signatures to multi-MB print files.
  • Private by designEverything runs on your device. No uploads, no account, no watermark, and EXIF/GPS data is stripped from the result.

Supported formats

Input: JPG, PNG, WebP, GIF (first frame), BMP, SVG, AVIF, plus TIFF/HEIC where your browser can decode them. Output: PNG, JPG or WebP.

Frequently asked questions

Why can't it reach my target?

Very detailed or very large images need more bytes. Lower the maximum width (for example to 1000 px) and it will fit.

Which format works best for small targets?

JPG or WebP. PNG is lossless and can't be squeezed to a target.

Is there a preset for common limits?

Yes — see the 20 KB, 50 KB and 100 KB pages.

Are my images uploaded to a server?

No. Files are decoded, processed and re-encoded by your browser using the canvas API and Web Workers. Nothing is sent to any server, and there is no account or storage. Closing the tab discards everything.

Need more than one tool?

The full editor combines cropping, adjustments, filters, text, shapes and layers in one place.

Open the editor