Which image format should you use?

JPG, PNG, WEBP, AVIF, HEIC, SVG, GIF and TIFF compared honestly: what each one is genuinely good at, where it fails, and how to decide in about five seconds.

  • 8 formats
  • Practical advice
  • Updated 2026

Decide in five seconds

1

Is it a logo or an icon made of shapes? Use SVG. It stays sharp at any size and the file is tiny.

2

Does it need a transparent background? Use PNG, or WEBP if it is going on a website.

3

Is it a photograph for a website? Use WEBP. It is 25 to 35 percent smaller than JPG at the same quality.

4

Is it a photograph going anywhere else — email, a form, social media, a print shop? Use JPG. Everything accepts it.

5

Is it a screenshot containing text? Use PNG. JPG compression makes small lettering fuzzy.

JPG
JPEGPhotographs

The format the entire web ran on for thirty years, and still the right answer for photographs. It discards detail the eye is least likely to notice, which produces very small files from complex images.

CompressionLossy
TransparencyNo
AnimationNo
Colours16.7 million
Browser supportUniversal
Typical photo200 - 800 KB
Best for
  • Photographs and camera images
  • Anything where file size matters most
  • Email attachments and forms
  • Social media uploads
PNG
Portable Network GraphicsGraphics and screenshots

Lossless, so nothing is thrown away, and it supports full transparency. That makes it right for logos, icons, screenshots and anything with sharp edges or flat colour, and wrong for photographs.

CompressionLossless
TransparencyYes, full alpha
AnimationNo (see APNG)
Colours16.7 million + alpha
Browser supportUniversal
Typical photo2 - 6 MB
Best for
  • Logos and icons
  • Screenshots with text
  • Images needing transparency
  • Diagrams and flat colour art
WEBP
Web PictureModern web delivery

Google's replacement for both JPG and PNG. It does lossy and lossless, supports transparency and animation, and is typically 25 to 35 percent smaller than the equivalent JPEG at the same visual quality.

CompressionLossy or lossless
TransparencyYes
AnimationYes
Colours16.7 million + alpha
Browser supportAll modern browsers
Typical photo140 - 500 KB
Best for
  • Website images, first choice
  • Replacing both JPG and PNG online
  • Anywhere page speed matters
  • Animated images instead of GIF
AVIF
AV1 Image File FormatCutting-edge compression

The newest widely supported format, built on the AV1 video codec. It compresses substantially better than WebP, particularly at low quality, but encoding is slow and support is not yet universal.

CompressionLossy or lossless
TransparencyYes
AnimationYes
ColoursHDR and wide gamut
Browser supportMost modern browsers
Typical photo90 - 350 KB
Best for
  • Maximum compression on the web
  • HDR photography
  • Sites serving many large images
  • With a JPG or WebP fallback
HEIC
High Efficiency Image FormatiPhone photos

What iPhones have shot by default since iOS 11. Roughly half the size of JPEG at the same quality, but poorly supported outside Apple devices, which is why people constantly need to convert it.

CompressionLossy (HEVC)
TransparencyYes
AnimationYes (Live Photos)
ColoursHDR, 10-bit
Browser supportLimited
Typical photo1 - 2 MB
Best for
  • Storing photos on an iPhone
  • Saving space on Apple devices
  • Convert to JPG before sharing
  • Not suitable for websites
SVG
Scalable Vector GraphicsLogos and icons

Not pixels at all, but instructions for drawing shapes. That means it stays perfectly sharp at any size and the file is usually tiny. Useless for photographs, essential for logos and interface icons.

CompressionVector, text-based
TransparencyYes
AnimationYes, via CSS
ColoursUnlimited
Browser supportUniversal
Typical logo2 - 20 KB
Best for
  • Logos and brand marks
  • Interface icons
  • Charts and diagrams
  • Anything printed at multiple sizes
GIF
Graphics Interchange FormatLegacy animation

Obsolete for almost everything. Limited to 256 colours, produces large files, and animated WebP or a short video does the same job far better. It survives purely because everything supports it.

