Home/Image Tools/Image Compressor
🗜

Image Compressor

FREE

Re-encode JPG, PNG or WebP at a chosen quality to cut file size

Free · No sign-up required
Loading...

What the image compressor does

The compressor re-encodes an image at a quality level you choose, in JPG, PNG or WebP, and shows the size before and after so you can judge the trade-off. It uses the browser's own image encoder through the Canvas API, which means the picture is decoded, redrawn and re-saved on your device — nothing is uploaded. Typical results: a 4 MB phone photo becomes 400–800 KB at 80% JPEG quality with no visible difference at normal viewing size.

How lossy compression works

JPEG and lossy WebP discard information the eye is bad at noticing: fine colour detail (the eye resolves brightness far better than hue), and high-frequency texture in busy areas. The encoder splits the image into small blocks, converts each to frequency components, and rounds the least-visible components toward zero. The quality slider controls how aggressive that rounding is. Because the discarded data is gone for good, re-compressing an already compressed image loses a little more each time — always compress from the best original you have.

QualityTypical size vs original JPEGVisible effect
90–100%70–120%None; often larger than the source at 100%
80%40–60%None at normal size — the sweet spot
70%30–45%Slight softening in fine texture
50%15–30%Blockiness in gradients, halos around edges
30% and belowunder 15%Obvious artefacts; suitable only for thumbnails

Choosing an output format

  • JPG — photographs and anything with gradients. Universally supported; no transparency.
  • WebP — 25–35% smaller than JPG at equal quality, supports transparency, and is accepted by every current browser. Some older desktop software and email clients still cannot open it.
  • PNG — lossless, so the quality setting has no effect. Choose it for screenshots, logos, text and line art, where JPEG halos would be visible. It is the wrong format for photos: a photo saved as PNG is often 5–10× larger than as JPG.
  • Same as original — keeps the format and just re-encodes at the new quality.

Why compression alone is sometimes not enough

File size depends on pixel count as much as on quality. A 4,000 × 3,000 photo has 12 million pixels; a web page or chat app displays it at 1,200 pixels wide at most. Resizing to 1,600 px on the long edge cuts the pixel count by 85% before any quality reduction, and the result still looks sharp on a phone or laptop screen. For the smallest files, resize first with the Image Resizer, then compress. If you need to hit an exact limit (a 200 KB upload cap, say), use Compress to Target Size, which searches for the quality that lands under the limit.

What happens to metadata

Redrawing through a canvas strips EXIF data: camera model, exposure settings, date taken and GPS location are all removed from the output. For sharing publicly that is usually desirable — location data in particular is something most people do not intend to publish. If you need to keep the metadata (for photography portfolios or archiving), use the JPG Compressor (Keep EXIF) tool, which copies the original EXIF block into the compressed file.

Common uses

  • Shrinking photos for email or messaging without visible loss.
  • Preparing product and blog images for the web, where page weight affects search ranking and load time.
  • Meeting upload size limits on job sites, government portals and marketplaces.
  • Reducing a folder of phone photos before backing up to limited cloud storage.
  • Converting PNG screenshots that were saved as photos into properly sized JPGs.

Frequently asked questions

Why is my file larger after compressing?

Either the quality was set higher than the original was saved at, or a photo was saved as PNG. Try 80% JPG or WebP.

Will compressing reduce the image dimensions?

No. The pixel width and height stay the same; only the encoding changes. Use the resizer to change dimensions.

Is 80% quality really enough?

For viewing on screens, yes — double-blind tests consistently show viewers cannot distinguish 80% from 100% at normal size. Use 90% for images that will be printed large or edited further.

Does it work on GIF or SVG?

GIFs are converted to a static image of the first frame. SVG is vector and cannot be meaningfully compressed here; use a dedicated SVG optimiser.

Are my photos uploaded to a server?

No. Decoding and re-encoding happen in your browser with the Canvas API. The tool works with the internet disconnected once loaded.

Can I compress many images at once?

This tool handles one image at a time. Run it repeatedly, or for large batches use desktop software such as ImageOptim, Squoosh (offline) or a command-line tool.

More tools in this category

📐
Image Resizer
Resize to exact pixels or a percentage with locked aspect ratio
Image Cropper
Crop freely or to 1:1, 4:3, 3:2 and 16:9 presets
🔄
Image Converter
Convert any image to JPG, PNG or WebP
💧
Image Watermark
Add a single or tiled text watermark with custom opacity
🔍
EXIF Data Reader
See camera settings, date and GPS location hidden in a photo
📱
HEIC to JPG
Convert iPhone HEIC photos to JPG