JPG to AVIF for the lightest image pages
Roughly half the bytes of the JPG at matching visible quality. Worth it where load time is money.
Runs in your browser. Your file never leaves your computer.
- Versus JPGCommonly half the bytes
- ImpactBiggest single image saving
- TradeSlow encodes, worth it once
- ServingPicture element with fallback
Where WebP shaves a quarter off a JPG, AVIF tends to cut closer to half, and on some photographs more. For sites where images dominate the transfer and conversion time is not precious, migrating JPGs to AVIF is the strongest single optimisation available. As a lossy-to-lossy conversion it works best from good-quality sources rather than already-crunched thumbnails. Encoding runs in your browser and takes its time; large images may want patience.
Questions
Is re-encoding my JPGs going to look worse?
Marginally in theory, invisibly in practice at the default quality. Encoding from original masters, where they exist, sidesteps even the theory.
Should I keep JPG fallbacks?
For a general audience, serve AVIF via the picture element with a JPG or WebP fallback; old browsers pick the fallback automatically.
Why so slow to encode?
AVIF spends computation to earn its compression. It is a one-time cost per image, paid on your machine, not a server's.
Related conversions
- AVIF to JPGFrom the newest image format to the oldest reliable one, for every tool and person the AVIF confuses.
- JPG to WebPThe standard web upgrade: same visible picture, meaningfully smaller file, supported by every current browser.
- JPG to PNGA lossless container for further editing. Fair warning: photos get big, and no JPG artifacts are healed.
- JPG to PDFPortals, expense systems and clerks ask for documents, not images. One page per photo, assembled locally.
- Optimize JPGRe-encoded with a sharper encoder at quality 85, typically 20 to 30 percent lighter, same look.
- PNG to AVIFAVIF pushes past WebP for photographic content, at the cost of slower encoding and older-software support.
- WebP to AVIFFor pipelines standardising on AVIF. From lossy WebP sources the gain is real but bounded; the page says so.
Part of convert images in your browser. Every other conversion is on the conversions index.