HEIC to JPG on Linux (Command Line)

8 min readLinux Guide

Simple, reliable ways to convert HEIC photos to JPG on Linux using libheif tools and ImageMagick. Includes batch conversion and JPEG quality tips.

Install prerequisites

Ubuntu/Debian:

sudo apt update && sudo apt install -y libheif-examples imagemagick

Fedora:

sudo dnf install -y libheif-tools ImageMagick

Single-file conversion

heif-convert (libheif):

heif-convert input.HEIC output.jpg

ImageMagick (with HEIC delegate):

magick input.HEIC -quality 85 output.jpg

Batch conversion

for f in *.HEIC; do heif-convert "$f" "${f%.HEIC}.jpg"; done
for f in *.HEIC; do magick "$f" -quality 85 "${f%.HEIC}.jpg"; done

Quality and color tips

  • Use -quality 75–85 for web sharing; 85–92 for print.
  • Preserve color accuracy with -colorspace sRGB in ImageMagick when needed.
  • For speed/size balance, consider progressive JPEG (default in many tools).

Prefer one-click in the browser?

Convert HEIC to JPG instantly without installing anything.