Image format comparisons
Each page answers one question: which of two formats to use, and why. Where a size or speed figure appears, it was measured with the codecs this site runs, on the image sets described on the benchmarks page.
- PNG vs JPGJPG for photographs, PNG for screenshots, logos and anything transparent. With measured file sizes.
- WebP vs PNGWebP keeps transparency in a much smaller file. PNG is exact and opens in everything.
- WebP vs JPGWebP is smaller on larger images and supports transparency. JPG is faster to make and accepted everywhere.
- AVIF vs WebPAVIF was smaller on photos and much slower to encode. WebP is faster and works in older browsers.
- JPEG XL vs AVIFAVIF has the wider browser support. JPEG XL decoded faster in our test but its files were larger at the default setting.
- HEIC vs JPGHEIC is the smaller iPhone default. JPG is the one every device and website accepts.
Last updated