Choosing an image format

A plain guide to choosing JPG, PNG, WEBP or AVIF for photos, screenshots, logos and websites, with file-size trade-offs.

Photos

JPG works everywhere. WEBP is often 25–35% smaller at similar quality, and AVIF is usually smaller still. Use WEBP or AVIF for websites and JPG when compatibility matters most, such as forms.

Screenshots, logos and text

PNG keeps sharp edges and transparency without loss. For the web, WEBP also supports transparency and is smaller.

Transparency

JPG cannot store transparency. Converting a transparent PNG to JPG fills the background with a colour you choose.

GIF and BMP

GIF is limited to 256 colours and BMP is uncompressed. Convert both to PNG or WEBP to save space.