Image Compressor

Shrink image file size with adjustable JPG or WebP quality and an optional maximum width, with before/after sizes.

Why use this tool?

Make image files smaller for websites, email or upload limits by adjusting quality and optionally reducing the width. You see the real before and after sizes.

How to use it

  1. Upload an image.
  2. Choose JPG or WebP, a maximum width and a quality level.
  3. Click Compress, compare sizes, then download.

How compression shrinks a file

JPG and WebP are lossy formats: they discard detail the eye is least likely to notice, such as subtle color variation in busy areas. The quality setting controls how much is discarded. Lower quality means smaller files and, eventually, visible artifacts like blockiness around edges and banding in smooth skies.

The other lever is the maximum width. File size grows with the number of pixels, so halving the width cuts the pixel count to a quarter. For photos straight from a phone (often 4,000 pixels wide), reducing the width usually saves far more than lowering quality.

Settings that work well

For web pages, a maximum width of 1,600-2,000 pixels and a quality of 75-85% is a good balance: most people can't tell the difference from the original, and files are often 80-90% smaller. For email or chat, 1,200 pixels at 70-80% is plenty. Below about 60% quality, artifacts become noticeable on most photos.

WebP typically produces files 25-35% smaller than JPG at similar visual quality, and every current browser supports it. Use JPG when the image is going somewhere that may not accept WebP, such as some older upload forms.

Things to keep in mind

Compress from the original each time. Re-compressing an already-compressed JPG adds a fresh round of artifacts without saving much. Keep your originals and treat compressed copies as exports.

JPG has no transparency, so a PNG logo with a transparent background will lose it if exported as JPG; choose WebP to keep it. Graphics with sharp text or flat colors often compress better as PNG than as JPG.

The tool shows the real file size before and after, so you can try a couple of settings and keep the best one. Your image is processed in your browser and never uploaded.

Frequently asked questions

What quality setting should I use?

Start at 80%. If the file is still too big, reduce the maximum width before lowering quality further.

Why is my compressed file bigger than the original?

This happens when the original was already heavily compressed or small. Keep the original in that case, or reduce the width.

JPG or WebP?

WebP for websites (smaller files, supports transparency); JPG when you need maximum compatibility with older software.