What is PNG?
PNG (Portable Network Graphics) is a lossless raster image format that supports full alpha transparency, widely used for logos, screenshots and graphics with sharp edges.
By Rocco Bombardieri · Updated
Want the full walkthrough? Read: Why is my PNG file so large? →
Explained in more detail
PNG was created as a patent-free replacement for GIF and is now standardized by the W3C. It compresses pixels losslessly with predictive filtering followed by DEFLATE, so a PNG always decodes to exactly the pixels that were saved.
Its key strengths are alpha transparency and lossless quality. A PNG can carry a full 8-bit or 16-bit alpha channel, which gives smooth semi-transparent edges, something GIF cannot do. That makes it the default for logos, icons, UI screenshots and cut-out images placed on varied backgrounds.
PNG supports five color types: grayscale, truecolor (red, green, blue), indexed color with a palette of up to 256 entries, grayscale with alpha, and truecolor with alpha. Truecolor allows 8 or 16 bits per channel, and indexed color allows 1, 2, 4 or 8 bits per pixel. These choices are why one PNG can be many times larger than another that looks identical; see PNG-8 versus PNG-24.
PNG is not the right tool for photographs. Photographic detail compresses poorly with lossless methods, so a photo saved as PNG is usually much larger than the same photo as JPEG or lossy WebP. If you need a photo with transparency, WebP or AVIF are better choices.
PNG files can also carry metadata, such as text chunks, color profiles and physical dimensions, which add to size without changing the picture.
If a PNG is bigger than you expect, the usual causes are oversized dimensions, empty transparent borders, unneeded 24-bit color and embedded metadata.