Home / Blog / How to Compress a PNG Without Losing Quality
Guide

How to Compress a PNG Without Losing Quality

By Pixel Shine Team·28 June 2026·10 min read
How to Compress a PNG Without Losing Quality: before and after

PNG files are lossless, which is why they get huge. Here are the three real ways to make them smaller, and which one keeps your transparency and crisp edges.

PNG is the format for crisp screenshots, logos with transparent backgrounds and graphics with sharp text. It's also the format that fills up your storage and slows down your website, because a PNG keeps every single pixel exactly as it is.

"Compress a PNG without losing quality" can mean two things: truly lossless (not one pixel changes) or visually lossless (nothing you can see changes). This guide explains why PNGs are big, then gives three honest ways to make them smaller, and which to choose for logos, screenshots and photos.

Why are PNG files so large?

PNG uses lossless compression: it looks for repeated patterns, such as a row of identical white pixels, and stores them efficiently, but it never throws anything away. That works brilliantly for flat-colour graphics, where there's lots of repetition. It works badly for photos, where almost every pixel is a slightly different colour, so there's little to compress.

That's why a logo might be 20 KB as a PNG while a photo saved as PNG can be 10 MB, five to ten times bigger than the same photo as a JPG. A PNG also stores an extra alpha channel when it has transparency, which adds to the size.

Way 1: Lossless optimisation (every pixel kept)

Lossless optimisers re-pack a PNG more efficiently: they try different compression settings, strip hidden metadata, and simplify how colours are stored. The image is pixel-for-pixel identical afterwards, but the file is typically 5–30% smaller.

Free tools that do this well include ImageOptim (Mac), Squoosh in your browser with the OxiPNG option, and command-line tools like OxiPNG and pngcrush for developers.

Use it when: the PNG must stay a PNG and must not change at all, for example a brand logo master or a screenshot used as evidence.

Limitation: the savings are modest. A 5 MB PNG photo won't become 500 KB this way.

Way 2: Convert to WebP (transparency kept, much smaller)

WebP supports transparency like PNG but compresses far better. For logos, icons, stickers and graphics with see-through areas, a high-quality WebP is often 50–80% smaller than the PNG and looks the same.

How to do it

1. Open the PNG to WebP converter.

2. Upload your PNG.

3. Download the WebP. It's saved at high quality (0.92), which is visually identical for almost all graphics, and transparent areas stay transparent.

Use it when: the image is for a website or an app, which all modern browsers support.

Limitation: a few older programs and some upload forms don't accept WebP. Keep the PNG as a backup.

Way 3: Convert to JPG (for photos)

If your PNG is actually a photo, or a screenshot of one, it shouldn't be a PNG at all. Converting to JPG typically cuts the size by 80–90% with no visible difference at normal viewing sizes.

How to do it

1. Open the PNG to JPG converter, or the image compressor if you also need a specific file size.

2. Upload the PNG and download the JPG.

Use it when: the image is photographic and has no transparency.

Limitation: JPG has no transparency; see-through areas become white. And JPG can soften the edges of small text, so keep PNG or WebP for text-heavy screenshots.

Which way for which image?

  • Logo or icon with transparency, for a website: convert to WebP.
  • Logo master file you'll edit later: keep PNG, optimise losslessly.
  • Screenshot with small text: keep PNG or convert to WebP; check the text.
  • Screenshot of a photo or video frame: convert to JPG.
  • Photo saved as PNG by mistake: convert to JPG.
  • Transparent product cut-out for a shop: WebP for the website; keep the PNG for marketplaces that require it.

Shrink the dimensions too

Often the biggest saving comes from fewer pixels, not cleverer compression. A screenshot from a 4K monitor is 3840 pixels wide; shown in a blog post at 800 pixels, three-quarters of its data is wasted. Resize it to the display width with the resize tool, then convert or optimise. Resizing a PNG down doesn't add compression artefacts; the edges stay clean.

For retina screens, use about twice the display width: an image shown at 600 pixels looks crisp at 1200.

Checking that nothing was lost

After compressing, open the original and the new file side by side at 100% zoom and look at:

  • Edges of text and lines: any fuzz or halo?
  • Smooth gradients: any banding (visible stripes)?
  • Transparent edges: any white or dark fringe around a logo?
  • Fine detail: hair, fabric, small icons.

If you can't tell them apart at 100%, the compression is visually lossless and nobody will ever notice.

