Compression and file size
Ranked from smallest to largest typical file size for photographic content at equivalent quality: AVIF (smallest), HEIC, WebP, JPG, PNG, TIFF/BMP (largest). For graphics and screenshots with flat colors: AVIF lossless, WebP lossless, PNG, TIFF, BMP. For animation: MP4 video (smallest), WebP animated, GIF (largest). The exact ratio varies by image content, but as a general rule, modern formats (AVIF, WebP) produce files 25 to 60 percent smaller than legacy formats (JPG, PNG) for equivalent visual quality. This directly translates to faster page loads and lower bandwidth costs.
Browser support
Universal support: JPG, PNG, GIF, SVG. Near-universal (95%+): WebP. Strong and growing (92-95%): AVIF. Limited/none: HEIC (no browser support), TIFF (partial), BMP (some). For web delivery, always provide fallbacks for formats with less than 100 percent support. The picture element allows you to list AVIF first, then WebP, then JPG or PNG, and the browser chooses the first format it supports. CDNs can automate this process through content negotiation based on the browser's Accept header.
Feature support
Transparency: PNG, WebP, AVIF, HEIC, GIF (1-bit only), SVG. Not JPG, BMP (optional). Animation: GIF, WebP, AVIF, HEIC, SVG. Not JPG, PNG. HDR and 10-bit+ color: AVIF, HEIC, TIFF. Not JPG (8-bit), PNG (up to 16-bit but no HDR), WebP (8-bit only). Lossless: PNG, WebP lossless, AVIF lossless, TIFF, GIF, BMP. Lossy: JPG, WebP lossy, AVIF lossy, HEIC, TIFF (optional). Vector: SVG only. Choose the format that supports the features your image requires while minimizing file size.