Skip to main content

File format

What is a HEIC file?

Checked against the sources on Sizes measured

In one paragraph

A .heic file is a HEIF (High Efficiency Image File Format) file whose pictures are coded with HEVC, the H.265 video codec. The IANA registration of image/heic (2018) defines it precisely: a file may be labelled heic only if it conforms to the 'heic', 'heix', 'heim' or 'heis' brand, which means it contains HEVC-coded image items. The broader image/heif label covers HEIF files coded with any codec. Many browsers and programs cannot open it without help.

HEIC at a glance

HEIC at a glance
PropertyWhat the source saysSource
Media typeimage/heic (HEVC-coded HEIF); image/heif for HEIF with any codec. Sequences use image/heic-sequence and image/heif-sequence.IANA heicIANA
What makes a file HEICIt must conform to the 'heic', 'heix', 'heim' or 'heis' brand and list one of them as a compatible brand.IANA heic
File extensions.heic for image/heic, .heif for image/heif, and .hif for either.IANA heic
Magic numberThe IANA registration lists none. In practice the file begins with an ISO BMFF 'ftyp' box naming the brand; the sample measured here starts with ...ftypheic.IANA heic
Published specificationISO/IEC 23008-12, which the registration names as a Publicly Available Standard. It was not opened for this page.IANA heic
Browser supportMDN's image format guide, read on 13 November 2026, does not list HEIC among the image types web browsers support. The Chromium build measured here could not decode the sample.MDN
Each row was checked against the linked source on 13 November 2026.

HEIC, HEIF and .hif: one container, several labels

HEIF is a container: a structure of boxes taken from the ISO base media file format (ISO/IEC 14496-12) that holds, in the IANA registration's words, "one or more image items", and, as image/heif-sequence or image/heic-sequence, image sequences. It does not by itself say how the pixels are compressed. HEIC is the name for the common case where they are compressed with HEVC, the codec standardised as H.265.

The IANA registration draws the line through brands, the four-letter codes in the file's first box. A file whose brands include 'heic', 'heix', 'heim' or 'heis' and that meets those brands' requirements is image/heic and conventionally ends in .heic. A HEIF file meeting the general 'mif1' brand is image/heif and ends in .heif. The .hif extension is allowed for both. AVIF, for comparison, is the same container with AV1-coded images.

How to open a HEIC file

Start by checking that the file really is HEIC. Open it in a hex viewer: bytes five to eight read "ftyp" and the next four name the main brand, "heic" for the sample measured on this page. If you see FF D8 at the very start instead, it is a JPEG with a .heic name and any image viewer will open it once renamed.

A genuine HEIC needs software with an HEVC image decoder. Browsers are the usual gap: MDN's format guide does not list HEIC, and the Chromium build measured here refused to decode it. AltFTool's HEIC to JPG Converter gets around this by bringing its own decoder, the heic2any library (libheif compiled to JavaScript), so the file is decoded and re-encoded as JPG or PNG inside your browser tab.

Choose PNG if the HEIC has transparency or you plan to edit the image further; choose JPG for sharing and upload forms. Expect the JPG to be larger than the HEIC was, as the measurement below shows: you are trading a compact file for a format everything can read.

Why one HEIC can contain more than one picture

Because HEIF holds image items rather than a single bitmap, one file can carry more than one picture. The registration's optional itemtypes parameter describes each item and refers to "the primary item of the file", the picture a reader is meant to treat as the image. Multi-layer items get their own parameter (lhevcptl) describing which combinations of layers a decoder must handle.

In practice this matters when a converter gives you a different number of pictures than you expected. If a HEIC turns into more than one JPG, or a burst turns into a single frame, the file held several items and the tool chose which to decode. Check the result before deleting the original.

What to do with a HEIC file

