How to reduce image size without losing quality
Strictly speaking, you can only shave a little off an image without changing a single pixel: removing metadata and re-packing a PNG are truly lossless, and the savings are usually small. Large reductions always remove some information.
What you can do is remove information nobody will see: scale the image to the size it will be viewed at, then use a moderate JPG or WebP quality for photos or a colour palette for graphics. Done that way, the result looks the same on screen at a fraction of the size.
Two honest meanings of “without losing quality”
- Lossless: the decoded pixels are identical to the original. The W3C's PNG specification defines lossless compression as one that “permits reconstruction of the original data exactly, bit-for-bit.”
- Visually lossless: the pixels change, but at the size and on the screen where the picture is used, you cannot tell. This is where real savings come from.
Both are legitimate. The problem is only when a tool promises the second while implying the first. If a 4 MB photo comes back at 400 KB, information was removed; the question is whether you can see it.
Truly lossless savings, and how small they are
Removing metadata. Photos often carry Exif data, defined by the CIPA Exif standard, which the PNG specification sums up as metadata “such as shutter speed, aperture, and orientation”. Dates and location can be in there too; the EXIF remover lists what your file holds. Stripping it leaves the picture data untouched.
Re-packing a PNG. PNG stores pixels with deflate compression after a filter step that the specification calls “deterministic, reversible, and lossless”. A different encoder or different filter choices can produce a smaller file with the same pixels, and decoders “may ignore all or some of the ancillary information” such as text chunks, so those can go too. The PNG compressor has a Lossless only option for this. How much it saves depends on how the original was written, and it is often little.
Changing the DPI value does nothing for size. It is a label for printing; rewriting it leaves the pixels and, in our test, the file size exactly as they were.
Visually lossless: the changes that really shrink a file
1. Fewer pixels, matched to the viewing size
A screen can only show as many pixels as the space the picture fills. Anything beyond that is carried in the file and scaled away every time the picture is displayed. The guide to image resolution explains how to work out the size you need, including for sharp phone screens.
This is the one change where “no visible loss” holds up best, as long as you keep the original for printing or for cropping later.
2. A moderate quality setting for photos
MDN notes that photographs “can usually tolerate lossy compression, because the discarded detail is harder to see.” The trick is not to go too far.
Very high quality settings save little on a file that was already a JPG; here the biggest drop came between 90% and 75%, and each step after that saved less. There is no single safe number, because a busy photo hides compression better than a smooth one. Start around 80%, compare, and only go lower while you still cannot see the difference.
3. A palette for graphics instead of JPG
Logos, icons, screenshots and cut-outs with transparency suffer under JPG: MDN warns that “blurring and colored fringes around text and sharp edges are very visible”. For them, cut the number of colours instead. PNG has an indexed-colour mode with up to 256 palette entries, and every pixel points to one of them.
Graphics with few colours have little to approximate, which is why they survive this well. Photos with smooth gradients do not: at 256 colours a sky can show bands.
How to check you have not lost anything that matters
- Compare at the size it will be used. Then zoom to 100% and look again if it will be printed or cropped.
- Look at the hard places: fine text, sharp edges, skies, skin and dark shadows. Problems show there first.
- Keep the original file. Every lossy save is final, and saving a JPG again and again re-applies the lossy step each time.
- Do not convert a JPG to PNG “to protect quality”. PNG keeps whatever the JPG already had, blur included, in a bigger file.
Doing it in one step
The image size reducer shows a before and after preview so you can judge for yourself. Use Resolution to cap the longest side (for example 1920 px) at a quality of 80% or so, orTarget size if a form or service sets a limit; it lowers quality first and only reduces the dimensions when quality alone cannot reach the target. For the difference between the two kinds of compression in more depth, seelossy vs lossless compression, and for resizing specifically,how to resize an image without losing quality.