Glossary
HEIC
Apple’s default photo format: a HEIF container holding images compressed with the HEVC codec, at roughly half the size of a comparable JPEG.
A HEIC file is a photo stored in the High Efficiency Image File Format (HEIF) and compressed with the HEVC codec, the same codec used for H.265 video. Apple made it the default camera format on iPhone and iPad with iOS 11 in 2017, because it stores a photo of similar visual quality in roughly half the space of a JPEG. The format is efficient and capable, but support outside Apple’s ecosystem is patchy, so HEIC files are a common source of failed uploads, blank thumbnails and missing previews in web and AI applications.
HEIF, HEIC and HEVC
The names overlap, and the distinction matters when debugging. HEIF is the container, standardised by MPEG as ISO/IEC 23008-12 in 2015. It is built on the ISO Base Media File Format, the same box structure used by MP4, which is why a HEIC file and an MP4 video share a family resemblance at the byte level. HEVC is the compression method applied to the pixels inside the container; it is a video codec repurposed for still images, where each photo is coded much like a single intra frame of a video. HEIC is simply the name and file extension for HEIF files whose images are HEVC-coded.
The same container can hold images coded in other ways. AVIF is HEIF with AV1-coded images, and some cameras write HEIF files with other codecs. Each variant has its own brand string in the file header, and each has its own MIME type: image/heic for single HEVC images, image/heic-sequence for sequences, image/heif for the general container and image/avif for AV1. Relying on the .heic extension alone is risky, because files are often renamed during transfer.
What a HEIC file contains
A HEIF file is a set of items rather than a single bitmap. The primary item is the photo the viewer shows, but the file can also hold thumbnails, alternative versions, depth maps from portrait mode, alpha channels, HDR gain maps and several images in one file for bursts or edits. Recent iPhones store large photos as a grid of smaller coded tiles that are stitched together at display time, which is one reason naive decoders sometimes show only a fragment of the image or fail outright.
Metadata travels with the image. Capture details such as camera model, lens, exposure, ISO, timestamps and GPS coordinates are stored as an Exif item, using the same tags described in EXIF data. Edit history and descriptive fields can be stored as XMP metadata. Live Photos are a pair: a HEIC still and a short MOV video linked by a shared identifier, so a library that keeps only the HEIC loses the motion. Colour profiles are embedded as well, and HEIF supports higher bit depths than the 8 bits per channel of a baseline JPEG, which helps with HDR photos and smooth gradients.
HEIC compared with other image formats
HEIC is one of several modern formats competing to replace JPEG. The table shows where it sits.
Format | Compression | Typical size against JPEG | Transparency | Browser support |
|---|---|---|---|---|
HEIC | HEVC in a HEIF container | Around half for similar quality | Yes | Safari only among major browsers |
JPEG | DCT, lossy | Baseline | No | Universal |
WebP | VP8 lossy or lossless | Around a quarter to a third smaller | Yes | All major browsers |
AVIF | AV1 in a HEIF container | Often smaller than HEIC | Yes | All major browsers in recent versions |
PNG | Lossless deflate | Much larger for photos | Yes | Universal |
TIFF | Uncompressed or various | Much larger | Yes | Not in browsers |
The comparison explains the format’s position. HEIC compresses well and keeps rich metadata, but HEVC is covered by patent pools, which has slowed adoption in open-source software and web browsers. WebP and AVIF reached browsers first, and TIFF remains the choice for archives and print where file size matters less than fidelity. Most phone photos that reach a web service in HEIC form end up converted to JPEG or one of these formats somewhere along the way.
Why HEIC causes trouble in applications
Most problems come from decoders. Android, Windows and Linux can read HEIC with the right libraries or system extensions, but those are not always installed on a server, and popular image libraries often need an extra plugin built against libheif. A service that accepts uploads from iPhones without HEIC support will store files it cannot thumbnail, resize or display, and the failure tends to appear later as broken previews rather than at upload time.
Phones sometimes hide the format. iOS converts HEIC to JPEG automatically when sharing to apps or websites that do not declare HEIC support, which means a team can test uploads for months without seeing a single HEIC file, then meet thousands of them when a new client app or a desktop sync tool starts sending originals. Photos exported from a Mac or synced through cloud storage often arrive in their original HEIC form.
Detection needs to look at the bytes. File type detection for HEIF reads the ftyp box at the start of the file and checks the brand: heic, heix or mif1 for HEVC-coded images, and avif for AV1. That check catches HEIC files saved with a .jpg extension, which happens more often than it should, and stops a JPEG decoder from failing on them. Uploads should also go through malware scanning like any other image, since the format’s complexity has produced decoder vulnerabilities in the past.
Conversion is the usual fix, with one caution. Converting HEIC to JPEG for display is cheap, but a careless conversion strips the Exif block, flattens HDR, drops depth data and loses the link to a Live Photo’s video. A sound pipeline keeps the original, generates a JPEG or WebP rendition for previews, and copies the metadata across deliberately rather than by accident.
Making HEIC photos searchable
Once a HEIC photo can be decoded, it is handled like any other image in search and AI systems. Metadata extraction pulls capture time, device and location from the Exif item, which supports filters such as photos taken on a given trip or by a given camera. Image captioning produces a description that can be searched by text, OCR reads any text in the frame, such as signs, receipts or whiteboards, and colour extraction records the dominant palette for colour search.
For finding photos by what they show, image embeddings place each photo in a vector space so that visual search and reverse image search can find similar pictures from an example. Burst shots and edited copies are common in phone libraries, so near-duplicate detection is worth running early to keep results from filling with ten versions of the same moment. Together these signals make up multimodal search: one query matching text in captions, text in the image, metadata and visual similarity.
Location data deserves care. GPS coordinates in a HEIC file can reveal a home address, and many apps strip them when sharing publicly. A system that indexes personal or customer photos should decide which metadata to keep, which to show and which to remove, and should treat that decision as part of its privacy design rather than as an afterthought. The post on the metadata hiding in your photos and videos covers what tends to be in there.
Where HEIC files appear
Any product that accepts photos from people’s phones will see HEIC. Insurance claims apps receive photos of damage, property and inspection tools receive site photos, field service apps receive photos of equipment, and expense tools receive photos of receipts. Digital asset management systems inherit HEIC from staff phones and agency shoots, and personal photo apps hold years of them. A photo library search product built over a user’s camera roll will find that most of the recent library is HEIC, while older photos are JPEG.
How Exabase handles HEIC images
Exabase sits underneath this kind of pipeline as storage, extraction and search infrastructure. Resources stores files of any type in a Base, so originals can be kept as uploaded, and each image resource gets thumbnails, captions and keywords, dominant colours, OCR text and grouped attributes for device, location, dimensions and colour in its metadata. Uploaded images are also scanned for malware. The creating resources guide covers the signed upload flow.
Extract documents JPEG, PNG, WebP and GIF as its supported image formats, returning width, height, OCR text, a thumbnail and capture attributes such as camera type and ISO. For HEIC uploads, a practical pattern is to keep the original and send a JPEG rendition with its metadata copied across, or to check the current docs for direct HEIC support. The image to JSON and image to text tools show the output for single images.
Deep Search then makes the processed library searchable by text, by an example image, by colour or by similarity to another resource, ranking photos alongside documents, audio and video in one list. The asset search solution describes the full pattern, and the media asset management use case shows it applied to a team library. Exabase provides the substrate; choices such as which metadata to strip and how to present results belong to the application on top. For a market view, the best reverse image search APIs roundup compares options.
Frequently asked questions
Is HEIC better than JPEG?
For storage efficiency, yes. HEIC typically stores a photo at about half the size of a comparable JPEG and supports higher bit depth, transparency and multiple images per file. JPEG remains far more compatible, which is why HEIC photos are often converted for sharing.
What is the difference between HEIC and HEIF?
HEIF is the container format; HEIC is a HEIF file whose images are compressed with HEVC. Every HEIC file is a HEIF file, but a HEIF file can also hold images coded with other codecs, such as AV1 in AVIF.
What is the MIME type of a HEIC file?
image/heic for a single HEVC-coded image and image/heic-sequence for an image sequence. The generic container types are image/heif and image/heif-sequence.
Can web browsers display HEIC images?
Only some. Safari displays HEIC on recent Apple systems, while other major browsers generally do not, so web apps convert HEIC to JPEG, WebP or AVIF for display.
Does converting HEIC to JPEG lose metadata?
It can. Many converters drop the Exif block, depth data and HDR information unless told to keep them. Keep the original file and copy metadata into the converted version explicitly.
How do I detect a HEIC file that has the wrong extension?
Read the ftyp box near the start of the file. A brand of heic, heix or mif1 indicates a HEVC-coded HEIF image, whatever the file name says.
Do HEIC photos contain location data?
Often, yes. Photos taken with location services on store GPS coordinates in the Exif metadata, which should be considered before indexing or sharing them.
Related pages: EXIF data, XMP metadata, WebP, TIFF, MIME type, file type detection, image captioning, visual search, asset search, image to JSON, MP4 vs MOV