Skip to content
Image2026-10-02Shuai Li6 min read

HEIC to JPG: The Complete Guide — Why Systems Reject iPhone Photos and Three Ways Through

The "unsupported format" moment

You photograph a document with an iPhone, upload it to a registration portal, and it bounces back with "JPG only" — the densest pain point for HEIC users: exam sign-ups, visa materials, government uploads, bank onboarding. Anywhere the system skews old, the whitelist stops at JPG and PNG.

What HEIC is, and why iPhone uses it

HEIC is the image container of HEIF, encoding with H.265 (HEVC); it has been the default iPhone capture format since iOS 11. The motive is blunt: roughly half the size of JPG at comparable quality, which adds up to tens of GB a year on a 128GB device. Technically it is progress — the problem is ecosystem: JPG is nearly 30 years old and the greatest common divisor of every system; HEIC has native support only on newer platforms (macOS 10.13+, Windows with the extension installed), while plenty of government and enterprise file whitelists never left the JPG era.

Three paths, chosen by scenario

Path one: capture as JPG (set and forget)

Settings → Camera → Formats → "Most Compatible". Every shot lands as JPG. The cost is doubled storage — right for people who upload ID photos constantly, wrong for storage-strained photo power users.

Path two: convert on transfer (the hidden iPhone mechanism)

Settings → Photos → Transfer to Mac or PC → "Automatic". AirDrop and cable transfers convert to JPG on the fly while originals stay HEIC. Good for occasional sharing — but note some paths (certain cloud-drive direct uploads) bypass this conversion.

Path three: conversion tools (after the fact)

Batch-convert existing HEIC to JPG. Three sub-paths:

  • Online converters: mind privacy — running ID photos through an online tool means uploading originals to a stranger's server; prefer implementations that process locally (our HEIC to JPG decodes in-browser via libheif, files never upload, works offline).
  • macOS: Preview exports directly, or sips -s format jpeg *.heic batch-converts in one line.
  • Windows: install the HEIF Image Extensions, then save-as via Paint/Photos, or script it in PowerShell.

Quality trade-offs when converting

HEIC → JPG is a lossy re-encode: quality 85–90 is visually identical at reasonable size; pushing 100 only bloats the file without recovering what HEIC already discarded. For ID photos the question barely matters — keep the required resolution (295×413 for many registrations) and quality 90 passes review. For a smaller file next, run the result through the image compressor; for aggressive compression convert to WebP; transparency needs PNG. In an ID-photo workflow, convert first, then use background change or ID photo resize — no need to flip the camera format back and forth.

Orientation, EXIF, and download naming

iPhones often store rotation in EXIF Orientation instead of rewriting pixels. The browser path asks createImageBitmap for orientation-from-image (when the engine supports it) so the JPG is upright; Canvas export does not write GPS, lens model, or other EXIF back into the JPG — usually a privacy win when sharing, and a reason to keep a separate archival copy if you need timestamps or location. Batch downloads uniquify colliding names (IMG_0001-2.jpg) so the browser does not silently overwrite siblings; multi-image HEIC (bursts / some exports) expands to name.jpg, name-2.jpg, … instead of keeping only the first frame. Per-file download and download-all are both available.

Reading failures

Most failures are input problems, not a broken page: a truncated download still named .heic, a Live Photo video half mistaken for the still, or dozens of library-size files exhausting memory. The tool maps opaque ERR_LIBHEIF … strings into actionable hints (unrecognized format / decode failure / export failure). Triage order: try one photo → export a still from Photos → reduce batch size. Missing HEIC thumbnails in Chrome/Firefox before conversion are expected; a preview appears after a successful convert.

The workflows nobody mentions: batch and automation

Bulk conversion (a photo library's worth): macOS Photos exports as JPG natively, sips batch-converts from the command line, and the browser tool (ours) handles folder-scale batches locally — the privacy argument scales linearly with volume. Automation on transfer: iCloud settings can deliver photos as JPG on export ("Transfer to Mac or PC: Automatic"), third-party transfer tools convert in-pipeline, and server-side pipelines (ImageMagick with libheif) process at scale — every stage of the photo's journey is a conversion opportunity; converting early (capture-side, transfer-side) beats converting late (upload-side panic before a deadline).

Choosing between the three fixes: a decision table

Set capture to Most Compatible when you upload documents constantly and storage is ample — zero friction forever, double the storage. Keep HEIC capture with Automatic transfer when you are storage-conscious and share mostly to Apple devices — conversion happens at the boundary, originals stay efficient. Use a converter (local browser tool, sips, or ImageMagick) when the photos already exist — converting on demand preserves the efficient originals and pays the conversion cost only for uploads. The mistake pattern to avoid: flipping capture settings repeatedly (mixed libraries — some HEIC, some JPG — make batch operations inconsistent); pick one policy per device and let the boundary handle the exceptions.

EXIF and privacy: what conversion keeps, what it strips

HEIC-to-JPG conversion silently changes your privacy posture: HEIC files from iPhones carry rich EXIF (GPS coordinates, capture timestamps, lens data), and every conversion path treats them differently — some online converters strip everything (privacy win, provenance loss), most local desktop converters preserve all fields by default (provenance win, location leak if you share the output). This site's browser converter strips EXIF by design (Canvas has no EXIF writer): decide before converting whether you still need a metadata-bearing original. Also mind orientation: HEIC stores rotation as metadata; a converter that ignores it produces sideways JPGs — the path above bakes orientation into pixels when the browser allows it.

Implementer's note

Decoding HEIC in the browser rides on heic2any — a WASM packaging of libheif. The decoder is several MB of wasm, so the converter loads it via dynamic import; multiple: true keeps every frame; orientation is handled at bitmap time; JPEG gets a white underlay plus alpha compositing so former transparent pixels do not turn into black holes. The quiet advantage of the pure-frontend approach is that decoding never leaves the machine. If the output JPG must fit a portal's size cap (commonly 30–100KB), pair it with the image compressor: convert the format first, then squeeze the size.