HEIC vs AVIF: technical differences
To convert HEIC to AVIF, drop your HEIC file into the converter above and download the AVIF: a modern format, usually smaller than JPG and WebP at the same quality, that supports transparency. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
HEIC and AVIF are siblings. Both use the HEIF container. HEIC fills it with HEVC-coded images, and AVIF fills it with AV1-coded ones. AV1 is royalty-free, which is why browsers adopted AVIF while HEIC stayed mostly confined to Apple devices. At comparable quality the two produce files of similar size, and AV1 often wins slightly on smooth gradients.
The formats are close, but the conversion isn't a remux. Pixohub can't move the compressed data from one to the other. It decodes the HEIC (via heic-to, which hands over a lossless PNG), draws it on an 8-bit canvas and encodes AVIF from that. AVIF can technically hold 10-bit HDR, but what comes out here is 8-bit SDR because that's all the canvas gives the encoder.
Only Safari can encode AVIF from a canvas by itself. In Chrome, Edge and Firefox, Pixohub encodes with a bundled copy of libavif compiled to WebAssembly, so the conversion works in every current browser but is slower than JPG or WebP: our 1600 × 1200 test photo took about 8.5 seconds, and a 12 MP original takes longer.
| HEIC (High Efficiency Image Container) | AVIF (AV1 Image File Format) | |
|---|---|---|
| Compression | Lossy HEVC (H.265) intra-frame in a HEIF container | Lossy or lossless (AV1 intra-frame in a HEIF container) |
| Colour depth | 8 or 10 bits per channel; Display P3 on iPhone | 8, 10 or 12 bits per channel; HDR and wide gamut capable |
| Transparency | Not used in iPhone photos | Full alpha channel |
| Animation | Live Photos and bursts are stored as sequences | Yes (image sequences) |
| Metadata | EXIF, XMP, depth maps, HDR gain maps | EXIF, XMP, ICC / CICP colour signalling |
| Typical file size | About half a JPG of the same photo | Usually the smallest — often half a JPG at similar quality |
| Support | Apple devices natively; Windows needs an extension; most browsers cannot display it | Chrome, Edge, Firefox and Safari 16+; patchy in older desktop software |
When to convert HEIC to AVIF
Smallest possible web images from an iPhone
For a performance-critical site, AVIF gives the smallest file that every current browser (Chrome, Edge, Firefox and Safari 16+) can show. Converting directly from HEIC avoids a detour through a bigger JPG.
Replacing HEIC in a cross-platform archive
If you want HEIF-style efficiency but need the files to open on Windows, Android and in browsers without codec packs, AVIF is the closest equivalent. Desktop support is still uneven, so test that your photo viewer opens it.
Framework image pipelines
Next.js, Astro and similar frameworks can serve AVIF, but their build-time optimizers generally can't read HEIC sources. Converting HEIC photos to AVIF (or WebP) first lets them go into a public folder as-is.
What converting HEIC to AVIF keeps and loses
What you keep
- Resolution and upright orientation.
- High visual fidelity at 70–85% quality.
- Very small file size, typically in the same range as the original HEIC.
What you lose
- HDR gain map and any 10-bit depth. The output is 8-bit SDR, even though AVIF itself could hold more.
- EXIF, GPS and camera metadata.
- Depth maps and auxiliary images.
- Speed: AVIF encoding takes seconds rather than the near-instant JPG or WebP export.
Our test: HEIC to AVIF on two real files
AVIF turned the 755 KB test photo into a 303 KB file with the best fidelity of the lossy targets from HEIC: 43.79 dB PSNR, against 39.54 dB for the JPG and 39.93 dB for the WebP at the same 85% setting. That is why it isn't the smallest file here: at 85% AVIF spends its bytes on quality, and a lower setting would bring the size down. The graphic kept its transparency at 34 KB and 46.33 dB.
The cost is time. The photo took 8.5 s, because Chromium has no built-in AVIF encoder and Pixohub runs libavif in WebAssembly.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | HEIC in | AVIF out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 755 KB | 303 KB (−60%) | SSIM 0.990 · 43.8 dB | None in source | Removed | 8.5 s |
| Graphic, 800 × 600, transparent | 100 KB | 34 KB (−66%) | SSIM 0.998 · 46.3 dB | Kept | None in source | 3.2 s |
Last updated
Apps and sites that work with HEIC and AVIF
Browsers and phones that show AVIF
Chrome, Edge and Firefox display AVIF, and Safari does from version 16. The converted file therefore reaches the Android and Windows visitors that a HEIC never could, while still displaying on iPhones and Macs, which makes it a reasonable replacement for HEIC on a website.
WordPress and other CMSs
WordPress accepts AVIF uploads from version 6.5, provided the server's ImageMagick or GD library can process AVIF. On hosts with older libraries the upload is refused or no smaller sizes are generated, in which case a WebP is the practical fallback.
Opening AVIF outside the browser
Desktop support is patchier than for JPG. GIMP reads AVIF from version 2.10.22, macOS Preview opens it on recent macOS versions, and Windows Photos needs Microsoft's free AV1 Video Extension. If the recipient will download and edit the file rather than view it on a page, AVIF is the wrong choice.
Common HEIC to AVIF problems and fixes
The conversion seems stuck
AVIF encoding in WebAssembly is slow: our 1600 × 1200 test took 8.5 s in Chromium, against about 3 s for JPG. A full 12-megapixel HEIC has more than six times as many pixels, so expect a considerably longer wait on a phone or an older laptop. Let it finish, or resize first. Safari uses its own built-in encoder instead.
Someone can't open the file you sent
AVIF is a web format first. A recipient on Windows without the AV1 extension, or using an older photo editor, may see an unknown-file icon or an error. For photos that will be downloaded and opened rather than shown on a web page, send HEIC to JPG output instead. WebP is the middle ground if the site you're uploading to accepts it.
The AVIF is bigger than you hoped
At the default 85% AVIF aims for high fidelity, which is why our photo came out larger than the WebP. AVIF degrades gracefully, so try 60–70% on one photo and compare: grain is smoothed before any blocks appear. Reducing the pixel dimensions with the image resizer also saves more than pushing quality very low.
Tips for better HEIC to AVIF results
- AVIF holds up well at lower quality settings. Try 60–70% before assuming you need 85%.
- If the wait matters more than the last few kilobytes, for example on a batch of photos, HEIC to WebP encodes in a fraction of the time.
How this converter works
Pixohub decodes your HEIC and encodes the AVIF entirely inside your browser, using a bundled HEIC decoder because browsers cannot open HEIC natively. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.