HEIF/HEIC Image Format: Apple's Modern Compression Standard
What is HEIF/HEIC?
HEIF (High Efficiency Image Format) and its variant HEIC (High Efficiency Image Container) represent Apple's modern approach to image compression. Developed by the MPEG consortium and standardized in ISO/IEC 23008-12, HEIF leverages the H.265 (HEVC) video codec to achieve superior compression efficiency compared to JPEG.
HEIC is Apple's proprietary variant of HEIF, becoming the default format for iPhone cameras starting with iPhone XS (2018) and all subsequent models. For iOS and macOS users, HEIC is now the primary format for photo capture and storage.
Technical Foundation: H.265 Codec
Unlike JPEG's DCT-based compression, HEIF uses H.265 (HEVC, H.264's successor) video codec principles adapted for still images:
Prediction Modes: H.265 analyzes local pixel patterns and selects from 35+ prediction modes (versus DCT's single approach) to optimally represent image regions.
Transform Blocks: Coding Tree Units (CTU) range from 16×16 to 64×64 pixels, enabling adaptive block sizing similar to AVIF.
Entropy Coding: Context-adaptive binary arithmetic coding (CABAC) achieves near-optimal compression.
In-Loop Filtering: Deblocking and sample adaptive offset (SAO) filters reduce compression artifacts.
The result is compression typically 25-50% better than JPEG at equivalent quality, and comparable to WebP or AVIF.
Color Support and HDR
HEIF supports full HDR imaging through BT.2020 color space and 10-12 bit color depth:
SDR (Standard Dynamic Range): 8-bit per channel, Rec. 709 color space for compatibility with legacy displays.
HDR (High Dynamic Range): 10-12 bit per channel, Rec. 2020 or Rec. 2100 color spaces for HDR-capable displays. Apple's iPhone 12+ models capture HDR video that encodes to HEIF with full dynamic range.
Wide Color Gamut: Support for P3 color space and DCI-P3, enabling professional color accuracy.
Tone Mapping: Converting between SDR and HDR is supported, allowing backward compatibility with SDR displays.
HEIC vs HEIF: Apple's Variant
HEIF is the standardized format; HEIC is Apple's implementation:
HEIC (High Efficiency Image Container): Apple's trademark format used exclusively on iOS and macOS. Includes Apple-specific metadata, camera settings, and Live Photo data alongside the image.
HEIF (General Standard): Generic format specification allowing any vendor implementation. Non-Apple implementations use HEIF.
Practical Difference: All iPhone photos are HEIC; non-Apple software typically reads both HEIF and HEIC (they share codec structure).
File Size Comparison: Real-World Measurements
| Source | HEIC Size | JPEG Size | PNG Size | WebP Size |
|---|---|---|---|---|
| iPhone 14 Pro 12MP portrait | 2.1 MB | 3.8 MB | 8.2 MB | 2.8 MB |
| iPhone 14 Pro 48MP high-res | 8.5 MB | 15.2 MB | 32 MB | 11 MB |
| iPhone 13 night mode HDR | 3.2 MB | 5.1 MB | 10 MB | 4.1 MB |
Typical compression: HEIC achieves 45-55% of JPEG file size at equivalent visual quality.
Browser Support and Compatibility
Browser Support (as of 2026):
- Safari: Full support (macOS 11+, iOS 11+)
- Chrome: Planned support in progress
- Firefox: No support
- Edge: Limited support
- Other browsers: No native support
Practical Limitation: HEIC requires conversion to JPEG/PNG/WebP for web deployment. Desktop applications (Photoshop 2022+, GIMP via plugin, Affinity Photo) support HEIC editing.
Use Cases: Where HEIC/HEIF Excels
iPhone Photography: Native capture format, optimized for mobile storage constraints. iPhone users expect HEIC.
Cloud Backup: iCloud Photos automatically stores HEIC, reducing storage costs by 45-50% compared to JPEG.
Professional Photography: HDR support in HEIF enables professional workflows preserving full dynamic range.
Memory Constrained Devices: Mobile and embedded systems benefit from HEIF's superior compression.
Advantages Over JPEG
Superior Compression: 25-50% smaller files at equivalent quality.
HDR Support: Full dynamic range for professional applications.
Lossless Option: HEIF can encode lossless images, similar to PNG.
Modern Codec: H.265 optimization continues; JPEG is static since 1992.
Metadata: Supports EXIF, ICC profiles, and Apple-specific Live Photo data.
Disadvantages and Limitations
Compatibility: Non-Apple platforms have limited native support. HEIC images require conversion for Windows, Android, or legacy applications.
Web Incompatibility: Not suitable for web distribution without conversion to JPEG/PNG/WebP.
Software Support: Limited editing tools compared to JPEG. Photoshop support is relatively new.
Licensing: HEVC patents create uncertainty; some jurisdictions have licensing concerns.
Encoding Performance: H.265 encoding is slower than JPEG, impacting mobile battery life on continuous capture.
Conversion Workflow
For sharing HEIC images with non-Apple users:
On macOS/iOS: Export as JPEG (lossy) or PNG (lossless) via Photos app.
Batch Conversion: ImageMagick, FFmpeg, or online converters handle HEIC → JPEG/PNG.
Loss of Metadata: Smart HDR data is tone-mapped to SDR; full HDR information is lost on conversion.
Comparison: HEIC vs WebP vs AVIF vs JPEG
| Feature | HEIC | WebP | AVIF | JPEG |
|---|---|---|---|---|
| File Size | 25-50% of JPEG | 30-35% of JPEG | 20-50% of JPEG | 100% baseline |
| HDR Support | Yes (native) | No | Yes (native) | No |
| Compression Type | H.265 codec | VP8/VP9 codec | AV1 codec | DCT |
| Browser Support | ~30% (Safari only) | ~95% | ~75% | 99.9% |
| Color Depth | 8-12 bit | 8-bit | 10-12 bit | 8-bit |
| Lossless Option | Yes | Yes | Yes | No |
| Encoding Speed | Slow | Moderate | Very Slow | Fast |
| Transparency | Yes (alpha) | Yes (alpha) | Yes (alpha) | No |
| Use Case | Apple ecosystem | Web graphics | Web (modern browsers) | Universal |
Conclusion
HEIC/HEIF represents Apple's forward-thinking approach to image compression, delivering superior quality-to-size ratios through modern H.265 codec technology. For iPhone users and Apple ecosystem applications, HEIC is the practical choice, offering 45-50% storage savings.
However, HEIC remains incompatible with the wider web ecosystem. Convert to JPEG or PNG for sharing with non-Apple users, PNG for transparent graphics, and WebP/AVIF for modern web applications requiring superior compression with broad browser support.
As H.265 patent landscape stabilizes and browser support expands, HEIF may eventually challenge JPEG's dominance. For now, HEIC is best thought of as an Apple-ecosystem format requiring conversion for universal distribution.
Related conversions
Most teams that read this guide convert images in one of these directions: