Convert HEIC to AVIF

Converting HEIC to AVIF swaps Apple’s HEVC-based container for one built on the royalty-free AV1 codec, at a similar file size but with far broader software support. It is the right move for a library leaving the Apple ecosystem, and it costs one generation of re-encoding — which is the part to weigh before converting several thousand pictures.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. AVIF cannot hold everything a HEIC can.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

The reason to leave HEIC is licensing, not file size

HEIC is an ISO container holding pictures compressed with HEVC, and HEVC is encumbered by several overlapping patent pools. That is the whole story of why a format that shipped on every iPhone from 2017 is still awkward everywhere else: a decoder costs money to license, so software vendors either paid, waited, or leaned on the operating system to do it for them.

AV1, which AVIF uses, was designed by the Alliance for Open Media specifically to avoid that. It is royalty-free by charter, its decoder is in every current browser, and nobody has to negotiate anything to read one. If the goal is a library that will still open on hardware and software you have not chosen yet, that difference is worth more than any number of kilobytes.

What actually happens when a HEIC becomes an AVIF

It is not a rewrap, even though the two files are structurally cousins — both are ISO base media containers, the same box-and-atom layout as an MP4, differing in what is inside. The HEVC data cannot be relabelled as AV1, so the picture is decoded all the way to raw pixels and compressed again from scratch.

That means one further generation of lossy compression, at quality 82. On a photograph of a person, a street or a landscape you will not see it side by side at normal size. Where a second generation shows first is in the places the first one already struggled — smooth sky gradients, out-of-focus backgrounds, and the block edges around high-contrast detail. Convert a dozen of your own worst-case pictures and look at those areas before deciding.

Exporting the HEIC files out of Photos before you start

Getting the originals out is a step people underestimate. In the Photos app, selecting pictures and choosing Share then Export Unmodified Original gives you the HEIC as the phone wrote it; a plain share sheet or an AirDrop to a non-Apple machine may hand over a converted JPEG instead, and converting that to AVIF would be a third generation for no reason.

The same trap exists on the desktop side. On iOS, Settings then Photos has a "Transfer to Mac or PC" choice between Automatic and Keep Originals — Automatic silently converts HEIC to JPEG on the way out over a cable. If you are migrating a library deliberately, set it to Keep Originals so that what you convert here is the file the camera made.

The one picture that crosses, out of the several a HEIC can hold

HEIC is a multi-image container. A burst is many pictures in one file, a Live Photo pairs a still with a short sequence, and some editing workflows keep the unedited original alongside the edited version. This conversion takes the first image — the one the phone displays and the one anybody means when they point at the file — and writes that.

Everything else in the container is not carried into the AVIF. AVIF itself can hold animation and multiple images, so this is a limit of the conversion rather than of the target format. If a Live Photo’s motion is something you want to keep, export it from Photos as a video and keep that beside the still, because no image conversion is going to do it for you.

What the AVIF does not inherit from the HEIC file

Nothing from the metadata block crosses. The capture date, the camera and lens, the exposure settings and the GPS coordinate are all absent from the output, because the conversion decodes to pixels and encodes again and there is no path for the block to travel.

For a library migration this is the single most important sentence on the page, and it cuts hard. A photo library organised by date is organised by metadata, and a folder of AVIF files with no capture dates is a pile rather than a library. Export the metadata separately — Photos can produce it, and so can exiftool — or keep the HEIC originals as the record and treat the AVIF set as the readable copy. Do not convert and delete.

Ten bits into AVIF, and the eight this conversion writes

A HEIC from an iPhone can carry ten bits per channel, and AVIF as a format goes to twelve, so on paper this is one of the few conversions where the target has room to spare. The pipeline here does not use it: the picture is decoded to eight-bit RGBA and encoded from that, so ten bits in becomes eight bits out.

The same applies to colour space. iPhone photographs are tagged Display P3 and no profile is written into the AVIF, so a viewer will treat the values as sRGB and the most saturated colours will sit back slightly. For a library of ordinary photographs this is a subtle shift; if wide-gamut colour is the reason you shoot on the phone, this conversion is not the way to preserve it.

AV1 encoding is slow, and a large HEIC batch feels it

AVIF is the slowest encoder on this site by a wide margin, and that is inherent to AV1 rather than a shortcoming of the implementation: the codec buys its compression with a very large search, and the search takes time. A single 12-megapixel photograph takes seconds rather than the fraction of a second a JPEG takes.

Multiply that by four thousand pictures and a library migration becomes an afternoon rather than a coffee break. It runs on your own processor, so nothing is queued behind anyone else, but it is worth converting in batches of a few hundred and leaving the tab alone while it works. Start with one batch, check the output, then commit the rest.

Where an AVIF file is still the awkward one

Browser support is settled, and support elsewhere is not. Older photo managers, some desktop image viewers, most photo frames, printing kiosks, and a good many upload forms have never heard of AVIF and will refuse it as flatly as they refuse HEIC. Trading one format nobody can open for another format nobody can open would be a poor migration.

The honest test is to list what will actually read the library — a browser-based gallery, a NAS with a modern viewer, a Linux desktop — and check those specific things with one converted file before converting the set. If the list includes anything old, keep a JPG copy of the pictures that need to be handed to other people, and use AVIF for the bulk that lives on your own storage.

Converting a whole HEIC library without uploading it

