File Format Guide

What is a PNG file?

PNG is the web's lossless format — the one that never degrades and the one that handles transparency properly. It is also the format people most often use for the wrong job, producing files ten times bigger than they need to be.

PNG at a glance
What is a PNG file?
A raster graphics file format that supports lossless data compression and transparent backgrounds (alpha channel).
How to open a PNG file?
Universally supported by web browsers, standard OS viewers, and image editors.
Typical use of a PNG file:
Web graphics, logos, charts, and illustrations where crisp lines, text, and transparent backgrounds are required.
Origin of the PNG file:
Created in 1995 as an improved, non-patented replacement for the GIF format.
Modern alternatives for PNG:
WebP (Lossless) and AVIF both support transparency but offer significantly smaller file sizes.
PNG specifications
Full name Portable Network Graphics
File extensions .png
MIME type image/png
Compression Lossless (DEFLATE, with per-row filtering)
Transparency Full 8-bit alpha channel (256 levels)
Animation Not in the base format; the APNG extension adds it
Colour depth Up to 16 bits per channel; indexed, greyscale and truecolour modes
Introduced 1996 (developed 1995)
Browser support Universal
Advertisement

Lossless means exactly lossless

Open a PNG, edit it, save it, and repeat a hundred times: the pixels that you did not touch come back bit-for-bit identical every time. PNG compresses by looking for patterns rather than by discarding information — each row of pixels is first transformed by a filter that predicts each pixel from its neighbours, and the resulting differences are then compressed with DEFLATE, the same algorithm behind ZIP.

That prediction step is why PNG is so effective on graphics and so mediocre on photographs. A flat blue background predicts perfectly and costs almost nothing to store. A field of grass predicts terribly, so almost every pixel has to be recorded in full.

Transparency done properly

PNG's alpha channel stores 256 levels of opacity per pixel, so edges can fade smoothly into whatever is behind them. This is the reason logos and UI assets are shipped as PNG: a GIF can only mark a pixel fully transparent or fully opaque, which leaves visible jagged fringing on curves and text.

One practical consequence: a PNG placed on a dark background will show a pale halo if it was originally composited against white. That is not a bug in the format — it means the semi-transparent edge pixels have white blended into them. Re-exporting from the source with the correct background is the only real fix.

PNG-8 versus PNG-24, and why your file is enormous

PNG has an indexed mode (commonly called PNG-8) that stores a palette of up to 256 colours instead of full RGB values. For icons, flat illustrations, and most screenshots this is visually identical to the full-colour version at a fraction of the size. Most export dialogs offer it, and most people never touch it.

If you are staring at a 6 MB PNG, the usual cause is that a photograph was saved as PNG. Lossless compression on photographic noise barely helps — you are storing essentially every pixel. That file will typically become a 400 KB JPEG or a 250 KB WebP with no visible difference. PNG is for graphics; JPEG, WebP, and AVIF are for photographs.

Converting PNG files

Converting PNG to WebP in lossless mode typically saves 20–30% with pixel-identical output, and is the easiest win available for web graphics that need transparency. AVIF often goes smaller still, at the cost of slower encoding.

Converting PNG to JPG discards transparency and introduces permanent compression artefacts, so it is only worth doing for photographs. If you must, set a background colour explicitly — otherwise your transparent areas will come back as an unpredictable solid block.

Convert PNG files in your browser

Zolvo's image converter runs entirely on your own machine — your files are never uploaded to a server. Drop a PNG file in and pick an output format, or jump straight to a common one:

PNG — frequently asked questions

Is PNG better quality than JPG?

For graphics, yes — PNG is lossless, so lines and text stay perfectly sharp. For photographs the visible quality is effectively the same as a high-quality JPEG, but the PNG file will be far larger. "Better" depends entirely on the type of image.

Why is my PNG file so large?

Almost always because it is a photograph. PNG's lossless compression cannot do much with photographic detail, so it ends up storing nearly every pixel. Converting to JPEG, WebP, or AVIF will usually cut the size by 90% with no visible change.

Can PNG store animation?

The original specification cannot. An extension called APNG does, and every major browser now supports it, but many image editors and viewers still only read the first frame. For animation, WebP or AVIF are better supported choices.

Does saving a PNG repeatedly reduce its quality?

No. PNG is lossless, so re-saving is safe no matter how many times you do it. This is what makes it a good working format for images you are still editing.

Related formats