Compress images

Compress makes an image file smaller without changing its pixel dimensions, either by setting a quality between 0.05 and 1.00 or by naming a target size such as "200kb" or "1.5mb". In target mode file4edit binary-searches the quality range in at most eight encodes and keeps the highest quality whose output fits under the size you asked for. Every encode runs in a Web Worker in your own tab.

How it works

  1. Add your images Drop the files onto the page. The recipe strip shows the source size and, after processing, the percentage change.
  2. Choose a mode "By quality" gives you the slider, starting at 0.75. "By size" replaces it with a target field and searches for the quality itself.
  3. Set the quality or the target Drag the slider, or type a size like 200kb, 1.5 MB, or a plain number — a bare number is read as kilobytes.
  4. Pick the output format Keep leaves the source format alone; WebP, JPEG and AVIF are the alternatives. AVIF is usually the smallest but needs a Chromium browser to write.
  5. Process and download Press process, then download. Several files come back as a zip.

Questions

How does compressing to a target file size work?
There is no formula from quality to file size — it depends on the image — so file4edit encodes and measures. It binary-searches the quality range in up to eight encodes, keeping the highest quality whose output lands under your target, and stops early if the image already fits at full quality.
What happens if the target size cannot be reached?
You get the smallest file it managed, plus a message naming that size and your target, rather than a silent miss. Compress never changes dimensions, so resizing the image first is usually what gets a stubborn photo under a small target.
Does compressing change the image's width and height?
No. Compress only re-encodes, so the output has exactly the same pixel dimensions as the source. Use the resize tool if you want smaller dimensions as well.

Every tool