Skip to content

Comparison · Updated

Image formats compared: JPG, PNG, WebP, AVIF, HEIC and more

Use JPEG for photos that must open anywhere, PNG for screenshots and graphics with sharp edges or transparency, and WebP or AVIF for smaller images on websites. HEIC is the iPhone's space-saving photo format, but outside Apple devices it often needs converting to JPG first.

Format features side by side

Lossy formats drop detail to save space, which suits photos. Lossless formats keep every pixel, which suits screenshots, text and logos. Bit depth sets how many shades each colour channel can hold: 8 bits gives 256 levels per channel, and HDR images need 10 bits or more.

FormatCompressionTransparencyAnimationBit depth / HDR
JPEG (.jpg)LossyNoNo8-bit per channel
PNGLosslessFull alphaNo (APNG variant does)1–16 bits depending on mode
WebPLossy or losslessYesYes8-bit
AVIFLossy or losslessYesYes8, 10 or 12-bit; HDR and wide gamut
HEIC / HEIFLossy (HEVC-based)Not used in camera photosRarely used8-bit; 10-bit on some devices
GIFLossless, but only 256 coloursOne fully transparent colourYes8-bit palette
TIFFLossless (LZW, PackBits) or JPEGPossible, rarely usedMulti-page files1–8 bits per MDN; supports CMYK
SVGVector (shapes, not pixels)YesVia CSS or scriptNot applicable
Compression, transparency, animation and bit depth

Browser support

JPEG, PNG, GIF and SVG work in every browser. WebP and AVIF now reach almost every visitor, but older Safari versions only had partial support, so sites often serve a JPEG or PNG fallback with the HTML picture element, which is what MDN recommends.

FormatGlobal supportChromeFirefoxSafariEdge
JPEG, PNG, GIF, SVGAll browsersAllAllAllAll
WebP97.32%326516.0 (macOS), 14 (iOS)18
AVIF96.71%859316.4 (macOS), 16.0 (iOS)121
HEIC / HEIF15.26%NoNo17.0No
TIFFSafari onlyNoNoYesNo
Browser support (caniuse global usage and first full versions)

How much smaller than JPEG?

File size depends heavily on the picture and the encoder setting, so treat these as published averages, not guarantees. A flat graphic can be smaller as PNG than as JPEG, while a detailed photo saved as PNG is usually several times larger than the JPEG.

FormatSize compared withReported resultSource
Lossy WebPJPEG at equal SSIM quality25–34% smallerGoogle WebP documentation
Lossless WebPPNG26% smallerGoogle WebP documentation
Lossy WebP with transparencyPNGTypically 3× smallerGoogle WebP documentation
AVIFJPEG / WebP60% / 35% smaller (Imgix figures)web.dev
HEICJPEG at the same visual qualityAbout 2× compression on averageApple, WWDC 2017 session 513
Published size comparisons

HEIC vs JPG: the iPhone question

iPhones from the iPhone 7 on, running iOS 11 or later, save photos as HEIC when Settings > Camera > Formats is set to High Efficiency, the default. Apple says HEVC-based images average about twice the compression of JPEG at the same visual quality, so a library of HEIC photos takes roughly half the space.

The cost is compatibility. Among browsers only Safari 17 and later shows HEIC; Windows needs Microsoft's HEIF Image Extensions plus HEVC Video Extensions from the Microsoft Store; Android decodes HEIF from Android 9, though Google marks it as optional for device makers. Apple's own conversion helps: when you AirDrop, message or email a photo to a device that cannot read HEIC, or import over USB to a PC, the photo may be converted to JPEG automatically. Turning on Keep Originals in Settings > Apps > Photos stops that conversion.

To stop making HEIC altogether, choose Most Compatible in Settings > Camera > Formats; new photos are then JPEG and new videos H.264. To convert photos you already have, open them in a converter and save as JPEG. Recast's Convert images does this in bulk on your computer: it saves JPEG at quality 90, turns each photo upright using its orientation tag, and removes GPS location by default. JPEG is 8-bit, so any HDR range in the original is not kept.

HEICJPG
Size at the same qualityAbout half (Apple's average)About twice the HEIC size
Opens in all browsersNo (Safari 17+ only)Yes
Opens on WindowsWith HEIF and HEVC extensionsYes
Opens on AndroidAndroid 9+ (device optional)Yes
Bit depth8 or 10-bit8-bit
iPhone settingHigh Efficiency (default)Most Compatible
HEIC vs JPG

Which format should I use?

Recast saves JPEG, PNG, WebP (lossy or lossless), AVIF, TIFF, GIF, ICO and ICNS. It reads HEIC, HEIF, SVG, PSD and JPEG XL but does not save them, so it is a way out of those formats rather than into them.

JobFormatWhy
Photo to email or share with anyoneJPEGOpens on every device and app
Screenshot, text, diagramPNG (or lossless WebP)Keeps sharp edges and exact colours
Logo with transparent backgroundSVG, or PNG if you only have pixelsScales cleanly; PNG has full alpha
Website photosAVIF or WebP with a JPEG fallbackSmallest files; MDN's recommendation
Short animationAnimated WebP or AVIFMDN notes GIF performs worse
Print or archive masterTIFF or PNGLossless; TIFF also holds CMYK
iPhone photos to a Windows PCConvert HEIC to JPEGOpens without extensions
Best format by job

Do it with Recast

These tools run on your computer, so nothing is uploaded.

Frequently asked questions

Is HEIC better quality than JPG?

At the same file size, yes, because HEIC compresses about twice as well on average (Apple). At the same quality, HEIC is roughly half the size. Converting HEIC to JPG keeps the picture but makes a bigger file.

Should I use WebP or AVIF on my website?

Both are supported by about 97% of browsers in use. AVIF is usually smaller; WebP is faster to encode. Serving AVIF with a JPEG or WebP fallback covers almost everyone.

Why is my PNG photo so large?

PNG is lossless, so it stores every pixel of a detailed photo. Save photos as JPEG, WebP or AVIF instead and keep PNG for screenshots and graphics.

Can Recast convert images to HEIC?

No. Recast reads HEIC and HEIF and converts them to JPEG, PNG, WebP, AVIF, TIFF or GIF, but it does not save HEIC.

Sources

Checked on 2 Dec 2026. Platforms change their limits; their own pages are the final word.

More guides

Try every tool free for 3 days

Every tool is in every plan. Cancel before the 3 days are up and you pay nothing.