What to do with a HEIC file
You want toBest moveWhy
Look at it on a computerTry your photo viewer, else convertSupport depends on the software installed; browsers may not open it.
Upload it to a form that asks for JPGConvert to JPGForms check the type; HEIC will be rejected even if it is small.
Keep the best copy of the photoKeep the HEICRe-encoding to JPG adds a second lossy step.
Edit it in older softwareConvert to PNGLossless from the decoded pixels, and widely supported.
Put it on a web pageConvert to JPG, WebP or AVIFMDN's browser guide does not list HEIC.
Send it to someone on another deviceConvert to JPGThe safest choice when you do not know their software.

Measured example

The HEIC reference file, and what the site's converter made from it
FileBytesSizeFidelity to the original
Photo sample as HEIC (reference file, made outside the site)49,46148.3 KBbrowser could not decode it
Converted by heic2any to JPEG, quality 0.90 (HEIC to JPG's default)127,442124 KB29.1 dB
Converted by heic2any to PNG1,159,3451132 KB29.3 dB
13 November 2026, Chromium 153.0.8010.12. Fidelity: PSNR against the original (higher is closer).

The reference HEIC is 48.3 KB and begins 66 74 79 70 68 65 69 63 in hex, which spells "ftypheic". The browser's own decoder refused it (InvalidStateError), so the converter's bundled decoder did the work: the JPEG it produced at quality 0.90 is 124.5 KB, 2.6 times the size of the HEIC.

The JPEG's fidelity against the original pixels is 29.1 dB, lower than the other formats' figures on these pages. That number includes the HEIC's own compression and heic2any's decoding as well as the JPEG step; the measurement does not separate them, so this page does not say which step costs what.

photo.heic was made outside the site with pillow-heif 1.8.1 (libheif 1.23.6, x265 4.3+1-e9b8812), Pillow 13.0.0: quality 43 (pillow-heif scale 0-100), RGB 8-bit; picked as the quality whose PSNR, decoded by libheif 1.23.6 and measured with FFmpeg, came nearest the WebP 0.82 encode (about 36.2 dB against 36.5 dB). Decoded by heic2any in the browser, the same file measures lower.

How these files were made and measured

What this page does not claim

  • Which cameras or phones save HEIC by default, and since when: no primary source for that was opened, so this page does not say.
  • The HEIF facts here come from the IANA registration, whose change controller is the ISO file-format chair, not from ISO/IEC 23008-12 itself.
  • Patent licensing for HEVC: not covered by any source opened for this page.

Questions

What is the difference between HEIC and HEIF?

HEIF is the container format; HEIC is HEIF whose images are coded with HEVC (H.265). In IANA's registration, image/heic requires the 'heic', 'heix', 'heim' or 'heis' brand, while image/heif covers HEIF files using any coding format.

Why can't my browser open a HEIC file?

Displaying HEIC needs an HEVC image decoder, which a browser may not include. MDN's image format guide (read 13 November 2026) does not list HEIC, and the Chromium build measured for this page could not decode the sample. Convert it to JPG or PNG to view it anywhere.

How can I tell if a file is really HEIC?

Open it in a hex viewer. Bytes five to eight read "ftyp" and the next four name the brand; "heic" (or heix, heim, heis) means an HEVC-coded HEIF file. A file that starts with FF D8 is a JPEG with the wrong extension.

Can one HEIC file hold several pictures?

Yes. HEIF holds one or more image items, and the IANA registration refers to the primary item of the file, the picture a reader treats as the image. Bursts and sequences use image/heic-sequence.

Is a .hif file the same as a .heic file?

It can be. The IANA registration allows .hif for both image/heif and image/heic, so a .hif file may or may not contain HEVC-coded images; its brand tells you which.

Sources

  1. IANA, 9 August 2018Media type registration for image/heif and image/heicRegistration (registered 2018-07-30, last updated 2018-08-09) · opened 13 November 2026
  2. IANAMedia Types registry, image/* (apng, avif, heic, heif, jpeg, png, webp)Registry · opened 13 November 2026
  3. MDN Web Docs, 5 November 2026Image file type and format guideReference guide (page last modified 5 November 2026) · opened 13 November 2026

Working with a HEIC file?

Open a HEIC in the browser and save it as JPG or PNG, in batches. The HEIC to JPG Converter runs in your browser tab, with no account.