HEIC

Also known as: HEIF

On this page 7

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.

ComponentPurposeTypical use
Primary imageMain coded picture, often tiledThe photo itself
Thumbnail itemSmall preview imageFast gallery browsing
Auxiliary depth mapPer-pixel distance dataPortrait blur editing
Alpha planeTransparency maskCutouts and overlays
Metadata itemsEXIF and XMP recordsCamera settings, geotagging
Image sequenceSeveral related framesBursts and live photos
Typical components inside a HEIC file

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.

ParameterHEICBaseline JPEG
Bit depth8 to 16 bits per channel8 bits per channel
Block sizeAdaptive, 4 to 64 pixelsFixed 8 by 8 pixels
TransparencySupported via alpha planeNot supported
Multiple imagesSupported in one fileSingle image only
Lossless modePossible but rarely usedNot in baseline
Typical 12 MP fileAbout 1.5 to 3 MBAbout 3 to 6 MB
HEIC parameters compared with baseline JPEG

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.

FormatCompression basisMain strengthMain weakness
HEICHEVC intra codingEfficient camera capturePatent licensing, weak web support
JPEGDCT on 8 by 8 blocksUniversal compatibilityLarger files, 8-bit only
AVIFAV1 intra codingRoyalty-free, strong compressionSlower encoding
WebPVP8 intra codingBroad browser supportLimited bit depth
RAWLittle or no compressionMaximum editing latitudeVery large files
How HEIC relates to neighboring formats

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.

SituationRecommended formatReason
Everyday smartphone shootingHEICSaves storage with no visible loss
Sharing with unknown devicesJPEGGuaranteed to open anywhere
Serious editing and gradingRAWRetains full sensor data
Publishing on websitesAVIF or WebPNative browser decoding
HDR photo viewing on phonesHEIC10-bit depth preserves gradients
Choosing between HEIC and alternatives

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.