Image MIME Reference
AVIF
AV1 Image File Format
image/avif
VS
Portable Network Graphics (Legacy MIME)
image/x-png
PNG
A complete technical comparison of AV1 Image File Format and Portable Network Graphics (Legacy MIME) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
PNG wins on browser support
Feature Support
| Feature | AVIF | PNG |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | Yes | ✕ No |
| Progressive Loading | ✕ No | Yes |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
AV1 Image File Format
image/avif
Extension
.avif
Container
HEIF / ISOBMFF
Compression
AV1 Lossy / AV1 Lossless
Algorithm
AV1
Color Depth
8-bit, 10-bit, 12-bit
Developed by
Alliance for Open Media (AOMedia)
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 61 76 69 66
Portable Network Graphics (Legacy MIME)
image/x-png
Extension
.png
Container
PNG Chunk Structure (IHDR, IDAT, IEND)
Compression
Deflate (Lossless)
Algorithm
Deflate (LZ77)
Color Depth
1-bit to 16-bit (Grayscale), 8-bit (Indexed Palette), 24-bit (True Color), 32-bit (True Color with Alpha), 48-bit (High Color), 64-bit (High Color with Alpha)
Developed by
PNG Development Group
Released
1996
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
Browser Support Comparison
| Browser | AVIF | PNG |
|---|---|---|
|
|
✓ 85+
|
✓ 1
|
|
|
✓ 93+
|
✓ 1
|
|
|
✓ 16+
|
✓ 1
|
|
|
✓ 121+
|
✓ 12
|
|
|
✕ |
✓
|
AVIF
AVIF Strengths
- Best-in-class compression — typically 20–50% smaller than WebP at equivalent quality
- Native HDR and wide color gamut (BT.2020) support
- Supports 8, 10, and 12-bit color depth
Limitations
- Encoding is highly CPU-intensive — significantly slower than JPEG or WebP
- Requires Edge 121+ (not supported in earlier Edge versions)
- Limited support in native desktop image viewers
PNG
PNG Strengths
- The underlying format provides flawless, lossless compression and perfect 8-bit alpha channel transparency
- Universally supported by every modern operating system, image editor, and web browser
Limitations
- The 'image/x-png' string is an obsolete vendor quirk that forces backend developers to write redundant normalization logic in file upload scripts
- If left unnormalized, strict MIME validators or content security policies on modern systems may incorrectly reject valid PNG files
When to choose which format
AVIF
Use AVIF when…
- Next-Gen Websites
- HDR Photography
- High-Quality Web Images
PNG
Use PNG when…
- Legacy Internet Explorer File Uploads
- Older ASP/PHP Web Applications
- Lossless Web Graphics