updated Aug 25, 2026 11.4MB file size 6.9K downloads

libheif is the free open-source library that reads and writes HEIF and AVIF images, published as source by its developers and available for Windows as a third-party build with command-line encode and decode tools included.

libheif is the library that reads and writes HEIF and AVIF images.

It is not a program you install and open.

It is a part that other software is built around.

If you arrived here wanting to view an iPhone photo on Windows, the section below points you somewhere better.

THE WINDOWS BUILD IS ONE RELEASE BEHIND

Source version 1.23.2 fixes two critical security issues, one with a confirmed working code-execution exploit. The Windows build here is 1.23.1 and does not contain those fixes yet, so treat it as a conversion tool for your own files rather than something to point at images from strangers.

What You Actually Download

The libheif project itself publishes source code only. No installer, no DLL, no executable, on any platform.

The Windows build offered here is a third-party one, compiled from that same source by an independent maintainer. It is the only ready-to-run Windows package of libheif there is.

WHERE THE WINDOWS BUILD COMES FROM

It is built from the official source by an independent maintainer rather than by the libheif project, and the release it is compiled from matches the upstream tag exactly. That is a reasonable provenance, but it does mean the Windows version arrives weeks after the source release and occasionally skips one.

What you get is more than a library. The archive carries five command-line tools alongside the DLL, and it is a genuinely usable HEIC and AVIF toolkit rather than something only a developer can open.

  • heif-enc converts images into HEIC or AVIF, with quality and codec options.
  • heif-dec converts the other way, out to JPEG, PNG, TIFF or WebP.
  • heif-info reports what is inside a file - tracks, tiles, metadata, colour profile.
  • heif-view displays an image, and heif-thumbnailer generates thumbnails.

It also bundles nearly every codec libheif can use - x265, aom, SVT-AV1, rav1e, dav1d, de265, x264, OpenH264, kvazaar and two JPEG 2000 libraries. That is why a library download unpacks to around 67 MB.

Unpack it anywhere and run the tools from a terminal. Nothing installs and nothing registers itself with Windows, so if you were expecting File Explorer thumbnails, the next section is what you actually want.

If You Just Want to Open HEIC Files

This is the right section for most people, and it is a two-minute job rather than a compile.

On Windows, install HEIF Image Extensions plus the HEVC Video Extension, and File Explorer and Photos start reading HEIC directly.

The second of those is the part that catches people out, because it is a paid Store listing. The guide on how to get the HEVC extension free covers the way around it.

If the Microsoft Store refuses to install either of them, the PowerShell fix when the Store fails is the workaround that does work.

For AVIF stills the equivalent is the AV1 Codec extension, which covers AVIF as well as AV1 video.

Several viewers skip Windows entirely and decode both formats themselves. ImageGlass and nomacs both open HEIC and AVIF with no system extension installed.

PicView does the same and is the lightest of the three.

What Is New in 1.23.2

This release is almost entirely about security, and the maintainer's advice is that everyone should take it.

  • Two critical fixes. Crafted files could attach pixel planes that did not match the image geometry, and the code that crops, scales and extracts planes then read and wrote outside them.
  • A confirmed exploit. One of those two was demonstrated to allow code execution, not just a crash.
  • Three high-severity fixes. A decompression bomb through compressed metadata, runaway CPU and memory use through chained derived images, and decode loops that never terminated.
  • Hardening throughout. C++ exceptions can no longer escape the C interface and abort the host program, and internal assertions were replaced with proper runtime errors.

It is compatible with 1.23.1 at both the API and ABI level, so updating requires no code changes in anything built against it.

What the Library Can Do

On the decoding side it handles tiled images, alpha channels, embedded thumbnails, and EXIF and XMP metadata. It reads depth maps, multiple images per file, and the crop, mirror and rotate transformations stored in the container.

Progressive decoding lets an image be previewed while it is still downloading, and a plugin interface allows extra codecs to be added.

On the encoding side it writes lossy and lossless at adjustable quality, preserves transparency, embeds thumbnails and colour profiles, and supports 10-bit and 12-bit depth as well as monochrome.

Recent versions also read and write HEIF image sequences, which are close enough to MP4 that the library decodes many MP4 videos as a side effect.

Related Libraries and Tools

For AVIF specifically, libavif is the dedicated library, and the AOM AV1 Encoder is the reference encoder underneath a lot of AVIF work.

On Windows, WIC for HEIC and CopyTrans HEIC both add Explorer thumbnail support without going near a compiler.

IrfanView and JPEGView open both formats once the right extensions are in place.

For converting a folder at a time, XnConvert and iMazing Converter both batch HEIC and AVIF.

For a single file there is JPEG to HEIF and HEIF to JPEG in the browser.

Further Reading

Quick questions

Is the .tar.gz the Linux version?

No, it is the source code. The libheif project publishes no compiled binaries for any platform, so that archive is what you build from or what a Linux distribution packages.

Who builds the Windows version?

An independent maintainer, not the libheif project. It is compiled from the official source at the matching release tag, but it arrives weeks later and sometimes skips a version.

How do I install it on Windows?

You generally do not. Install HEIF Image Extensions instead, or use a viewer that decodes HEIC itself.

Is libheif free?

Yes, and open source. It is distributed under the LGPL, with the command-line tools under the MIT licence.

Should I be worried about the security fixes?

If you are decoding files from other people, yes - 1.23.2 fixes two critical flaws and the Windows build has not caught up. For converting your own photos it matters far less.

What is the difference between HEIF and AVIF?

The container is much the same; the codec inside differs. HEIF wraps HEVC-compressed images, AVIF wraps AV1, and AV1 is royalty-free where HEVC is not.

Can it convert my photos?

Its command-line tools can, but for a folder of images XnConvert is far less work.

The wider video codecs catalogue covers the decoders and extensions worth having alongside it.

Download libheif for Windows and see how the tools handle your files, or tell us how you got on if you have used it before.

Be the Voice! Write the First Review or just Drop a Comment on libheif 1.23.2.
Verification Code
Click the image or refresh button to get a new code.
Quick heads up: Reviews & comments get a fast check before posting - no spam allowed.
ALTERNATIVES TO LIBHEIF