Common mistakes

  • Saving photos as PNG "for quality". It doesn't improve quality; it just makes files huge.
  • Converting a transparent logo to JPG. You'll get a white box around it.
  • Re-saving a JPG as PNG to "fix" quality. It can't restore lost detail; it only makes the file bigger.
  • Compressing the only copy. Always keep the original master file.

PNG-8 vs PNG-24: the hidden size switch

PNG comes in two main flavours. PNG-24 (or PNG-32 with transparency) stores millions of colours and is what most apps save by default. PNG-8 stores at most 256 colours, like a GIF, and can be a fraction of the size.

For flat graphics, such as icons, simple logos, diagrams and many screenshots of interfaces, 256 colours is often enough, and converting to PNG-8 is the trick behind most "smart PNG compression" tools. For photos, gradients and shadows, 256 colours causes visible banding, so stick with WebP or JPG instead.

Design apps usually offer the choice when you export ("PNG-8" or a colour count setting). If you control the export, try PNG-8 for simple graphics first.

Screenshots: special advice

Screenshots are where people most often end up with huge PNGs. A few habits help:

  • Capture only what you need. Use your system's area-capture shortcut rather than the whole screen.
  • Resize retina screenshots. On high-resolution displays, screenshots are twice the size you see. Halving them in the resize tool often looks identical in a document or post.
  • Keep text crisp. For documentation with small text, WebP or PNG keeps letters sharp; JPG can make them fuzzy.
  • Crop away browser chrome. Tabs and toolbars add pixels without adding information.

PNG compression for websites in practice

On a website, the best approach is usually to keep your master PNG in your own files and publish a WebP copy. Modern platforms often do this automatically, so check whether your site builder or CMS already converts images before you do it by hand.

If you must publish PNG, for example in an email template or an older system, run it through a lossless optimiser and keep its dimensions no larger than twice the width it's displayed at. Those two steps alone often halve the weight of a page full of PNG graphics.

Frequently asked questions

How do I compress a PNG without losing any quality?

Use a lossless optimiser such as ImageOptim or Squoosh with OxiPNG. Every pixel is kept and the file shrinks by roughly 5–30%.

What's the best way to make a PNG much smaller?

Convert it to WebP if it needs transparency, or to JPG if it's a photo. Both look the same and are far smaller.

Does converting PNG to WebP keep transparency?

Yes. WebP supports transparency, so logos and cut-outs stay see-through.

Why is my PNG screenshot so big?

PNG is lossless and screenshots are often huge in pixels. Resize it to the size you need, then convert or optimise.

Will converting PNG to JPG lose quality?

Slightly, but invisibly for photos at normal sizes. Text and transparency are where JPG struggles.

Are the converters free?

Yes. They run in your browser, add no watermark and don't upload your images.

Is WebP supported everywhere now?

Every current major browser shows WebP, and most modern apps open it. Some older desktop programs, email clients and upload forms still don't, so keep a PNG copy for those.

Why did my PNG get bigger after saving it again?

Some apps save PNGs with little compression or extra data. A lossless optimiser usually brings the size back down without changing the image.

Can I turn a JPG back into a lossless PNG?

You can save it as PNG, but the detail JPG removed doesn't come back; the file just gets larger.

Is PNG better quality than JPG?

PNG is lossless, so it never adds compression artefacts. For photos, a high-quality JPG looks the same and is far smaller.

Key takeaways

PNGs are big because they're lossless. For zero change, optimise losslessly and accept modest savings. For big savings with no visible change, convert graphics with transparency to WebP and photos to JPG. Resize to the display size first, check at 100% zoom, and keep the original PNG as your master.

Ready to try it yourself?

Free to start — no credit card required.

Compress Image Free →

More free tools

Image UpscalerConvert ImageCrop ImageRotate & FlipAdd WatermarkMeme GeneratorImage to PDFResize ImageBlur ImageQR Code GeneratorTikTok No-Watermark

Related guides

All resize, crop & compress guides →
How to Reduce Image Size in KB (Any Target, Any Device): before and after
Guide
How to Reduce Image Size in KB (Any Target, Any Device)
11 min read
How to Make an Image Smaller: Fewer KB or Fewer Pixels: before and after
Guide
How to Make an Image Smaller: Fewer KB or Fewer Pixels
10 min read
How to Compress Images for Email (Attachments and Newsletters): before and after
Guide
How to Compress Images for Email (Attachments and Newsletters)
10 min read
How to Optimize Images for a Website: Size, Format, Speed: before and after
Guide
How to Optimize Images for a Website: Size, Format, Speed
12 min read
← Back to all articles
🗜️Try it free — no sign up needed
Upload an image and we'll open it for you