All specs
W3C PNG / ISO/IEC 15948W3CMust KnowProduct2003

Portable Network Graphics (PNG)

Data FormatsยทWorld Wide Web Consortium
WHY YOU NEED THIS

PNG is the default lossless image format on the web โ€” screenshots, UI assets, icons with transparency, and OCR-friendly graphics. Chunk structure matters for metadata stripping and security review.

What It Defines

Lossless raster image format. Fixed 8-byte signature (`\x89PNG\r\n\x1a\n`) followed by length-type-data-CRC chunks (IHDR, IDAT, IEND, etc.). Supports alpha channel, gamma, color profiles, and ancillary metadata chunks. MIME type: `image/png`.

Canonical (Normative)

Convenient (Practical)

Related References

pngimagelosslessbinarymagic-bytes
Standards Body
World Wide Web Consortium

Publishes web platform specs including CSS, accessibility, security policies, Service Workers, Web App Manifest, and many browser APIs. Also maintains some versioned HTML/DOM specs.

Visit

Related Specs

IANAMust Know

File Formats

Every upload, download, attachment, and asset pipeline crosses these layers. Misunderstanding header vs envelope causes MIME spoofing bugs, parser differentials, and broken file validation. Start here before diving into individual format specs.

ProductData Formats
Details
IANAMust Know

Magic Bytes

Extension spoofing (`virus.exe` โ†’ `photo.jpg`) and MIME spoofing are common attack vectors. Magic-byte detection is the first line of defense in upload validation, antivirus, and content sniffing.

ProductData Formats
Details
IANA Media TypesIANAMust Know

Media Types

Correct Content-Type headers drive content negotiation, browser rendering, and API behavior. Wrong types cause security and parsing bugs.

ProductData Formats
Details
ISO/IEC 10918 / ITU-T T.81ISO/IECMust Know

JPEG

JPEG dominates photo storage and delivery. EXIF metadata (GPS, camera, orientation) lives in APP1 markers โ€” relevant for privacy, image processing, and upload pipelines.

ProductData Formats
Details
Google WebPgRPCShould Know

WebP

WebP delivers smaller files than JPEG/PNG for equivalent quality โ€” widely used for web delivery via `<picture>`, CDN transforms, and Next.js image optimization.

ProductData Formats
Details
AOMedia AVIFAOMediaShould Know

AVIF

AVIF is the next-generation web image format โ€” `<picture>` fallbacks, CDN support, and browser adoption make it worth knowing for asset pipelines and performance work.

ProductData Formats
Details