JPG, PNG, WebP or AVIF: which image format should you use?

The short answer: use JPG for photos you will share, PNG for screenshots and logos, and WebP for pictures on a website. The rest of this guide explains why, and when to choose something else.

At a glance

FormatBest forTransparent?Opens everywhere?
JPGPhotos, sharing, email, uploadsNoYes
PNGScreenshots, logos, drawings, textYesYes
WebPPictures on websitesYesBrowsers yes, some older programs and forms no
AVIFSmallest files for websitesYesFewer programs
HEICiPhone photos–No, often needs converting
GIFSimple flat graphics, short animationsLimitedYes

JPG

The most widely supported photo format. It makes files small by throwing away fine detail the eye rarely notices. Choose it for photos and whenever a website, email or printer asks for “a JPG”. It can’t be transparent, and sharp edges such as text and logos can look smudgy. Every time you save a JPG again it loses a little more quality, so keep your original.

PNG

PNG keeps every pixel exactly as it was, and it can be partly transparent. Choose it for screenshots, logos, drawings and anything with sharp edges or see-through areas. Photos saved as PNG are often several times bigger than the same photo as a JPG.

WebP

At a similar quality WebP is usually smaller than JPG or PNG, and it can be transparent. All current browsers show it, which makes it a good choice for pictures on a website. Some older programs, printers and upload forms don’t accept it, so convert it to JPG or PNG if you’re told a file type isn’t allowed.

AVIF

A newer format that is often smaller than WebP or JPG at the same quality. It takes longer to create, and fewer programs can open it, so keep a JPG or PNG copy for sharing.

HEIC

The format iPhones use by default. It keeps good quality in smaller files, but Windows and many websites can’t open it without extra software. Convert it to JPG when you need to share it. See how to open HEIC photos.

GIF

An old format limited to 256 colours, best known for looping animations. Photos look grainy as GIFs. Choose it only when something insists on it. This site’s tools read and write still pictures only, so an animated GIF is converted using its first frame.

Rules of thumb

Changing format

Use the image converter to change between formats, or the compressor to make a picture smaller without changing its format. Converting a picture to a different lossy format never improves its quality, so convert from the best original you have.