Blog

Guides

How to convert HEIC, WebP and AVIF images to JPG or PNG

A saved picture came down as WebP, or your iPhone photos are HEIC and a form rejects them. Here is why these formats exist and how to convert them.

MD Rakib Shekh · Founder & Lead Architect

· 7 min read

On this page

You save a picture from a website and it comes down as .webp. Your photo editor won't open it. Or you send iPhone photos to a form and they're rejected because they're .heic. Newer image formats save space, but not every app, form or computer is ready for them.

This guide explains why phones and websites use HEIC, WebP and AVIF, and how to convert them to JPG or PNG when you need something that opens everywhere.

Why these formats exist

All three do the same basic job as JPG and PNG, but with better compression. Smaller files mean less storage on your phone and faster pages on the web.

HEIC is the format iPhones and iPads use for photos. Apple calls HEIF a space-saving format, and iPhone 7 and later can capture photos in it (Apple Support).

WebP is a format created by Google for the web. Google says WebP lossless images are 26% smaller than PNGs, and lossy WebP images are 25 to 34% smaller than comparable JPEGs (Google for Developers). It supports transparency and animation too.

AVIF is a newer, royalty-free format. MDN, Mozilla's web reference, says it offers much better compression than PNG or JPEG and supports transparency (MDN).

Why they cause trouble

The problem is support. A format only helps if the app at the other end can open it.

FormatWhere you see itWhy it causes trouble
HEICiPhone and iPad photosMost web browsers can't show it, and Windows may need an extra codec
WebPImages saved from websitesBrowsers show it, but some older apps and upload forms reject it
AVIFImages saved from newer websitesRecent browsers show it; older software may not

A few details behind that table:

  • HEIC in browsers. Can I Use, which tracks browser support, lists HEIC as supported in Safari 17 and later, and not in Chrome, Edge or Firefox (Can I Use).
  • HEIC on Windows. Microsoft says you may need to install a codec to open HEIF files on a Windows computer, and that codecs are available from Microsoft and other developers (Microsoft Support).
  • WebP and AVIF in browsers. MDN lists WebP as supported in all versions of Chrome, Edge, Firefox, Opera and Safari, and AVIF from Chrome 85, Firefox 93, Safari 16.1 and Edge 121.

So the issue is rarely your browser. It's usually an older desktop app, a printer kiosk or an upload form that only accepts JPG and PNG.

How to convert WebP or AVIF to JPG or PNG

Pagestro's Convert Image tool opens JPG, PNG, WebP, AVIF and GIF files. It saves to JPG, PNG, WebP, GIF, BMP, TIFF, ICO, SVG or PDF, and to AVIF in browsers that can encode it. The conversion runs in your browser, so your images aren't uploaded.

Step 1. Open Convert Image and drop in your images. You can add one or many.

Step 2. Choose the new format. JPG is the safe choice for photos. PNG keeps transparency and every pixel.

Step 3. For JPG, WebP or AVIF, pick a quality: Max Reduction, Recommended or High Quality, or set the slider yourself. You can also cap the width at 1920, 1280 or 800 pixels while you convert.

Step 4. Download. Several images come back together in a ZIP.

A few things to know:

  • JPG and BMP have no transparency, so see-through areas are filled with white, not black.
  • PNG, WebP, GIF, TIFF, ICO and SVG keep transparency.
  • Animated GIFs are converted from their first frame.
  • AVIF output needs a browser with an AV1 encoder, such as Chrome or Edge. Where yours has none, the AVIF option is greyed out or tells you so, and WebP is the closest alternative.
Tip: Converting a lossy image to PNG makes the file bigger, not sharper. PNG keeps every pixel it's given, but it can't bring back detail the original never had.

What to do with HEIC photos

Pagestro's Convert Image tool doesn't open HEIC files today. These options, from Apple and Microsoft, get you a JPG instead.

Change the iPhone camera setting. Open Settings, tap Camera, tap Formats and choose Most Compatible. Apple says new photos will then use JPEG. Photos you already took stay as HEIC.

Let your iPhone convert when it shares. Apple says that when you share by AirDrop, Messages or email and the other device doesn't support HEIF, the photo may be sent in a more compatible format such as JPEG.

Let it convert when you import. When you import photos from an iPhone to a computer over a cable, Apple says they may be converted to JPEG. That doesn't happen if Keep Originals is turned on under Settings > Apps > Photos.

Export on a Mac. Open the photo in Photos or Preview, choose File > Export, then pick JPEG.

Add a codec on Windows. If Windows won't open HEIC files at all, Microsoft's guidance is to install a HEIF codec.

Once you have a JPG, Pagestro can resize it, compress it, or turn a batch into one PDF with JPG to PDF. See our guide on how to turn photos into a PDF.

Which format should you convert to?

What you needFormat to pick
A photo for an upload form or older appJPG
A logo, screenshot or image with a transparent backgroundPNG
Images for your own websiteWebP, or AVIF with a fallback
A favicon for a websiteICO
An image as a one-page documentPDF

For a deeper comparison, read JPG vs PNG vs WebP vs AVIF.

If the images are for your own site, the move often goes the other way: you convert JPG and PNG to WebP to make pages lighter. MDN suggests offering a fallback when you use AVIF, because support is narrower. Our guide on how to compress images for your website covers that, along with Compress Image for shrinking files you've already converted.

Keep your originals

Every time you save a photo in a lossy format, such as JPG or lossy WebP, a little detail can be lost. Converting a WebP to JPG to send to one person is fine. Converting the same image back and forth many times isn't. Keep the original file and convert a fresh copy each time you need a different format.

Frequently asked questions

Can Pagestro convert HEIC to JPG?

Not today. Set your iPhone camera to Most Compatible, let iOS convert when you share or import, or export to JPEG from Photos or Preview on a Mac.

How do I convert WebP to JPG?

Add the WebP file to Convert Image, choose JPG, set the quality and download. Transparent areas become white.

Will I lose transparency?

Only if you pick JPG or BMP, which can't store it. PNG, WebP, GIF, TIFF, ICO and SVG keep it.

Can I save images as AVIF?

Yes, in browsers with an AV1 encoder, such as Chrome and Edge. Elsewhere, choose WebP.

Are my images uploaded?

No. Conversion happens in your browser on your own device.

  • HEIC
  • WebP
  • AVIF
  • Image formats
  • Convert Image

Written by

MD Rakib Shekh

Founder & Lead Architect

Founder of Pagestro & UIXport. Specializing in WebAssembly browser tools, PDF processing, and high-performance design workflows.

Get new guides by email

Practical tips for PDFs, contracts and invoices. Unsubscribe anytime.