Image Format
Also known as: image formats, image file formats
The way pixels (and metadata) are encoded into a file — different formats trade size, quality, and feature support.
- Primary domain
- Graphics & Media
- Sub-category
- Photograph Manipulation & Image Compression
In simple terms
Two pictures with the same pixels can take dramatically different amounts of disk space depending on the image format you save them in. Each format is a compromise: how small is the file, how good does it look, does it support animation, does it preserve every pixel exactly, can old software read it?
More detail
Major web/desktop formats in 2026:
| Format | Compression | Notes |
|---|---|---|
| JPEG | Lossy | Universal. Great for photos. Big files at low compression. |
| PNG | Lossless | Great for UI, screenshots, anything with sharp edges. |
| GIF | Lossless palette | Animation, but 256 colours. Largely superseded. |
| WebP | Lossy + lossless | Better compression than JPEG/PNG, ~all browsers. |
| AVIF | Lossy + lossless | Modern, much better compression than WebP. |
| HEIC | Lossy | Apple’s default; uses HEVC video compression. |
| SVG | Vector | Lines and shapes, not pixels. Infinitely scalable. |
| JPEG XL | Lossy + lossless | High-quality successor; uneven adoption. |
For images on the web, the practical guidance is:
- Photos → AVIF (with WebP / JPEG fallback).
- UI graphics → SVG when vector, PNG when raster.
- Animation → WebM/AVIF/MP4 video; rarely GIF anymore.
Lossless ≠ uncompressed: PNG and WebP-lossless both apply lossless compression. Lossy discards information you (probably) won’t see; lossless keeps every bit.
Formats also carry metadata: color space (sRGB vs. Display P3), ICC profile, EXIF (camera info), animation frames, alpha channel.
Why it matters
Image weight is one of the biggest factors in page load time. Choosing the right format with the right quality can shrink a site by 50%+ with no visible difference.
Real-world examples
-
A 2 MB JPEG often re-encodes to a 400 KB AVIF with no visible loss.
-
A PNG used for a JPEG-friendly photo can be 5-10× larger than necessary.
-
SVG is the right answer for icons and logos at any size.
-
AVIF now matches HEIC quality at smaller sizes and is royalty-free, which is why YouTube and Netflix have shifted thumbnails and previews onto it.
Common misconceptions
- “PNG is always best quality.” PNG is lossless for raster; for photos, a high-quality WebP/AVIF is visually identical and far smaller.
- “AVIF is too new.” Browser support is now near-universal.
Learn next
The pixel underneath: pixel. The colour interpretation layer: color space. The video equivalent: codec.
Read this in a learning path
All paths →This topic is part of a learning path. Start in context to keep prev/next and progress tracking.
Neighborhood
A visual companion to the relationships above. Click any node to visit that topic.