How to convert HEIC to PNG offline

Convert a HEIC photo to PNG on your device using ImageMagick. Check the output format and dimensions before sharing.

Run these commands in a terminal on your own device using an ImageMagick build with HEIC read support. This page provides the instructions and FileTypeKit can inspect the result locally.

Check support and convert

  1. Run the first command and find HEIC with an r in its mode. For WebP output, check that WEBP has a w.
  2. Put a copy of your photo in the working folder. Change the filenames to match your input and a new output. [0] selects one image from the HEIC container.
  3. Compare the reported dimensions and open the output to check orientation and color.
magick identify -list format
magick "photo.heic[0]" -auto-orient "photo.png"
magick identify "photo.heic" "photo.png"

Tested with ImageMagick 7.1.2-36 on Windows. An 80 × 64 HEIC produced an 80 × 64 PNG.

What to verify in PNG

Use PNG when you need lossless storage of the decoded image or transparency. File size can be larger than the HEIC original.

Keep the HEIC original for auxiliary images, HDR and metadata. Check what survives in the exported copy if these matter to your workflow.

On a Mac, you can also open the HEIC in Preview and use File → Export to save a PNG copy. Apple Preview guide

ImageMagick format and delegate reference · Identify the output file · HEIC format reference