CompressionLossless, 256 colours
TransparencyBinary only
AnimationYes
Colours256 maximum
Browser supportUniversal
Typical animation1 - 5 MB
Best for
  • Short looping animations
  • Maximum compatibility
  • Avoid for still images
  • Prefer WebP or MP4 instead
TIFF
Tagged Image File FormatArchiving and print

A professional archival and print format. Lossless, supports layers and colour profiles, and produces very large files. Not supported by browsers, so it never appears on the web.

CompressionLossless or none
TransparencyYes
AnimationNo
ColoursUp to 32-bit per channel
Browser supportNone
Typical photo10 - 50 MB
Best for
  • Print and prepress
  • Long-term archiving
  • Scanning at high fidelity
  • Professional photography masters
FormatCompressionTransparencySupportUse it for
JPGLossyNoUniversalPhotographs, smallest practical files
PNGLosslessYesUniversalLogos, screenshots, sharp edges
WEBPBothYesModern browsersThe default choice for websites
AVIFBothYesMost modernBest compression, needs a fallback
HEICLossyYesApple onlyiPhone storage, convert before sharing
SVGVectorYesUniversalLogos and icons at any size
GIFLosslessBinaryUniversalLegacy animation only
TIFFLosslessYesNonePrint, archiving, professional masters

What lossy and lossless actually mean

Lossy compression permanently discards image data, choosing detail the human eye is least sensitive to. JPEG does this extremely well on photographs, where the eye is forgiving of small colour variations. Every time you re-save a lossy file it degrades further, which is why editing a JPG repeatedly slowly destroys it.

Lossless compression stores the image exactly, finding patterns to describe the data more efficiently. Nothing is lost and you can re-save endlessly, but files are much larger for photographs because a photograph has few repeating patterns to exploit. Read more on lossy and lossless compression.

Why your iPhone photos are HEIC

Apple switched to HEIC in 2017 because it stores the same quality in roughly half the space of JPEG, which matters when a phone holds thousands of photos. The problem is support: Windows, most websites, older Android phones and many upload forms cannot read it.

You have two options. Change the camera setting to Most Compatible, which shoots JPEG directly at the cost of storage space, or keep shooting HEIC and convert to JPG when you need to share something.

Should you use AVIF yet?

AVIF genuinely compresses better than WebP, sometimes dramatically at low quality settings. Support now covers most modern browsers, but not all of them, and encoding is noticeably slower.

The practical answer for most sites is WebP with a JPG fallback, which is simpler and already delivers most of the benefit. AVIF is worth the extra complexity when you serve a lot of large images and bandwidth is a real cost.

The one mistake to avoid

Saving a photograph as PNG. It happens constantly because PNG sounds like the higher quality option, and technically it is lossless. But a photograph saved as PNG is often five to ten times larger than the same image as a well-compressed JPG, with no visible difference. PNG is lossless in a way that only helps images with flat colour and sharp edges.

A practical guide to image formats

Choosing an image format comes down to three questions: is the image a photograph or a graphic, does it need transparency, and where is it going. Everything else is detail. Photographs compress well with lossy formats like JPG and WEBP; graphics with flat colour and sharp edges need lossless formats like PNG, or vector SVG when the image is made of shapes rather than pixels.

For websites specifically, WebP has become the sensible default. It handles both lossy and lossless compression, supports transparency and animation, works in every modern browser, and produces files roughly a quarter to a third smaller than the equivalent JPEG. That difference is meaningful for page speed and Core Web Vitals.

PNG remains essential, but for a narrower set of cases than most people assume: logos, icons, screenshots containing text, and any image that needs a genuinely transparent background. Using PNG for photographs is the single most common formatting mistake, producing files many times larger with no visible benefit.

HEIC is worth understanding because iPhones shoot it by default. It is an efficient format that saves real storage space, but its support outside Apple devices is poor enough that converting to JPG before sharing is usually necessary. AVIF sits at the other end: technically superior compression, growing support, but not yet the simple default.

Use the converter and compressor to move between any of these formats in batches, the image size guide for the dimensions each platform expects, and the favicon generator when you need one logo turned into every icon size a website requires.