How to compress a PNG without losing quality

PNG files can often be made smaller with no visible change, and sometimes with no change at all. Here is how lossless optimization works, how much it saves, and what to do when it is not enough.

Open the PNG page of the image compressor, add your files, choose Balanced or Best quality for lossless optimization, and press Compress images. Pixels stay identical; only the packing improves. For a bigger saving, try Smaller file, which reduces the image to 256 colors.

Do it in your browser

Why a PNG is large and what lossless compression can do

PNG stores an image without discarding any information. Pixels are filtered and then packed with a general-purpose compressor. That is great for exact reproduction but means the file size is driven by how complex the picture is. A flat logo of a few colors is tiny, while a photograph saved as PNG can run to many megabytes, because photographic detail has little pattern to exploit.

Lossless compression means finding a more efficient way to store the same pixels. Software that exports PNG often does it in a hurry, using fast settings and leaving metadata, color profiles or unused data in the file. An optimizer tries several filter and packing strategies and keeps the smallest result. The picture is identical, bit for bit, but the file is smaller. Gains depend on where the PNG came from: screenshot tools and design exports often shrink by a quarter or more, while files that were already optimized shrink very little.

There is also lossy PNG: reducing the number of colors, usually to a palette of 256, before packing. It is not strictly lossless, but for interface screenshots, diagrams and logos the change is rarely visible, and the saving is much larger.

How to compress a PNG without visible loss

  1. Open the image compressor's PNG page. Output format is preset to PNG, so the file stays a PNG with its transparency intact.
  2. Drop the files onto the page or press Choose images. A screenshot can be pasted straight from the clipboard with Ctrl+V (Command+V on a Mac).
  3. Pick Balanced or Best quality for strictly lossless optimization. Use Smaller file only if you need a larger saving and can accept the 256-color palette.
  4. Press Compress images. Large PNGs take a little longer, because the optimizer tries several ways of packing the data and keeps the smallest.
  5. Use Compare before and after to check gradients, shadows and photos inside the screenshot, then press Download or Download all as ZIP. If a file is marked Already optimized, the original is kept because a new copy would have saved less than 2 percent.

What to expect from each setting

Results depend on the image, but the pattern is consistent.

  • Balanced and Best quality: lossless. The result is pixel-identical. Typical saving on a quickly exported PNG: 10 to 40 percent; on an already optimized file: close to zero.
  • Smaller file: converts the image to at most 256 colors before packing. Saving often 50 to 70 percent on flat artwork and screenshots; gradients may show slight banding.
  • Maximum width or height: not lossless, since it removes pixels, but it is the most effective way to cut size when a PNG is much larger than it will be displayed.
  • Output format JPG or WebP: not PNG anymore, and much smaller for photos. Transparency is lost with JPG.

Which images tolerate the 256-color mode

Interface screenshots, diagrams, charts and logos are made of flat regions and a limited set of colors, so 256 well-chosen colors cover them almost perfectly. Photographs, soft shadows, gradients and color emoji have thousands of shades. Reducing them can cause visible bands in skies or skin tones.

A simple test is to open the Compare before and after view and zoom in on the smoothest area. If you cannot see steps in a gradient, the palette is fine. If you can, keep the lossless setting for that file.

Metadata and color profiles

The compressor removes text chunks, notes left by editing software and embedded color profiles, and converts colors to sRGB. For screenshots and web graphics that is what you want, since those extra chunks add weight and the screens use sRGB anyway. If you work with a wide color profile for print, do your optimization in an editor that preserves it instead.

When a PNG simply should not be a PNG

If the image is a photograph, no lossless trick will get it small. A 12-megapixel photo in PNG may weigh 15 to 25 MB; as a JPG at good quality it might be 3 to 5 MB, and as WebP smaller still. Use the compressor with JPG or WebP output, or the image converter for a plain format change. For a transparent image where PNG is not required, WebP keeps the transparency at a fraction of the weight.

If the picture is too big only because its dimensions are huge, resize it with the image resizer. A 4000-pixel-wide screenshot displayed at 800 pixels carries 25 times the pixels it needs.

Hitting a specific KB target with a PNG

PNG has no quality slider, so a target such as 100 KB is reached by reducing pixels or colors rather than quality. Set a maximum width or height, choose Smaller file, and compare. If the form accepts JPG, switching format is far easier; our guide on reducing image size in KB explains the order of steps, and convert PNG to JPG covers the transparent background question.

Frequently asked questions

Can you compress a PNG without losing quality?

Yes. Lossless optimization repacks the same pixels more efficiently, so the result is identical to the original. Savings depend on how the PNG was made.

Why is my PNG so large?

PNG keeps every detail, so photographic or high-resolution images need a lot of data. A 1920 by 1080 screenshot may be a few hundred kilobytes, while a photo can pass 3 MB.

Is transparency kept when I compress a PNG?

Yes, both lossless optimization and the 256-color palette preserve transparent areas. Only JPG output removes it.

What does the 256-color option do to a screenshot?

Usually very little that you can see. Check gradients, photos inside the screenshot and color emoji, where slight banding can appear.

Should I convert my PNG to WebP or JPG instead?

For photos and website images, yes. WebP keeps transparency and is much smaller. Keep PNG when a tool demands it or when you need exact pixels.

Why does it say Already optimized?

The file was already packed as tightly as lossless compression allows, so a new version would have saved less than 2 percent.

Does compressing remove EXIF data?

Yes. Text chunks, editor notes and embedded profiles are dropped, which is usually welcome for web use.

More guides

Updated Nov 20, 2026