SSJX.CO.UK
Content

Image File Format Guide

This guide explains the differences between the many popular image formats you may come across and when to use them.

As images and how the formats work vary, you may find your experience contradicts what is written below e.g. a JPEG file that is better quality than a WebP or that a GIF is smaller than a PNG. This is normal and is a good reason to check the options available!

Usage also factors in when choosing a file format, for example for a web page image, the smallest file possible is best but you must also consider loading speed and browser support (Safari is slow to support new formats). Emailing an image no one can open is not ideal but if you are archiving for your own use, this is not as much of an issue.

The Image Formats

This is not an exhaustive list of formats, just the most popular or, in the case of JPEG XL, one that should be more popular.

Image Formats Compared

The table below shows a test image (kodim23.qoi from the QOI test images) saved in a variety of formats. Load time is taken from IrfanView, other applications may be faster or slower loading. As with all statistics, your results may vary!

Format File Size (KB) Load Time (ms)
JPEG XL 374 562
QOI 660 31
PNG 545 32*
WebP 415 156

* This is close to the QOI in part due to the small image size, tests on a larger (1080p) image show QOI is 3x faster loading.

The table lists JXL as the smallest and QOI as the fastest, yet neither would be suitable for a web page! For a web page and looking at the table, WebP seems like the best option but depending on your visitors, you may need to offer PNG as a fall back to support older browsers. At that point you may need to also consider the space / cost required to store two of each image...

Created
(11/08/2024)