Overview
Portable Network Graphics (PNG) is a raster (bitmap) image format designed for reliable, platform-independent storage and delivery of images. It achieves lossless compression so image data is preserved exactly, which makes it suitable for graphics with sharp edges, text, and images that require repeated editing without quality loss. PNG files are common on the web, in user interfaces, and in digital publishing.
Technical characteristics
PNG supports several color types and bit depths, including indexed color, truecolor (RGB), and grayscale. It also includes an alpha channel for per-pixel transparency, enabling variable opacity and smooth edges for overlays. Compression is performed with the DEFLATE algorithm (a lossless method commonly used in archive formats), and the file layout uses a chunk-based structure with clearly defined critical and ancillary chunks.
- Color types: indexed, grayscale, truecolor (RGB), with optional alpha.
- Transparency: full alpha channel or simple transparency via auxiliary chunks; see transparency.
- Interlacing: optional Adam7 scheme for progressive display.
- Metadata: gamma, color profiles, text annotations and other ancillary chunks.
History and development
PNG was created in the mid-1990s as an open alternative to earlier formats that faced patent or licensing issues. The specification was produced by an international working group and standardized for broad interoperability. Since its introduction, PNG has been updated with clarifications and extensions (for example, alpha compositing support and improved metadata handling) while remaining backwards compatible.
Uses, advantages, and limitations
PNG is widely used for web graphics requiring sharp lines, text, or transparency—such as icons, logos, screenshots, and interface elements—because it preserves detail without compression artifacts. It is not generally the most efficient choice for large photographic images, where lossy formats like JPEG usually give smaller files. PNG also supports features useful for color-managed workflows and digital archiving.
Variants and notable facts
Extensions and related formats have been developed to address specific needs: for example, APNG (Animated PNG) adds animation while preserving PNG compatibility, and various tools add support for compression tuning and additional metadata. The format's chunked design (with named blocks for header, image data, and ancillary information) and robust CRC checksums help ensure file integrity. For more on compression details see compression.
Overall, PNG remains a fundamental image format valued for its predictability, lossless quality, and flexible transparency options, making it a go-to choice for many digital imaging tasks.