Compress image to a file size

Make a JPEG or WebP that fits a target file size, with quality and dimension adjustments.

Processed on your device

Your files

Choose a file from your device25 MiB per file. Files stay in this tab.Drag and drop a file here, or browse below.

Options

Options
The search starts at this quality and lowers it until the size fits. Higher quality usually keeps more detail.

How to use this tool

  1. Choose a PNG, JPEG or WebP image and the maximum file size.
  2. Allow dimension reduction if the target is small. The result reports its actual bytes and dimensions.

Things to know

  • Up to 25 MiB per image, 50 MiB combined and 16 million pixels per image. Results are created in a local worker. Metadata is removed and colours may change on re-encoding.
  • Compression is lossy. A result is only offered when its actual encoded size fits; otherwise increase the limit or allow smaller dimensions. JPEG uses a white background.
  • Processing and results stay on this device. Inputs are bounded; no work is saved between visits.

You might also need

More in images & design