Home/PGM Converter/PGM to HEIC

Convert PGM to HEIC Online Free

Turn Portable Graymap files into HEIF files right in your browser — no upload, no sign-up. Your PGM never leaves your device.

Browsers can't encode HEVC, so FxtImg saves a .heif file — the same HEIF container iPhone uses, compressed with AV1. It opens in Photos on iOS 16+, macOS 13+ and Windows 11.

Drop your PGM file here

or click to browse files

.pgm accepted

Why Convert PGM to HEIC?

PGM is built for grayscale images for computer vision and scientific work. HEIC is the format iPhones use to store photos at about half the size of JPG. Because HEVC encoding isn't available in browsers, FxtImg creates a HEIF file with AV1 compression — the same container and similar efficiency — which Apple Photos, macOS 13+ and Windows 11 open directly.

PGM vs HEIC at a Glance

FeaturePGMHEIC
Created bythe Netpbm project (1988)MPEG; adopted by Apple as the iPhone default (2017)
CompressionLosslessLossy
Color depth8-bit grayscale8 or 10-bit
TransparencyNoYes
AnimationNoYes
Best forgrayscale images for computer vision and scientific workphotos taken on iPhone and iPad

What Changes When You Convert PGM to HEIC

How FxtImg Converts PGM to HEIC

PGM files (P2 and P5, 8 and 16-bit) are decoded by FxtImg's built-in Netpbm reader. The image is encoded with AV1 into a HEIF container (the AVIF profile), because HEVC encoding is not available in any browser.

When HEIC Is the Right Choice for Your PGM

Quick How-To & Settings

Drop your .pgm file in the box above, press Convert to HEIC, then download the SD or HD .heif. Pick SD (50% of the original dimensions by default) for messaging, email and social media, or HD (original size, recommended) for keeping full detail. The quality slider sets HEIC compression.

Opening Your HEIF File

Your HEIC file opens in iPhone, iPad and Mac Photos, macOS Preview, Windows (with the HEIF/HEVC extensions), Lightroom and Google Photos.

Frequently Asked Questions

Does converting PGM to HEIC reduce quality?

HEIC is a lossy format, so a little detail is discarded to save space. At the HD preset (92% quality by default) the difference is practically invisible; lower the quality only if you need a smaller file.

What program opens HEIC files?

Your HEIC file opens in iPhone, iPad and Mac Photos, macOS Preview, Windows (with the HEIF/HEVC extensions), Lightroom and Google Photos.

Is the HEIC file bigger or smaller than the PGM?

The HEIC will typically be a fraction of the PGM's size. Use the SD preset to cut both the dimensions and the file size.

Is my PGM uploaded to a server?

No. The PGM is converted entirely in your browser, so the file never leaves your device and nothing is stored online.