PNG
A lossless raster format supporting transparency.
See it on the 3D treeGoing deeper
Every pixel is preserved exactly, so repeated saving does not degrade the image. It can carry a full alpha channel for soft transparent edges. It handles flat colour, text and screenshots well, but photographs usually produce much larger files than lossy formats.
Why it matters
Choosing it for the right content keeps edges and text crisp without paying for unnecessary weight elsewhere.
In practice
You export a screenshot of an interface for documentation as PNG so the small labels stay sharp.
Common mistake
Saving large photographs as PNG for the web, which makes pages much heavier with little visible benefit.
Connected terms
- CompressionPNG uses lossless compression, so no image data is thrown away.
- JPEGThe usual lossless alternative for text, flat graphics and transparency.
- RasterPNG is a pixel-based format and does not scale up cleanly.
- WebPWebP can often store the same lossless image in a smaller file.
- Alpha ChannelPNG can store per-pixel transparency in an alpha channel.
- Bit DepthPNG supports several bit depths, including 8 and 16 per channel.