HEIF (High Efficiency Image Format) Complete Guide
What Is HEIF?
HEIF (High Efficiency Image Format) is a modern image container format standardised by the Moving Picture Experts Group (MPEG) in 2015 under ISO/IEC 23008-12. It uses the HEVC (H.265) video codec for image compression, achieving roughly 40–50 % better quality-per-byte than JPEG at identical file sizes. Apple adopted HEIF as the default camera capture format on iPhone 7 and later (iOS 11+), bringing the format into mainstream use overnight.
The file extension is normally .heif or .heic (HEIC is the Apple-specific variant that mandates HEVC compression; HEIF is the broader container that may also use future codecs such as AV1/AVIF).
Container Architecture
HEIF builds on the ISO Base Media File Format (ISOBMFF) — the same foundation used by MP4 video. This design lets a single HEIF file hold:
- One or more still images (e.g. burst shots, bracket exposures, HDR stacks)
- Image sequences / animations (similar to animated GIF, but far smaller)
- Depth maps and segmentation data (used in Portrait Mode bokeh, background-removal APIs)
- Auxiliary images — thumbnail, alpha mask, gain map for HDR display
- Full metadata — EXIF, XMP, ICC colour profiles
Compression Engine: HEVC (H.265)
HEIF still images are compressed by HEVC, which employs:
- Recursive block partitioning — coding tree units (CTUs) up to 64 × 64 px, split into smaller prediction units (PUs) adapting to local image complexity
- Spatial prediction — 33 angular intra-prediction directions plus DC and planar modes
- Transform coding — integer DCT (4 × 4 to 32 × 32), separable butterfly implementation
- Context-Adaptive Binary Arithmetic Coding (CABAC) — superior entropy compression vs. JPEG's Huffman coding
- Deblocking and SAO filtering — post-processing removes block artefacts at high compression ratios
Quality is specified via a Quantisation Parameter (QP) from 0 (near-lossless) to 51 (maximum compression). In practice, QP 20–28 delivers visually transparent results for most content.
Colour Depth and Gamut
HEIF supports 8-bit, 10-bit, and 12-bit colour depth per channel. 10-bit encoding enables faithful reproduction of wide-gamut colour spaces:
- Display P3 (DCI-P3) — default on recent iPhones and iPads; covers ~25 % more colours than sRGB
- Rec. 2020 / BT.2020 — ultra-wide gamut for broadcast and cinema mastering
- sRGB — standard for web and legacy displays
10-bit and 12-bit files look identical on sRGB displays but retain colour headroom for future wide-gamut screens and editing.
HDR Support
HEIF natively encodes High Dynamic Range imagery using two industry-standard transfer functions:
- Perceptual Quantizer (PQ / SMPTE ST 2084) — absolute luminance up to 10 000 nits; used in Dolby Vision and HDR10
- Hybrid Log-Gamma (HLG / ARIB STD-B67) — backward-compatible with SDR displays; used in broadcast HDR
An HDR HEIF stores a gain map alongside the standard SDR rendition, allowing legacy devices to display the SDR version while HDR-capable screens reconstruct the full dynamic range — all within the same file.
Alpha Channel (Transparency)
HEIF supports an 8-bit (and optionally 16-bit) alpha channel compressed independently via HEVC. Unlike PNG's alpha (stored as raw or DEFLATE-compressed data), HEIF alpha leverages HEVC prediction, reducing alpha overhead to near-zero for simple masks and achieving significant savings on complex transparency.
Metadata and Auxiliary Images
Every HEIF file can embed:
- EXIF — camera make/model, focal length, shutter speed, GPS coordinates
- XMP — extensible metadata for keywords, copyright, creative ratings, colour labels
- ICC profile — precise colour-space definition ensuring consistent rendering across devices
- Thumbnail — embedded low-resolution preview for fast gallery loading
- Depth map — 16-bit grayscale depth data from stereo cameras or LiDAR; used by iOS for Portrait Mode effects and computational photography APIs
Advantages
| Feature | HEIF | JPEG |
|---|---|---|
| Compression efficiency | ~50 % smaller at same quality | Baseline |
| Bit depth | 8 / 10 / 12-bit | 8-bit only |
| Wide colour gamut | P3 / Rec. 2020 native | sRGB only |
| HDR | Yes (PQ + HLG + gain map) | No |
| Alpha transparency | Yes | No |
| Animation | Yes | No |
| Multiple images in one file | Yes | No |
| Depth / auxiliary data | Yes | No |
Disadvantages and Compatibility Gaps
Despite its technical superiority, HEIF faces real-world hurdles:
- Patent licensing — HEVC is encumbered by two competing patent pools (MPEG LA and HEVC Advance); this deterred broad adoption on non-Apple platforms for years
- Web browser support — Chrome and Firefox still lack native HEIF/HEIC decoding (as of 2025); Safari has full support
- Windows — requires the HEIF Image Extensions codec (free in Microsoft Store) or Windows 11 built-in support on newer builds
- Android — Google Photos accepts HEIF upload but native Android gallery support varies by OEM and Android version
- Encoding speed — HEVC encoding is 5–10× slower than JPEG for equivalent quality; real-time encoding requires hardware acceleration
Platform Support Matrix (2025)
| Platform | Status |
|---|---|
| iOS 11+ / iPadOS | Full — default camera format |
| macOS 10.13+ | Full — Preview, Photos, Finder thumbnail |
| Windows 11 (recent builds) | Native; older builds need HEIF Extension |
| Android | Partial — varies by OEM |
| Chrome / Firefox | No native HEIC; AVIF (HEIF + AV1) supported |
| Safari 13+ | Full |
| Adobe Lightroom / Photoshop 2021+ | Full |
| Capture One 21+ | Full |
| DaVinci Resolve 17+ | Full |
File Size in Practice
A 12 MP iPhone photo (4032 × 3024 px):
- HEIF (default iPhone) — 1.5–3 MB
- JPEG (same scene) — 3–6 MB
- PNG (lossless) — 18–25 MB
Switching an iPhone photo library from JPEG to HEIF reduces iCloud storage consumption by 40–50 % — a meaningful saving for users near storage limits.
When to Use HEIF
Use HEIF when:
- Shooting on iPhone / iPad and archiving locally or in iCloud
- Working in a macOS or iOS-only ecosystem
- Needing HDR, wide-gamut, or depth-map data alongside the image
- Archiving large image libraries where storage savings are critical
Convert to JPEG or WebP when:
- Sharing on the web or social media
- Sending to Android users or Windows users without HEIF codec
- Uploading to platforms that only accept JPEG/PNG (many e-commerce sites, CMS platforms)
- Processing in older software tools
Converting HEIF Files
Modern batch converters handle HEIF natively. Converting HEIF → JPEG with KaijuConverter preserves full visual quality while ensuring universal compatibility. HEIF → PNG conversion is ideal when alpha-channel data must be retained. HEIF → WebP delivers a good size/compatibility balance for modern web projects.
Related conversions
Most teams that read this guide convert images in one of these directions: