The 2026 Web Image Format Cheat Sheet: AVIF Takes Over, JPEG XL Waits
Serving AVIF instead of JPEG can cut photo bytes roughly in half, and every evergreen browser now supports it, so the switch is payoff without a compatibility tax. The remaining variable is JPEG XL, whose browser politics mean waiting for Edge and Safari before planning a migration.
Image files dominate page weight, and the format you choose can multiply or halve traffic. This guide walks through six formats from GIF to AVIF, using MDN's reference and caniuse data as of November 2026. It tracks each format's history, strengths, and weaknesses, and shows that browser adoption lags spec release by five to ten years: WebP took a decade to reach Safari, AVIF five years to cover all evergreen browsers.
The article gives a decision table: photos go to AVIF with WebP/JPEG fallback; icons and charts to SVG; screenshots to lossless WebP; animations to video or animated AVIF/WebP. It also warns against BMP, ICO, TIFF, and XBM. Engineering advice includes generating multiple formats at build time (e.g., Astro's sharp-based pipeline) and using CDN content negotiation via the Accept header. JPEG XL now has default support in Chrome 155, Firefox 158, and Opera 139, but Edge remains unsupported and Safari only partial, so it's not yet ready for default use.
Spec release dates matter less than browser adoption curves; WebP took a decade to reach Safari and AVIF five years to cover all evergreen browsers, so a format's practical viability is set by release cycles, not protocol dates.
MDN's reference still recommends WebP or JPEG as the default for photos, but that conservative stance is outdated for 2026; the article's decision table upgrades to AVIF once legacy browser share is negligible, which is true for most sites.
JPEG XL's support history is a reminder that technical superiority can lose to browser politics: Chrome removed its experimental support in 2023, restored it by default in 155, while Edge remains entirely unsupported and Safari only partially, making it a watch-and-wait format.
The biggest practical win from a format pipeline is cumulative; a site with hundreds of images saves more in a year from AVIF's 50% compression than from any per-image micro-optimization.