HEIF vs HEIC
The container, the codec and the extension, with lookup tables for .heif, .heic, .hif, their MIME types and the devices that make them.
The difference in one sentence
HEIF is the container standard, and HEIC is the name for a HEIF file whose images are compressed with HEVC. Every HEIC is a HEIF, but not every HEIF is a HEIC, in the same way that every MP4 is a video file but not every video file is an MP4.
For the everyday job of opening or converting iPhone photos, the distinction rarely matters, because almost every .heif file you meet also uses HEVC inside. It starts to matter when a file from a camera or another app refuses to open, when you configure a web server, or when you wonder how AVIF fits in. This page is the reference for those cases. For a general introduction to the format, see what a HEIC file is.
Who defines what
Several standards stack on top of each other here, and each one has a different owner:
- ISO Base Media File Format (ISOBMFF), ISO/IEC 14496-12. The general box-based file structure shared with MP4, 3GP and many other formats.
- HEIF, ISO/IEC 23008-12, written by MPEG. It builds on ISOBMFF and defines how still images, collections, sequences, thumbnails and auxiliary data are stored.
- HEVC, also called H.265, published jointly by ITU-T and ISO/IEC in 2013. It is a codec, not a file format, and it is the compression used in HEIC.
- HEIC is not a separate standard. It is the brand and extension HEIF uses to signal HEVC-coded content, and it became the everyday name because Apple uses the
.heicextension.
Apple's own documentation tends to say HEIF when describing the format and uses HEIC as the extension, which is why you will see both words used for the same iPhone photo.
Brands: how a file says what is inside
The extension on a file name is only a hint. The authoritative label sits in the first few bytes of the file, in a structure called the file type box, which lists one major brand and a set of compatible brands. Software reads those codes to decide whether it can handle the file.
The brands you are most likely to encounter:
heic: HEVC still images in the common profiles. This is what an iPhone writes.heix: HEVC in more demanding profiles, for example 10-bit or 4:2:2 color, which some cameras use.mif1: a generic HEIF image file, codec not implied by the brand itself.msf1andhevc: image sequences rather than single stills.avif: AV1-coded images in the same container family.
This is why renaming a file does not change what it is. A photo with the heic brand is HEVC inside whether it is called photo.heic or photo.heif, and well-written software will read it either way.
Inside the container: items, properties and links
A JPG is a single stream of data from start to finish. A HEIF file is organized more like a small database, which explains why one format can cover phones, cameras and animations.
Everything in the file is an item: a coded image, a block of EXIF metadata, an XMP packet, a thumbnail. Each item can carry properties that describe it, such as its pixel dimensions, color information, rotation or crop. Items are then connected by references that say how they relate: this small image is a thumbnail of that one, this grayscale image is the depth map for that photo, this EXIF block describes that image.
Some items are not pixels at all but recipes. A grid item tells the decoder to assemble a large picture from many small coded tiles, which is how iPhones store their photos. Other derived items describe an overlay of several images, or simply point at another image with a rotation or crop applied. One item is flagged as the primary image, and that is the picture a basic viewer shows when it opens the file.
This structure is why a converter can find several images inside one file, and why a simple viewer may show only the main photo while ignoring the rest. HEIC to PIC exports each image it finds in a multi-image file as its own output, so bursts and sequences are not silently reduced to one frame.
Extension lookup table
Use this table when you are handed a file and need to know what it most likely contains and what to do with it.
| Extension | Usually contains | Typical source | MIME type |
|---|---|---|---|
.heic | HEVC still image or collection | iPhone and iPad cameras, many Android phones, image editors | image/heic |
.heics | HEVC image sequence | Rare; some animation and burst tools | image/heic-sequence |
.heif | Any HEIF image, most often HEVC | Android phones, cameras, editors exporting generic HEIF | image/heif |
.heifs | Generic HEIF image sequence | Rare | image/heif-sequence |
.hif | HEVC, often 10-bit HDR | Mirrorless cameras from Canon, Sony and Fujifilm | Treated as image/heif |
.avif | AV1 still image or sequence | Web image tools, browsers, converters | image/avif |
The .hif extension is not one the HEIF standard spells out, but the files are ordinary HEIF inside. Camera makers likely chose it to match the three-letter extensions that camera file naming rules have traditionally used.
Codecs that can live inside HEIF
Because HEIF is a container, it can in principle carry images compressed in several ways. In practice you will meet a small set:
- HEVC (H.265), by far the most common, used by phones and cameras. This is what makes a file HEIC.
- AVC (H.264), the older video codec. The standard allows it, but HEIF files using it are uncommon.
- JPEG, which the standard also allows, though files built that way are uncommon.
- AV1, through the AVIF specification from the Alliance for Open Media. AVIF uses a closely related container and is royalty free, which is why browsers adopted it while largely skipping HEIC.
- VVC (H.266), added in later editions of the standard, with little real-world use so far.
The practical consequence: a viewer that only knows HEVC will open nearly every .heic and most .heif files, but it will not open an AVIF just because the container looks familiar, and the reverse is also true. If you want to compare AVIF with HEIC on its own merits, see the comparison of HEIC, AVIF, WebP and JPEG XL.
MIME types for developers and site owners
The four HEIF-family MIME types, image/heic, image/heif, image/heic-sequence and image/heif-sequence, are registered with IANA. AVIF has its own, image/avif.
A few practical notes if you run a website or an upload form:
- Servers that do not know these types may send HEIC files as a generic binary download. Add
image/heicandimage/heifmappings if you serve them for download. - Browsers do not always report a MIME type for HEIC files a visitor selects, especially on systems without HEIF support installed. Check the extension as well as the type before rejecting a file.
- An
acceptattribute listingimage/heicandimage/heiftells the visitor's device you can take those files. Leaving them out can prompt some phones to convert to JPEG before upload, which is often what you actually want. - Accepting a HEIC upload is only half the work. If your server software cannot decode it, thumbnails and previews will fail later. Converting to JPEG on arrival, or asking visitors to convert first, avoids that.
Which devices produce which
The extension you see depends on the device and sometimes on the setting used:
| Device or app | Extension you will usually see | Notes |
|---|---|---|
| iPhone and iPad camera | .HEIC | Default on iPhone 7 and later since iOS 11; Live Photos add a separate .MOV |
| Samsung Galaxy phones | HEIF when High efficiency pictures is on | Off by default on many models; see the Samsung HEIF guide |
| Other Android phones | .heic or .heif | Depends on the maker and camera app; many still default to JPG |
| Canon, Sony, Fujifilm cameras | .HIF | Often 10-bit and HDR; offered as an alternative to JPG on recent models |
| Mac Preview exports | .heic | When you pick HEIC as the export format on recent macOS versions |
| Image editors and libraries | Either | Varies by tool; some let you pick |
Troubleshooting by symptom
Most problems with HEIF and HEIC files trace back to a missing decoder or to software that trusts the extension more than the contents. Match what you see to the likely cause:
- The photo opens on the phone but shows a blank icon on a PC. The PC lacks a HEVC decoder. Install the system extensions or convert the file.
- An app accepts
.heicbut rejects the same photo named.heif. The app is checking the extension only. Renaming back usually works, though converting to JPG is the safer fix. - A camera
.HIFfile looks dark, flat or washed out in a viewer. It is probably a 10-bit HDR file being shown by software that assumes standard range. Open it in the camera maker's software or an HDR-aware editor. - A file named
.heifwill not open in a tool that handles iPhone photos fine. It may use a codec other than HEVC, such as AV1, or an unusual profile. Check its brand with a file inspection tool before assuming it is damaged. - An upload form rejects both
.heicand.heif. The site does not support the family at all. Convert to JPG or PNG before uploading.
What this means when you convert
HEIC to PIC accepts both .heic and .heif files, so you do not need to rename anything. Drop a .heif from an Android phone or a .heic from an iPhone into the HEIF to JPG converter, or choose the HEIF to PNG converter when you want lossless output, and both are handled the same way.
Camera .hif files are a different story. They are not an input the converter lists, and many of them are 10-bit HDR images. Because the converter writes 8 bits per channel, an HDR camera file reduced that way can look flat or oddly toned compared with what the camera showed. For those, the camera maker's own software or a photo editor with HEIF support is the more reliable route.
On Windows, HEIF and HEIC files from any source depend on the same pair of Microsoft extensions. If your .heif files show as blank icons in File Explorer, the guide to HEIF Image Extensions on Windows explains what to install and why it sometimes still fails.
If a file opens on one device and not another, the codec is the usual suspect, not the extension. A HEVC file needs a HEVC decoder; an AV1 file needs an AV1 decoder, whatever it is called.
Frequently asked questions
Why do some photos end in .heif and others in .heic?
Different devices and apps choose different extensions for the same container. iPhones write .heic, while some Android phones, cameras and editors write .heif or .hif; when the images inside use HEVC, the same tools open all of them.
Can I rename .heic to .heif or the other way round?
Renaming does not change the contents, and software that reads the file's internal brand will open it either way. It will not make a file readable by a program that lacks a HEVC decoder.
What is a .hif file?
It is the extension several mirrorless cameras, including models from Canon, Sony and Fujifilm, use for HEIF photos. The files are HEVC inside and are often 10-bit HDR images.
Is AVIF a type of HEIF?
AVIF uses a container from the same HEIF family but compresses images with AV1 instead of HEVC. A HEIC decoder cannot open an AVIF unless it also supports AV1.
Which MIME type should a server use for HEIC files?
Use image/heic for .heic files and image/heif for .heif files. The sequence variants image/heic-sequence and image/heif-sequence cover multi-frame files.