How to Compress Images Without Visibly Losing Quality
Large photos slow down websites, fail upload limits and fill email attachments. The good news is that most images can be made much smaller with little visible change. This guide explains how, using the Image Compressor and Image Resizer, which both work inside your browser so your photos are not uploaded.
Two ways to make an image smaller
- Reduce the dimensions. A phone photo is often 4000 pixels wide, far more than a screen needs. Halving the width and height leaves a quarter of the pixels.
- Compress the data. Lower the quality setting so the file stores less detail you are unlikely to notice.
Resizing usually gives the biggest saving. Do it first, then compress.
Lossy vs lossless
- JPG is lossy. It discards fine detail to save space and suits photographs.
- PNG is lossless. Nothing is thrown away, so photos become large, but it is good for screenshots, logos and graphics with sharp edges or transparency.
- WebP can be lossy or lossless and usually gives smaller files than JPG or PNG at similar quality. It is supported by all current major browsers.
What the quality slider does
The compressor takes a quality value between 0.1 and 1.0. At 1.0 the image is stored with the least loss and the file is large. Lower values shrink the file but add visible artefacts such as blocky areas and blurred edges. For most photos, a value around 0.7 to 0.8 gives a big reduction with little visible difference, but the right value depends on the picture, so preview the result. Detailed images with text or fine lines need a higher setting.
Practical targets
| Use | Suggested approach |
|---|---|
| Website or blog image | Width of 1200 to 1600 px at most, quality 0.7 to 0.8, WebP or JPG |
| Email attachment | Resize to about 1600 px on the long side; quality 0.8 |
| Form or portal upload with a size limit | Reduce quality in steps until you are under the limit, checking readability |
| Screenshot or logo | Keep as PNG; reduce dimensions rather than quality |
Common mistakes
- Re-compressing repeatedly. Each save of a lossy image loses a bit more. Keep the original and compress from it.
- Converting a screenshot to JPG. Text gets fuzzy halos. Use PNG or WebP.
- Enlarging a small image. Making it bigger does not add detail.
- Forgetting aspect ratio. Change one dimension and lock the ratio, or the picture will stretch. The Image Resizer has a maintain-aspect-ratio option.
Frequently asked questions
Does compression remove location data from photos?
Re-encoding an image in the browser generally drops metadata such as EXIF, but do not rely on that as a privacy guarantee; check the output if it matters.
Which format should I choose for the web?
WebP for most images; JPG if you need the widest compatibility; PNG for graphics needing transparency.
Are my photos uploaded?
No. Compression and resizing happen on your device.