This is the case where the privacy property stops being a talking point and becomes the deciding factor. A photo library is the most personal set of files most people own, and a bulk conversion means every one of them passing through whatever tool you chose. Here the HEIC is decoded by libheif in the page and the AVIF encoder runs in the same tab; no request carries an image.

Confirm it before you trust it with the whole set: open the developer tools, watch the network tab through one conversion, and see that nothing goes out. Then disconnect from the internet and convert another, which is the version of the test that leaves no room for interpretation.

A migration plan that does not bet everything on AVIF

The safe shape is three layers rather than one conversion. Keep the HEIC originals on a drive you do not touch, since they are the only copies with the capture data and the full quality. Generate the AVIF set as the working library, which is small and opens everywhere that matters to you. Export the metadata to a sidecar or a catalogue so the dates are recoverable independently of any file format.

Then delete nothing for a year. Formats and software both move, and the cost of keeping the originals is a few hundred gigabytes on a disk that is cheap, against the cost of discovering in eighteen months that the whole library is one generation down and undated.

How to convert a set of HEIC photographs to AVIF

  1. Export the originals from Photos with Export Unmodified Original, so you convert the HEIC and not a JPEG.
  2. Drop a first batch onto this page and check the results before committing the library.
  3. Download the AVIF files as a ZIP, and keep the HEIC originals as the record.

HEIC against AVIF: HEVC royalties against an open AV1 codec

HEIC compared with AVIF
HEICAVIF
Full nameHigh Efficiency Image ContainerAV1 Image File Format
File extension.heic.avif
Media typeimage/heicimage/avif
CompressionLossy — file size is bought with qualityEither, depending on the setting
First published20152019
Published byMPEGAlliance for Open Media
SpecificationISO/IEC 23008-12AV1 Image File Format
LicensingPublished, not standardisedOpen standard
Standing todayCurrentCurrent
Bit depth1012
Colour it can describeYCbCr, wide gamutRGB, YCbCr, wide gamut
Largest image65,536 px per side
Opens in a browserSome browsersCurrent browsers
Considered insteadJPG, WebPWebP, JXL, JPG

What is lost

AVIF has nowhere to put the GPS coordinates, so that goes no further than the HEIC. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

What survives

Transparency survives. Both HEIC and AVIF store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

Animation survives. HEIC and AVIF both hold multiple frames, so the result moves rather than freezing on the first one.

Opening the result

AVIF opens in current browsers, though not in older ones. HEIC has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

AVIF is a container rather than a single format. What actually plays is the codec inside it — usually AV1 — which is why two files with the same extension can behave differently on the same device.

The usual programs do not overlap: HEIC opens in Apple Photos and Adobe Lightroom, AVIF in GIMP, Squoosh and ImageMagick — so whoever receives the result needs something from the second list.

File size and quality

The result is larger than the original and no better. HEIC has already discarded detail, and AVIF stores what is left without discarding more — it prevents further loss rather than undoing the first one.

What each format is for

The two are aimed at different work: HEIC at phones and photography, AVIF at the web and handing a finished file over. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

HEIC is MPEG's format, published in 2015. It records 10 bits per channel.

AVIF comes from Alliance for Open Media and dates from 2019, specified as AV1 Image File Format. GIMP, Squoosh and ImageMagick all read it.

HEIC to AVIF: file size, quality and library migration

Are my HEIC files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is libheif, the reference decoder for Apple's HEIC; your browser fetches it once and caches it.

Is AVIF smaller than HEIC?

At the same visual quality they are close enough that it is not the reason to switch. Both are modern block-based codecs in the same container family, and the differences between them are smaller than the differences between two encoder settings. If your HEIC files are already compact, expect the AVIF to land in the same neighbourhood rather than dramatically below it.

Then why convert at all?

Because of what can open the file. HEIC needs an HEVC decoder, which is covered by a patent pool and is why support arrived late and unevenly. AVIF uses AV1, which the Alliance for Open Media publishes royalty-free, and every current browser decodes it. A HEIC has to be handled by a photo application that knows about it; an AVIF can be double-clicked, dragged into a browser or served from a web page.

Does the conversion lose quality?

Yes, once. The HEIC is decoded to pixels and encoded again with AV1 at quality 82, so this is a second lossy generation on top of the one the phone applied. On an ordinary photograph the result is not distinguishable at normal viewing size, but it is real and it is not reversible, which is why converting a library is a decision to make deliberately.

What happens to Live Photos and burst shots?

A HEIC container can hold more than one picture, and only the first is converted — the one the phone shows you. The extra frames behind a Live Photo, and the rest of a burst, are not written into the AVIF. If those matter, export them from Photos before converting rather than expecting a file conversion to preserve them.

Can I convert back to HEIC afterwards?

Not here, and that is a licensing constraint rather than a missing feature. Writing HEIC means encoding HEVC, and the available encoder is GPL-licensed in a way that a site like this cannot ship. Every HEIC pair on this site reads and none of them writes.

Should I use JPG instead?

For a library that has to be readable by absolutely everything, including a photo frame, a car, a printer’s kiosk and software from 2009, JPG is the safer answer and will be roughly twice the size. AVIF is the better answer if the things reading the library are browsers and current operating systems. Converting a hundred files each way and looking at the totals is a more useful decision than any general rule.

More about these formats

Where these figures come from

The claims this page makes about HEIC and AVIF are checkable, and these are the documents that settle them.