Compress PNG: Shrink PNG Files Without Losing Quality

Compress PNG: Shrink PNG Files Without Losing Quality

PNG files are wonderful until they are not. A single screenshot can weigh several megabytes, a logo exported at the wrong settings can be heavier than the entire rest of a web page, and an upload form that caps files at 200 KB will reject your 4 MB PNG without a second thought. The good news is that you can compress PNG files dramatically — often by half or more — without any visible loss of quality. This guide explains the two very different ways to compress PNG files, when to use each one, and how to hit exact file-size targets for forms, websites and email.

Key takeaways

  • PNG is always lossless at the file level — “lossy” PNG compression happens by reducing colours before the file is saved, not by damaging the PNG itself.
  • Lossless recompression typically saves 10–30% with zero pixel change; reducing the colour palette to 256 colours typically saves 40–70% with no visible difference.
  • Screenshots, logos and flat graphics compress far better than photographs — a photo-like PNG is usually better converted to WebP or JPG.
  • Always keep the original PNG. Compression is a one-way trip, and you cannot recover detail you threw away.
  • You can compress PNG files free in your browser with Fileoraa’s compress image to KB tool — no upload, no sign-up.

Why PNG Files Get So Big

To compress PNG files well, it helps to know what makes them heavy in the first place. PNG stores every pixel exactly, using lossless compression. That is its great strength and its great weakness. A photograph saved as PNG can easily be 5–10 times larger than the same image saved as JPG, because PNG refuses to throw away any detail — even detail the human eye cannot see.

Under the surface, PNG squeezes pixel data with DEFLATE, the same compression algorithm used inside ZIP files. How much it squeezes depends on how predictable the pixels are. A screenshot of a mostly white document with black text is highly predictable, so it compresses well. A photograph of a busy street, with thousands of subtly different colours, is unpredictable, so the file stays huge. Two PNGs of the same dimensions can differ in size by a factor of fifty for this reason alone.

Three things quietly inflate PNG files beyond the pixels themselves:

  • Colour depth. A standard PNG stores 24-bit colour plus an 8-bit alpha channel — four bytes per pixel. A 1920 × 1080 image therefore holds over 8 million bytes of raw pixel data before compression even starts. If your image only actually uses a few hundred colours, most of that depth is wasted.
  • Hidden metadata. PNG files can carry text chunks, timestamps, EXIF data and colour profiles added by the app that created them. Stripping these costs nothing visually and trims the file.
  • Lazy encoding. Many apps save PNGs with fast, low-effort compression settings. Re-encoding the same pixels with a thorough optimiser can shrink the file by a fifth without changing a single pixel.

Real measurements make the scale clear. In a November 2026 test by GlowHalo Tools, a single 1200 × 800 screenshot of a web page saved as a PNG weighed 83 KB. The same screenshot encoded as lossless WebP weighed just 29 KB with every pixel identical, while a JPG at quality 90 weighed 78 KB and still left faint halos around the text. The PNG was not a bad file — it was simply a format carrying more weight than the job required.

Diagram comparing lossless PNG compression, which keeps every pixel, with lossy palette reduction

Compress PNG Without Losing Quality: The Two Methods

The phrase “compress PNG without losing quality” actually describes two different techniques, and confusing them is the most common mistake people make. Both shrink the file. Only one of them keeps every pixel exactly as it was.

Method 1: Lossless recompression (zero quality change)

Lossless recompression takes your PNG, strips out metadata, tries smarter filters and more aggressive DEFLATE settings, and writes the same pixels back into a smaller file. Nothing about the image changes — not one pixel value, not the transparency, not the colours. Open the original and the compressed version side by side and they are identical, because they are.

The trade-off is the size of the saving. According to a 2026 guide from Pixotter, lossless recompression typically saves 10–30% of the file size. Independent tooling data puts the range slightly higher — the Kittokit PNG compressor reports typical lossless savings of 20–40%, rising to around 50% for smartphone screenshots saved with minimal compression by the source app. Either way, expect a meaningful but modest reduction.

Lossless is the right choice when:

  • The image is a logo, icon or piece of artwork you may need to edit again later.
  • Pixel-perfect accuracy matters — medical images, technical diagrams, pixel art, legal documents.
  • You are preparing a master copy or archive and want the smallest file that is still the true original.

Command-line tools such as OptiPNG and oxipng do this job well. OptiPNG tries several compression levels and keeps the smallest result; its level 4 setting is the practical default, while level 7 squeezes harder at the cost of speed. But you do not need a terminal — browser-based tools perform the same repacking in one click.

Method 2: Lossy colour reduction (huge savings, invisible difference)

