Computer Atlas

Image Format

Also known as: image formats, image file formats

core beginner concept 3 min read · Updated 2026-06-07

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:

FormatCompressionNotes
JPEGLossyUniversal. Great for photos. Big files at low compression.
PNGLosslessGreat for UI, screenshots, anything with sharp edges.
GIFLossless paletteAnimation, but 256 colours. Largely superseded.
WebPLossy + losslessBetter compression than JPEG/PNG, ~all browsers.
AVIFLossy + losslessModern, much better compression than WebP.
HEICLossyApple’s default; uses HEVC video compression.
SVGVectorLines and shapes, not pixels. Infinitely scalable.
JPEG XLLossy + losslessHigh-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.

Relationships

Requires
Leads to
Required by

Neighborhood

A visual companion to the relationships above. Click any node to visit that topic.