Compress image

Compress an image to an exact size.

Pick a target like 100 KB. FormatOnce searches quality and, if needed, scales the image down until the encoded file really fits — then shows you the actual size it achieved.

Drop an image to compress

JPG, PNG or WebP up to 20.00 MB. AVIF works only if your browser can decode it.

Choose a file

How it works

  1. 01Choose a JPG, PNG, WebP (or AVIF, if your browser decodes it).
  2. 02Pick a size target and an output format.
  3. 03FormatOnce binary-searches encoder quality, then scales down step by step.
  4. 04The result is only shown as a success when the file is at or under the target.

Limits

  • Input up to 20.00 MB.
  • Output capped at 40 megapixels.
  • Re-encoding removes EXIF and other metadata.
  • JPG has no transparency, so transparent areas become white.

Questions & limits

Will it always hit my target?
No, and it will say so. If even a 10% scale-down cannot fit the target, you get an explicit failure instead of an oversized file.
Why did my PNG lose dimensions?
PNG is lossless, so the only honest way to shrink it to a byte target is to reduce its pixel dimensions. JPG or WebP keep more detail at small sizes.
Is my image uploaded?
No. Decoding and encoding run on a canvas inside your browser tab. Nothing is sent to a server and nothing is stored.
What happens to EXIF data?
Re-encoding drops metadata such as camera info and GPS coordinates. The output contains only pixels.