HEIF vs HEIC: What's the Difference?
HEIF is the container, HEIC is what you get when that container holds HEVC-encoded photos — and .hif is the same family from cameras. What each extension means, where you meet it, and what to do with each one.
Container vs codec, in one paragraph
HEIF (High Efficiency Image File Format) is the container: the box that holds the image data, and optionally depth data, bursts and thumbnails. HEIC is what the box is called when the image inside is encoded with HEVC — the same codec as H.265 video. So every HEIC file is a HEIF file, but not every HEIF file is a HEIC: the container can hold other codecs too, and the file extension tells you which one you have.
Where you meet each one
The .heic extension is the iPhone default, so it is the one most people meet. The generic .heif extension shows up from Android phones, cameras and conversion tools that do not assume HEVC. The .hif extension is the camera world's variant: Canon, Fujifilm and Sony write 10-bit HDR stills as .hif, which is HEIF with HEVC inside, just like an iPhone HEIC. And AVIF is the same HEIF container with AV1 video coding instead of HEVC — the web's version of the same idea.
When a HEIF file will not open
First, a .heif file fails while .heic files open: the extension is not the problem — the file may use a codec your decoder does not cover, so check it in a viewer with built-in HEIF decoding. Second, a .hif file from a camera will not insert into Office or open in Photos: that is the camera-file exception, so convert a copy to JPEG. Third, an app lists HEIF support but still refuses the file: it likely decodes the container but not the HEVC inside, so install the HEVC Video Extensions as well.
What to do with each format
For .heic from an iPhone: install the two Store extensions, or open the files in a viewer with built-in decoding. For .heif from Android or a converter: the same codecs, the same fix — the container is identical. For .hif from a camera: try the codecs first, and convert to JPEG when an app still refuses it, since camera HIF is the variant most likely to hit the exception. For AVIF: remember it is a different codec in the same container, so a HEIC fix does not cover it — it needs an AV1 decoder instead.
HEIF, HEIC, AVIF and HIF at a glance
| Format | Container, codec and MIME type | Where you meet it |
|---|---|---|
| HEIC | HEIF container, HEVC codec, .heic, image/heic | iPhone photos since iOS 11 |
| HEIF | HEIF container, codec varies, .heif, image/heif | Android phones, cameras, conversion tools |
| AVIF | HEIF container, AV1 codec, .avif, image/avif | Web images and newer Android phones |
| HIF | HEIF container, HEVC codec, .hif, image/heif | Canon, Fujifilm and Sony 10-bit HDR stills |


Open a HEIF, HEIC or HIF file on Windows
- Install the free HEIF Image Extensions from the Microsoft Store — .heic, .heif and .hif all need it.
- Install the HEVC Video Extensions too; check the free Device Manufacturer edition before paying $0.99.
- Restart the app you open the file in, then double-click the file — Photos should show it like any JPG.
- If the app still refuses it, open the file in a viewer with HEIF decoding built in, such as WePic, to confirm the file itself is fine.
- To share the photo, convert a copy to JPG — the format every app and website accepts.
Download WePic for Windows / Mac
Other options
On a Mac, HEIF, HEIC and HIF all open natively in Preview and Photos, so the container question never comes up. On Windows, a viewer with built-in decoding skips the codec question entirely. Renaming .heif to .heic (or the reverse) changes nothing: the codec inside stays the same, and only the extension label changes.
Frequently asked questions
Is HEIF the same as HEIC?
Almost: HEIF is the container format, and HEIC is a HEIF file whose image is encoded with HEVC. In practice, when someone says HEIF they usually mean the same iPhone photos that carry the .heic extension.
What is a .hif file?
A .hif file is a HEIF container with HEVC inside, written by Canon, Fujifilm and Sony cameras for 10-bit HDR stills. It opens with the same HEIF and HEVC extensions as a .heic file, and if an app refuses it, converting a copy to JPEG is the supported fallback.
Is AVIF the same as HEIF?
AVIF uses the same HEIF container, but the image inside is encoded with AV1 instead of HEVC. That is why a HEIC decoder does not automatically open AVIF: the box is the same, the codec is different, and each needs its own decoder.
Do I need different software for .heif and .heic files?
No. The same HEIF and HEVC extensions decode both, and a viewer with built-in HEIF support opens either extension. The extension tells you what is inside the container, not which app to use.
Which format should I keep my photos in?
Keep the originals as they came: HEIC from an iPhone, HIF from a camera. Convert copies to JPG only for sharing, because JPG opens everywhere and the original keeps its smaller size and higher bit depth.