WebP, AVIF and JPEG XL explained: the modern image formats

Why websites serve WebP and AVIF, what JPEG XL promises, and how to convert these modern formats to JPG or PNG when an app won't open them.

Right-click an image on a modern website and "Save image as…" and there's a good chance you'll get a .webp or .avif file instead of a JPG. Then you try to open it in an older editor, attach it to a form or print it, and it fails. What are these formats, why are they everywhere, and what should you do with them?

Why new image formats exist

JPG dates from 1992 and PNG from 1996. Both are excellent at what they do, but compression research has moved on dramatically. Images are the heaviest part of most web pages, so shaving 30–50% off their size means faster sites, lower bandwidth bills and better search rankings through Core Web Vitals. That's the motivation behind WebP, AVIF and JPEG XL.

WebP

WebP was released by Google in 2010, based on the VP8 video codec. It supports lossy and lossless compression, transparency and animation — effectively replacing JPG, PNG and GIF with one format.

  • Size: typically 25–35% smaller than JPG at similar quality.
  • Support: every modern browser, including Safari since 2020.
  • Weak spots: some desktop software, older Office versions, printers and many upload forms.

AVIF

AVIF is the still-image version of the AV1 video codec from the Alliance for Open Media (Google, Apple, Netflix, Microsoft and others). It reached browsers around 2020–2022.

  • Size: often 20–30% smaller again than WebP, especially at low bitrates.
  • Quality: excellent for photos, supports 10- and 12-bit colour and HDR.
  • Weak spots: slower to encode, and many apps outside the browser still can't open it.

JPEG XL

JPEG XL is the official successor to JPEG from the same committee, finalised in 2021–2022. It has a unique trick: it can losslessly repack existing JPG files about 20% smaller and convert them back perfectly. It also offers top-tier lossy compression, HDR and progressive decoding.

Apple added JPEG XL decoding to Safari and its operating systems in 2023. Browser support elsewhere has been uneven, so JPEG XL is great for archives and Apple workflows but not yet a safe choice for sharing.

Comparison

JPGWebPAVIFJPEG XL
Year1992201020192021
Relative size (photo)100%≈70%≈50%≈55%
TransparencyNoYesYesYes
AnimationNoYesYesYes
HDR / wide colourNoNoYesYes
Opens everywhereYesMostlyPartlyNo

Relative sizes are rough averages; results vary by image.

Which should you use?

  • Sharing with people or uploading to forms: JPG — still the only format that's universally accepted.
  • Screenshots, logos, graphics with transparency: PNG, or WebP for websites.
  • Your own website: WebP as a safe default, AVIF for maximum savings with a fallback.
  • Archiving JPG collections: JPEG XL if your tools support it.

How to convert WebP and AVIF to JPG or PNG

On iPhone, LocalConvert opens WebP, AVIF and JPEG XL natively and converts them in batches:

  1. Open LocalConvert and choose your images from Files or Photos.
  2. Pick JPG for photos or PNG to keep transparency.
  3. Tap Convert and save.

Jump straight to WebP to JPG, WebP to PNG, AVIF to JPG or AVIF to PNG.

Converting the other way: making WebP for your website

If you build websites, converting photos JPG to WebP or PNG to WebP is one of the easiest performance wins available. Resize images to the largest size they're actually displayed at (use Resize Images), then encode at around 75–80% quality. Most visitors will never see the difference — but they'll feel the speed.

Quality settings that actually make sense

Quality sliders aren't comparable between formats: "80" in WebP is not the same as "80" in JPG or AVIF. As a starting point:

  • JPG: 80–85 for photos you'll share, 90+ for printing.
  • WebP: 75–80 looks equivalent to a JPG at about 85, at a smaller size.
  • AVIF: 50–65 often matches a JPG at 85; AVIF holds up remarkably well at low settings.
  • PNG: lossless, so there's no quality slider — size depends on the image content.

Always compare at the size the image will be displayed. Zooming to 400% will reveal differences no visitor will ever see.

Transparency and animation

A frequent surprise: converting a transparent WebP or AVIF to JPG turns the transparent areas white (or black, in some tools). JPG simply has no alpha channel. If your image is a logo, sticker or cut-out, convert to PNG instead. Animated WebP and AVIF files keep only their first frame when converted to a still format; for animation, GIF or a short MP4 video are the portable options.

Frequently asked questions

Why does Save Image As give me WebP when the site showed a JPG?

Many websites use content negotiation: the server checks what your browser supports and quietly sends the most efficient format, even if the URL ends in .jpg. Your browser saves what it actually received.

Can iPhone open WebP and AVIF?

Yes. Photos, Files and Safari display WebP and AVIF on current versions of iOS. The trouble starts when the file leaves Apple's ecosystem or meets older software.

Will converting WebP to JPG make it bigger?

Usually, yes — that's the price of compatibility. At a quality setting of 80–85, the JPG might be 20–40% larger than the WebP it came from.

The bottom line

Modern formats are better at compression; JPG and PNG are better at compatibility. Use modern formats where you control the viewer — your website, your Apple devices — and convert to JPG or PNG at the moment an image needs to travel somewhere you don't.

Related

Keep reading

HEIC vs JPG: which photo format should you use on iPhone? HEIC photos are half the size of JPGs, but not everything can open them. Here's when to keep HEIC, when to switch to JPG, and how to convert in seconds. How to compress a video on iPhone without losing quality Video too big to send? Learn how bitrate, resolution and codec affect file size, and how to shrink iPhone videos by 50–90% while keeping them sharp. MOV vs MP4: what's the difference, and which should you use? iPhones record MOV, the rest of the world prefers MP4. Learn how the two containers differ, why conversion is often lossless, and when it matters.

Convert anything, right on your iPhone.

LocalConvert works offline, keeps your files private, and handles 100+ formats in one calm app.

Download on the App Store Free to try · iPhone & iPad · iOS 26