HEIC: the iPhone photo that's really a folder of pictures.
Since 2017, iPhones save photos as .heic by default. The file is a container that can hold the photo in tiles, a thumbnail, depth data and more, compressed with the same technology as 4K video. That's why it's small, and why some computers won't open it.
HEIC uses HEVC, the codec behind 4K streaming, to compress each tile. Typical 12-megapixel iPhone photos come in around 1.5-2.5 MB as HEIC against 3-5 MB as JPEG. Drag to see what that means for a whole camera roll.
HEIC uses the same container as MP4: the ISO base media file format. Every piece is a box that starts with a 4-byte length and a 4-letter type, and boxes nest. Pictures are described in meta and their compressed bytes sit in mdat. This is the layout of a typical iPhone photo; click a box to decode it.
The ipco box stores each property once: a codec configuration, a size, a colour profile, a rotation. The ipma box is a table saying which item uses which. All 48 tiles point at the same codec setup and the same 512 × 512 size, so it is stored once, not 48 times. Click a cell to see what it means.
This page reads the box tree and the meta box itself. It lists every item, assigns each property through ipma, follows every iref link and draws the tile grid. It also locates each item’s bytes through iloc, which is how it pulls the EXIF out (GPS included) and measures what share of the file each part takes. HEVC tiles are not decoded here, because only Safari and some systems can. AVIF files usually display in any browser. Everything happens on your device. The sample is a real iPhone-style box layout built in your browser, with placeholder bytes where the HEVC data would go.
Support depends on whether the device can decode HEVC, which is patent-licensed. Apple devices always can. Elsewhere it varies, so pick where you want to open the photo.
You don't have to convert every photo by hand. One setting changes what the camera saves; the other converts automatically when photos leave the phone.
HEIF is the container, defined in ISO/IEC 23008-12. HEIC is HEIF holding HEVC-coded images. The brand in the ftyp box tells software which codec and profile it needs before it reads anything else.
Each converter page explains what's kept and what's lost.