Image Formats Compared

Every major image format compared with real measured data. JPEG, PNG, WEBP, AVIF, FFV1, GIF, TIFF and 21 more ranked by file size and quality on real photos.

A measured comparison of 15 image formats by file size and quality.

Real Image Benchmark

Image Formats Compared

Twenty-eight image formats, ranked by file size and quality using the same three real photographs. Every number below is measured, not estimated.

28Formats Tested
2Metrics Measured
3Real Photos

There are dozens of image formats, but only a handful are worth using for any given job. This page ranks twenty-eight of them by the two things that actually matter: how small the file is, and how much quality survives. Every figure comes from encoding the same three real photographs, not from estimates.

Efficient / broad support Limited compatibility Obsolete or restricted

Method: each photo was saved as a lossless PNG, then converted to every format below. Size is the average output as a percentage of that PNG. Quality is PSNR against the original in decibels, where higher is closer to the source and lossless formats are pixel-identical.

Tested, not guessed

How the numbers were measured

Three real photographs (a detailed close-up, a landscape, and a mixed-content shot) were each saved as a lossless PNG to serve as the reference. Every format was then encoded from that same PNG with FFmpeg 7.1, and the output measured for size and PSNR.

Source files3 real photos, ~1.5 to 3.9 MB each as PNG
Commandffmpeg -i photo.png -c:v libwebp -quality 80 out.webp

The results below are the average across the three photos. Real photographs compress very differently from synthetic test patterns, so using actual photos keeps the numbers honest.

  • AVIF produced the smallest files at 4% of the PNG size, followed by WEBP at 5%, both well ahead of JPEG.
  • Among lossless formats, FFV1 was dramatically the most efficient at 31% of PNG, far better than PNG itself, JPEG-LS, QOI or MagicYUV.
  • The uncompressed and RLE formats (BMP, PPM, PAM, DPX, XWD, TGA, PCX, SGI, SUN) are all LARGER than PNG on photos, and EXR was nearly ten times larger, because none of them compress photographic detail well.
FormatTypeSize vs PNGQuality (PSNR)Best ForSupportLearn
PNGLossless100% (baseline)IdenticalLogos, screenshots, transparencyUniversal
APNGLossless100% (same as PNG)IdenticalAnimated PNG with transparencyModern browsers
JPEGLossy9%Excellent (51.3 dB)Photos, web, sharingUniversal
WEBPLossy5%Very good (43.8 dB)Modern web imagesAll modern browsers
AVIFLossy4%Very good (41.0 dB)Smallest web imagesModern browsers
JP2Lossy14%Very good (41.2 dB)Medical, archival imagingNiche
JPEG-LSLossless71%IdenticalLossless medical imagingNiche
Lossless-JPEGLossless84%IdenticalLegacy lossless JPEGNiche
GIFLossy (256c)32%Poor (20.9 dB)Simple animation onlyUniversal
BMPUncompressed238% (larger)IdenticalLegacy Windows appsWindows
TIFFLossless212% (larger)IdenticalPrint, archiving, editingBroad, not web
TGAUncompressed153% (larger)IdenticalGame textures, legacy 3DNiche
PCXLossless (RLE)189% (larger)IdenticalLegacy DOS-era imagesLegacy
PPMUncompressed238% (larger)IdenticalProgramming intermediatesToolchains
PGMGrayscale raw79%Grayscale onlyGrayscale intermediatesToolchains
PBM1-bit mono10%Poor (7.8 dB)1-bit black-and-whiteToolchains
PAMUncompressed238% (larger)IdenticalUncompressed with alphaToolchains
SGILossless (RLE)171% (larger)IdenticalLegacy SGI workstationsLegacy
SUNLossless (RLE)212% (larger)IdenticalLegacy Sun systemsLegacy
XWDUncompressed238% (larger)IdenticalX11 screen dumpsLegacy Unix
XBM1-bit mono60%Poor (7.8 dB)1-bit X11 iconsLegacy Unix
DPXCinema raw238% (larger)IdenticalFilm and cinema pipelinesPro cinema
EXRHDR float954% (larger)IdenticalVFX, HDR compositingPro VFX
HDRHDR180% (larger)Excellent (51.0 dB)HDR lighting, environment maps3D / VFX
QOILossless83%IdenticalFast lossless encode/decodeEmerging
FFV1Lossless31%IdenticalLossless video/image archivingFFmpeg, archives
MagicYUVLossless67%IdenticalFast lossless captureEditing tools
WBMP1-bit mono10%Poor (7.8 dB)Old WAP phones (mono)Obsolete

Sizes are the average across three real photos, relative to the lossless PNG of each. Quality is PSNR against the source; lossless formats are pixel-identical. Your own results vary with the image and encoder settings.

Convert any image format free

Pick a format above, or drop your file into our in-browser converter. Nothing uploads to a server.

Open the Image Converter

References

  1. Image file type and format guide - MDN Web Docs, Mozilla
  2. Portable Network Graphics (PNG) Specification - W3C
  3. WebP Compression Techniques - Google Developers
  4. AV1 Image File Format (AVIF) - Alliance for Open Media
  5. ITU-T T.81: JPEG Standard - ITU
  6. FFmpeg Filters Documentation (psnr) - FFmpeg