HEIC is an image file format that stores still photographs inside the High Efficiency Image File Format (HEIF) container and compresses them with the HEVC (H.265) video codec. In photography and image processing, it is best known as the default capture format on modern smartphones, where it delivers image quality comparable to JPEG at roughly 40 to 50 percent smaller file sizes.
The name is often used interchangeably with HEIF, but the two are not identical: HEIF is the container specification, while HEIC refers specifically to HEIF files whose image data is coded with HEVC. The distinction matters when a workflow, editor or web platform supports one variant of the container but not another.
How HEIC compresses and stores an image
HEIC achieves its efficiency by applying intra-frame HEVC coding to a still image, the same tools a video encoder uses for key frames. The image is divided into coding tree units of up to 64 by 64 pixels, which are recursively split into smaller blocks that adapt to detail. Flat sky areas receive large blocks and few bits, while textured foliage receives small blocks and more bits.
Each block is predicted from neighboring pixels using 35 intra-prediction modes, and only the residual difference is transformed, quantized and entropy-coded with CABAC arithmetic coding. JPEG, by contrast, uses fixed 8 by 8 blocks and simpler Huffman coding, which explains most of the compression advantage and the absence of visible block edges at moderate quality settings.
The HEIF container, standardized as ISO/IEC 23008-12 by the Moving Picture Experts Group, is built on the ISO base media file format. Large photos are typically stored as a grid of tiles, often 512 by 512 pixels each, which a decoder reassembles into the full frame. The container can also hold thumbnails, depth maps, alpha masks, EXIF metadata and several related images in one file.
The table below lists the main components a HEIC file can contain and the purpose of each.
| Component | Purpose | Typical use |
|---|---|---|
| Primary image | Main coded picture, often tiled | The photo itself |
| Thumbnail item | Small preview image | Fast gallery browsing |
| Auxiliary depth map | Per-pixel distance data | Portrait blur editing |
| Alpha plane | Transparency mask | Cutouts and overlays |
| Metadata items | EXIF and XMP records | Camera settings, geotagging |
| Image sequence | Several related frames | Bursts and live photos |
Key technical parameters of HEIC
HEIC supports a wider set of image properties than baseline JPEG, which is why it suits high dynamic range capture. Most smartphone files use 10-bit color depth and 4:2:0 chroma subsampling, although the HEVC profiles defined for still images allow other combinations.
| Parameter | HEIC | Baseline JPEG |
|---|---|---|
| Bit depth | 8 to 16 bits per channel | 8 bits per channel |
| Block size | Adaptive, 4 to 64 pixels | Fixed 8 by 8 pixels |
| Transparency | Supported via alpha plane | Not supported |
| Multiple images | Supported in one file | Single image only |
| Lossless mode | Possible but rarely used | Not in baseline |
| Typical 12 MP file | About 1.5 to 3 MB | About 3 to 6 MB |
File sizes vary strongly with scene detail, noise level and encoder quality setting, so the figures above are typical ranges rather than fixed values. A noisy low-light frame compresses far less efficiently than a clean daylight landscape in either format.
HEIC compared with other image formats
HEIC belongs to the generation of modern compressed formats that also includes WebP and AVIF, and each represents a different balance of efficiency, licensing and compatibility. RAW files serve a different purpose entirely, because they store unprocessed sensor data before demosaicing.
| Format | Compression basis | Main strength | Main weakness |
|---|---|---|---|
| HEIC | HEVC intra coding | Efficient camera capture | Patent licensing, weak web support |
| JPEG | DCT on 8 by 8 blocks | Universal compatibility | Larger files, 8-bit only |
| AVIF | AV1 intra coding | Royalty-free, strong compression | Slower encoding |
| WebP | VP8 intra coding | Broad browser support | Limited bit depth |
| RAW | Little or no compression | Maximum editing latitude | Very large files |
The decisive practical difference is ecosystem support. HEVC is covered by several patent pools, so some operating systems and browsers require an extra codec package or do not decode HEIC at all, whereas JPEG opens everywhere. AVIF uses the same container family but a royalty-free codec, which is why web platforms adopted it faster.
Using HEIC in a photographic workflow
HEIC works best as a capture and archive format on devices that save it natively, and as a less suitable choice for delivery to unknown recipients. The following decision table summarizes common situations.
| Situation | Recommended format | Reason |
|---|---|---|
| Everyday smartphone shooting | HEIC | Saves storage with no visible loss |
| Sharing with unknown devices | JPEG | Guaranteed to open anywhere |
| Serious editing and grading | RAW | Retains full sensor data |
| Publishing on websites | AVIF or WebP | Native browser decoding |
| HDR photo viewing on phones | HEIC | 10-bit depth preserves gradients |
Many phones convert HEIC to JPEG automatically when a photo is sent through email or transferred to a computer, unless the user enables original-format export. Editors such as Adobe Lightroom and Capture One import HEIC directly, but edits are still applied to already compressed, demosaiced and tone-mapped data, not to sensor values.
Limitations and common misconceptions
HEIC is not a replacement for RAW, even though it often holds 10-bit data. The camera pipeline has already applied white balance, noise reduction, sharpening and a tone curve, so highlight recovery and color correction have far less latitude than in a raw file.
- Repeated conversion degrades quality: each HEIC to JPEG round trip adds a new generation of lossy artifacts.
- Metadata can be lost when conversion tools discard depth maps, HDR gain maps or XMP records.
- Decoding is more demanding than JPEG, which slows thumbnail generation on older hardware.
- HEIC and HEIF are not synonyms in every tool: some software reads HEIF with AVC or AV1 data but rejects HEVC content.
Another misconception is that HEIC is always visually lossless. At default smartphone settings it usually is for normal viewing, but heavy cropping or aggressive tonal edits can reveal smoothing of fine texture, which the encoder treats as removable detail.
A non-technical view
HEIC is simply a smarter way to save a photo. Think of packing a suitcase: JPEG folds every item in identical squares, while HEIC folds each item to fit its shape, so the same clothes take about half the space.
The photo looks the same to the eye, but the phone stores more pictures before running out of room. The catch is that not every computer or website can open HEIC, so phones often turn it into a JPEG when the picture is shared. The key takeaway is that HEIC is excellent for keeping photos and less convenient for sending them.
A concrete example
A travel photographer spends three weeks abroad with a 128 GB smartphone and shoots about 4,000 photos at 12 megapixels. Saved as JPEG at roughly 4 MB each, the set would occupy about 16 GB; saved as HEIC at roughly 2 MB each, it fits in about 8 GB, leaving room for 4K video clips on the same device.
Back home, the photographer imports the originals into an editor that reads HEIC natively and keeps them as the archive. For a client gallery on a website, selected images are exported once to AVIF and JPEG fallbacks. The outcome is half the storage for the archive, no visible quality loss, and full compatibility for viewers, because conversion happens only once at the delivery stage.