File4Edit

Compress image

Compress an image to a smaller file for free in your browser, with nothing uploaded. Set a quality, or type a target size such as 200KB and File4Edit finds the highest quality that fits. The pixel dimensions never change.

Drag for quality, or name a size and let File4Edit find the quality that fits.

In detail

Compress makes an image file smaller without changing its width and height. In quality mode you set a number between 0.05 and 1.00. In size mode you type a target such as 200kb or 1.5mb, and File4Edit binary-searches the quality in at most eight encodes, keeping the highest quality whose output fits under the target.

The savings come from lossy encoding, so choose WebP or JPEG, or Keep to write each file back in its own format. A photo usually shrinks a long way at quality 0.75 to 0.85 with no visible change. If a target cannot be reached at any quality, the tool says so, and resizing the image first is what gets it there.

Compress image at a glance

Input
JPG, PNG, WebP, AVIF, HEIC, GIF (first frame), BMP, TIFF, SVG and other image formats
Output
The original format, WebP or JPEG, at the same pixel dimensions
What it does
  • Compress by quality or to a target file size
  • Targets in KB or MB, such as 200kb or 1.5mb
  • Batch compression with one ZIP download
  • Before and after sizes with the percentage saved
  • Dimensions are never changed
Who it is for
Anyone facing an upload limit, a slow web page or an email attachment cap.
Limits
  • Keep writes a PNG back as PNG, which saves little; choose WebP or JPEG for real savings.
  • In Safari and on iPhone and iPad, WebP is written by File4Edit's own encoder, which downloads the first time you choose WebP, so that first file takes a moment longer.
  • Dimensions never change, so resize first if a target is out of reach.
Privacy
Runs entirely in your browser: no file is uploaded, and nothing is kept after you close the tab.

How to compress an image

  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 writes each file back in its own format; WebP and JPEG are the alternatives, and WebP is usually the smaller where the browser can write it.
  5. Apply and download Press Apply, then download. Several files come back as a zip.

Compress image: common 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.