Lossy PNG compression — usually called quantisation — reduces the image to a palette of at most 256 colours before saving. Each pixel then needs one byte instead of three or four, and the repeated values compress far better. A photo-like PNG with tens of thousands of distinct colours becomes a lean file built from the 256 colours that matter most.

This sounds destructive, and technically it is: pixel values do change. In practice, at sensible settings, the difference is invisible. The Pixotter 2026 guide reports typical savings of 40–70% for lossy quantisation at high quality, and Kittokit’s measurements put lossy savings at 60–80%. A 2026 test of 36 real screenshots by Toolrezza found that a palette PNG with up to 256 colours was 47% smaller than the browser’s original PNG for text and interface screenshots, and looked the same.

Transparency survives quantisation, which surprises many people. Each palette entry can carry its own transparency value, so soft shadows and anti-aliased edges keep their partial transparency instead of turning jagged. Dithering — a technique that scatters pixels to hide banding in gradients — can be switched on for photos and off for flat artwork, where it only adds noise.

Lossy is the right choice when:

  • The file must fit a size limit, such as an upload form, an email attachment or a messaging app.
  • The image is a screenshot, illustration or graphic with limited colours.
  • You are publishing to the web, where a 60% smaller file means a visibly faster page.

A practical starting point is a quality setting around 80 (or a 256-colour palette). Lower it gradually while zooming to 200% and checking edges and gradients. The moment you see banding in a sky or a gradient, you have gone too far — step back up.

Before and after comparison of a large PNG screenshot and the same image compressed to a smaller file

How Much Smaller Can a PNG Actually Get?

Honest expectations matter more than marketing claims. The table below summarises the savings reported by independent 2026 tests, so you can judge what your own files are likely to do.

Image type Lossless recompression Lossy (256-colour palette) Convert to WebP instead
Screenshot with text 10–30% smaller 40–50% smaller 54% smaller, pixels identical (lossless WebP)
Logo or flat graphic 10–25% smaller 50–70% smaller 27–88% smaller (lossless WebP)
Photograph saved as PNG 5–15% smaller 40–60% smaller, visible softening possible 90%+ smaller at lossy WebP quality 80
Icon (few colours) 10–20% smaller 50–60% smaller 57% smaller (lossy WebP)

Two patterns stand out. First, screenshots and graphics — the images PNG is actually good at — respond best to palette reduction. Second, photographs saved as PNG are the worst case for PNG compression and the best case for changing format: a 1920 × 1080 photograph measured at 5.2 MB as PNG dropped to 290 KB as lossy WebP at quality 80 in a 2026 Dev.to comparison — a 94% saving. If the picture is a photograph, do not fight PNG into being small; convert it. Fileoraa’s PNG to WebP converter does exactly that, keeping transparency intact.

How to Compress a PNG File: Step by Step

You do not need to install anything. The fastest route is a browser tool, and the whole job takes under a minute.

  1. Start from the original. Always compress from the highest-quality copy you have. Compressing a PNG that was already squeezed by a messaging app compounds the damage, and for photographs you lose detail twice.
  2. Pick your method. If the pixels must stay exact, choose lossless. If size matters more than pixel perfection — a web upload, a form, an email — choose lossy and start at quality 80.
  3. Drop the file onto the tool. Open Fileoraa’s compress image to KB tool, drag your PNG onto the page, and set your target size — 20 KB, 50 KB, 100 KB or 200 KB, or any custom number. The tool works entirely in your browser, so nothing is uploaded.
  4. Check the result at full zoom. Open the compressed image at 100% or 200% zoom. Look at text edges, gradients and fine detail. If it looks identical, you are done. If you see banding, raise the quality one notch and try again.
  5. Download and keep the original. Save the compressed copy for its job, and archive the original PNG separately. You will want it the next time the same image needs a different size.
Three-step workflow for compressing a PNG: upload the file, choose a quality setting, download the smaller file

Hitting an Exact KB Target

Many real-world situations do not ask for “smaller” — they demand a number. Job portals, exam registrations, visa applications and government forms routinely specify limits such as “photograph between 20 KB and 50 KB” or “upload under 100 KB”. A compressor that only offers a quality slider leaves you guessing; you need a tool that works backwards from the target.

The reliable approach is to aim 5–10% under the stated limit, because different systems measure kilobytes slightly differently, and to let the tool lower quality first before it touches dimensions. Fileoraa’s KB tool does exactly this: it searches for the lowest quality that lands at or under your target while keeping your original dimensions, and only shrinks the image if even the lowest usable quality still overshoots. If a photo genuinely cannot reach a target without becoming unusable, the tool says so plainly instead of handing you a smudge.

