00

The short answer

  • HEIF is a binary image container that stores one image, image collections, or image sequences with related metadata, but opening it depends on the file’s brand, codec, and reader support.
  • Start with a reader that supports both the ISO-BMFF container and the codec used by the file. Apple provides built-in HEIF support starting with iOS 11 and macOS High Sierra 10.13; Photos or Preview on a compatible Mac can open the file and export it as JPEG or PNG. On Windows or another device, use a reader that explicitly supports the file’s HEIF brand and codec. A .heif extension alone does not prove that a particular decoder can display it.
  • A normal HEIF image is not identified as an executable, but the format is a complex box-based container. It may hold hidden images, sequences, protected items, or references to external media data. Treat an untrusted HEIF file cautiously: use an updated, isolated parser, restrict external-resource access, and impose limits on dimensions, pixel count, item count, and decoding resources.
01

HEIF File: How to Open, Identify, and Convert It

High Efficiency Image File Format is the international format defined by ISO/IEC 23008-12, first published in 2017 and based on the ISO Base Media File Format. A HEIF container can associate primary images with thumbnails, derived or auxiliary images, sequences, and Exif, XMP, or MPEG-7 metadata. HEIF names the container, not one compression algorithm.

Keep the original

JPEG or PNG export does not preserve the original HEIF bitstream or container structure. A single-image export may omit additional primary images, thumbnails, auxiliary or hidden images, relationships, color information, or metadata. Check what the converter retains and keep the original HEIF file.

02

How to open it

Start with a reader that supports both the ISO-BMFF container and the codec used by the file. Apple provides built-in HEIF support starting with iOS 11 and macOS High Sierra 10.13; Photos or Preview on a compatible Mac can open the file and export it as JPEG or PNG. On Windows or another device, use a reader that explicitly supports the file’s HEIF brand and codec. A .heif extension alone does not prove that a particular decoder can display it.

I only want to read it

Start with a reader that supports both the ISO-BMFF container and the codec used by the file. Apple provides built-in HEIF support starting with iOS 11 and macOS High Sierra 10.13; Photos or Preview on a compatible Mac can open the file and export it as JPEG or PNG. On Windows or another device, use a reader that explicitly supports the file’s HEIF brand and codec. A .heif extension alone does not prove that a particular decoder can display it.

I need to send it to someone

JPEG or PNG export does not preserve the original HEIF bitstream or container structure. A single-image export may omit additional primary images, thumbnails, auxiliary or hidden images, relationships, color information, or metadata. Check what the converter retains and keep the original HEIF file.

03

File safety

A normal HEIF image is not identified as an executable, but the format is a complex box-based container. It may hold hidden images, sequences, protected items, or references to external media data. Treat an untrusted HEIF file cautiously: use an updated, isolated parser, restrict external-resource access, and impose limits on dimensions, pixel count, item count, and decoding resources.

Stop if any of this looks off

An unknown sender, a name ending in two extensions, or contents that do not match the extension — check before you open it.

04

Converting it

JPEG or PNG export does not preserve the original HEIF bitstream or container structure. A single-image export may omit additional primary images, thumbnails, auxiliary or hidden images, relationships, color information, or metadata. Check what the converter retains and keep the original HEIF file.

Before you convert

Convert a copy, never the original, then compare quality, metadata, and layout against what you started with.

05

Common questions

What is a HEIF file format, and what can it contain?

HEIF is the binary image container standardized as ISO/IEC 23008-12 and based on ISO-BMFF. It can contain one image, an image collection, or a sequence, plus thumbnails, derived or auxiliary images and Exif, XMP, or MPEG-7 metadata.

How do I open a HEIF file?

Use a reader that supports the HEIF container, the compatible brand recorded in the file, and its image codec. Checking only the .heif extension is insufficient because HEIF is a container rather than a single compression method.

How do I open a HEIF file on Windows?

Choose a Windows reader that explicitly supports both ISO-BMFF HEIF containers and the codec used by the file. If it still cannot decode the image, open and export it on a compatible Apple device or use another codec-aware converter while retaining the original.

How do I open and export a HEIF image on Mac?

On macOS High Sierra 10.13 or later, open the HEIF image in Photos or Preview. You can then export it as JPEG or PNG, but the export may not retain every image, relationship, color property, or metadata item in the container.

How do I open a HEIF file on an iPhone or iPad?

iOS 11 and later include HEIF support. Open the image with a compatible system app; when sharing to an incompatible recipient, the device may automatically provide a JPEG instead.

Why will my HEIF file not open even though its extension is correct?

The reader may understand the HEIF container but lack support for its brand or image codec, or the file may be damaged or mislabeled. Verify the ISO-BMFF box structure and compatible brands instead of relying only on the extension.

What is the difference between HEIF and HEIC?

HEIF is the general container format. HEIC is a HEIF subtype using particular HEVC brands, so a HEIC file is a kind of HEIF file but not every HEIF file is HEIC.

How do I convert HEIF to JPG, and what can be lost?

Export the image through a compatible reader such as Photos or Preview on Mac. JPEG does not preserve the HEIF bitstream or container structure, and a single-image export may omit additional images, thumbnails, relationships, color information, or metadata; keep the original.

How do I convert HEIF to PNG while preserving metadata?

Use a converter that explicitly reports which images, color information, and metadata it retains. PNG cannot reproduce the entire HEIF container structure, so confirm the output and preserve the source file even when some metadata is copied.

Is a HEIF file from an email safe to open?

Do not assume it is safe solely because it has a .heif extension. HEIF is a complex container that may include hidden or protected items and external-media references; inspect untrusted files with an updated, isolated parser and restricted resource access.

How can I identify a HEIF file by its ftyp signature and MIME type?

PRONOM checks for ASCII ftyp at offset 4 followed by a recognized brand such as mif1, msf1, heic, heix, hevc, or hevx, but this is not a unique fixed full-file magic number. Validate the ISO-BMFF structure and brands. IANA uses image/heif for a general single image or collection; sequences use image/heif-sequence.

06

Related formats

Sources

MPEG-H Part 12: Image File Format · MPEG official standards catalog

IANA Media Types Registry · IANA official registry

High Efficiency Image File (HEIF) Format, MPEG-H Part 12 · Library of Congress Sustainability of Digital Formats

PRONOM fmt/1101: High Efficiency Image File Format · The National Archives UK official format registry

Using HEIF or HEVC media on Apple devices · Apple official support documentation