Typical targets and what to expect:

  • 200 KB — product listings, blog thumbnails and email attachments. Photos look clean on screen.
  • 100 KB — the classic application-portal ceiling for profile photos. Fine at display size, slight softness if you zoom in.
  • 50 KB — ID documents and certificates. Readable, but expect visible softness on close inspection.
  • 20 KB — passport-style thumbnails. Noticeably compressed; acceptable for a tiny photo, not for anything you want to enlarge.

If a detailed photograph cannot reach 20 KB, crop it to the subject first — a crop removes data honestly — and then compress again. And if the file is a screenshot rather than a photo, the palette method will usually get you there without touching the dimensions at all.

Common Mistakes When You Compress PNG Files

Compressing the same file over and over

Every lossy pass throws away a little more detail. Set your final target first, then compress once from the original. Never take an already-compressed PNG, compress it again for a smaller target, and repeat — the quality degrades with each generation while the savings shrink.

Using PNG for photographs

PNG is the wrong container for a photograph. It stores every pixel exactly, which is wasted effort on an image the eye reads as smooth tones. If the picture is a photo, convert it to JPG or WebP first, then compress that. You will get a file ten times smaller at the same visible quality.

Forgetting transparency

Some older tools flatten transparency to white or black when they compress. If your PNG has a transparent background — a logo, an icon, a product cutout — check the result over a dark background before you use it. Modern palette quantisation keeps the alpha channel, but a quick check costs five seconds and saves an embarrassing upload.

Trusting the file extension

A file named .png is not always a PNG. Some apps save JPG data with a .png extension, and some PNGs are actually mislabelled WebP files. If a compressor refuses your file or produces a strange result, check what the file really is before blaming the tool.

Deleting the original

This is the mistake you only make once. The compressed copy is a delivery file, not an archive. Keep the original PNG somewhere safe — on an external drive, in cloud storage, anywhere — because no tool can reconstruct detail that quantisation removed.

When to Compress PNG — and When to Change Format

Compression is not always the right answer. Use this quick decision guide:

  • Keep PNG and compress it when you need transparency plus pixel accuracy (logos, icons, diagrams), when the image will be edited again, or when a platform explicitly demands PNG.
  • Convert PNG to WebP when the image is for a website. Google’s own figures put lossless WebP 26% smaller than PNG, and lossy WebP 25–34% smaller than comparable JPGs — and independent 2026 tests found the gap even wider for screenshots and graphics. Browser support is effectively universal in 2026.
  • Convert PNG to JPG when the image is a photograph and the destination is email, a form or an app that does not accept WebP. JPG cannot do transparency, so this only works for opaque images.
  • Resize as well as compress when the image is far larger than it will ever display. A 4000-pixel-wide screenshot shown at 800 pixels carries five times the data it needs. Resize first, then compress — the order matters, because compression works on the pixels you give it.

Frequently Asked Questions

Can you compress a PNG without losing quality?

Yes — with lossless recompression. Tools such as OptiPNG repack the same pixels more efficiently and strip metadata, typically saving 10–30% with zero pixel change. If you need bigger savings, lossy palette reduction saves 40–70% and is usually invisible at quality 80, but pixel values do change.

Why is my PNG file so large?

PNG stores every pixel exactly, so photographs and detailed images become enormous — a single 1920 × 1080 photo can be 5 MB as PNG. Colour depth (four bytes per pixel), embedded metadata and lazy encoding by the app that saved it all add weight. Re-encoding and palette reduction are the fixes.

Does compressing a PNG remove its transparency?

Not with a modern tool. Palette quantisation stores transparency in each palette colour, so transparent backgrounds, soft shadows and anti-aliased edges survive. Always check the result over a dark background to confirm the alpha channel made it through.

What is the best quality setting for compressing PNG?

Start at quality 80 (or a 256-colour palette). For logos and flat graphics you can often go lower without any visible change; for photos and gradients, stay at 80 or above to avoid banding. Check the result at 200% zoom before you use it.

Is it better to compress a PNG or convert it to WebP?

For websites, converting to WebP usually wins — lossless WebP is 26% smaller than PNG on average according to Google, and independent 2026 screenshot tests found lossless WebP 54% smaller than the original PNG with identical pixels. Keep the PNG when a platform demands it or when you need a lossless master copy.

How do I compress a PNG to exactly 50 KB or 100 KB?

Use a tool that works backwards from a target size, such as Fileoraa’s compress image to KB tool. Set the target, and the tool adjusts quality (then dimensions, only if needed) until the file lands at or under the number. Aim 5–10% under the limit for a safety margin.

Try It Free

Your PNGs do not need to stay heavy. Drop one onto Fileoraa’s free compress image to KB tool and watch a multi-megabyte screenshot land under your target in seconds — no upload, no account, no watermark. And if the image is destined for a website, try the PNG to WebP converter next: it is the single biggest speed win most pages ever get.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *