HEIF to PGM converter

Source · HEIF
Target · PGM

Drop a HEIF file here

or choose files from your device

Advanced options
  • Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.
  • Transparency is replaced with white by default. Change the background in Advanced options.
  • Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported.
  • HEIF container: libheif (LGPL); licences, source and relink files

Enable JavaScript to convert files locally.

  • In your browser
  • No upload
  • Private by design

What happens when you convert HEIF to PGM?

Multiple source images

Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.

Animation becomes a still

Still image output. Animated files use only the first frame; animation is not preserved.

Grayscale output

Colour is converted to grayscale using linear-sRGB luminance and the sRGB transfer curve. Colour channels and transparency are not retained.

Lossless sample storage

Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.

HEIF

Source

HEIF

High Efficiency Image File Format

Compression: Depends on variantTransparency: YesMetadata: Exif, XMP, ICC, NCLX

An image container for individual pictures, collections and sequences. The codec inside determines compression.

Explore HEIF format →
PGM

Target

PGM

Portable Graymap

Compression: UncompressedTransparency: NoMetadata: Header, Comments

Portable Graymap: simple uncompressed raster samples for image-processing pipelines.

Explore PGM format →

Is HEIF → PGM right for you?

Good choice when

  • PGM fits your delivery use: Grayscale images & masks.
  • You can choose the source image or part needed for delivery.
  • You want a still illustration from an animated source.
  • Your processing pipeline explicitly needs grayscale samples.

Probably not when

  • You require a complete collection, page set or multipart round trip.
  • Motion, frame timing or loop behaviour must survive.
  • Colour distinctions carry information you need to retain.
  • You need the original HDR range for relighting or grading.

HEIF to PGM conversion details

Multiple source images
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.
Animation becomes a still
Still image output. Animated files use only the first frame; animation is not preserved.
Grayscale output
Colour is converted to grayscale using linear-sRGB luminance and the sRGB transfer curve. Colour channels and transparency are not retained.
HDR to SDR
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.
Opaque output
Transparency is replaced with white by default. Change the background in Advanced options.
Lossless sample storage
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.
Sample precision & colour
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.
Metadata & colour
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.
Compression
HEIF: Depends on variant → PGM: Uncompressed HEIF: HEIF defines the container. Compression may be lossy, lossless or uncompressed depending on its codec binding; one global quality or bit-depth value would be misleading. PGM: Netpbm stores these samples without compression. Reducing colour, thresholding or changing maxval can still lose information before storage; text and binary representations change the layout, not its image meaning.
Transparency
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported.
Animation
Still image output. Animated files use only the first frame; animation is not preserved.
Colour depth
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported.
HDR
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.
Multiple images
Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported.
Dimensions
Rendered image dimensions are retained within the converter limits; this tool does not offer resizing. Orientation handling depends on the source decoder.
Metadata
Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.

Common questions

Will every source image be exported?

Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.

Will the output keep animation?

Still image output. Animated files use only the first frame; animation is not preserved.

Will PGM keep the source colours?

Colour is converted to grayscale using linear-sRGB luminance and the sRGB transfer curve. Colour channels and transparency are not retained.

Are bit depth and colour values guaranteed to match?

Primary SDR still image only. sRGB/Display P3 and supported 8/10-bit HEVC render to 8-bit sRGB. HDR, auxiliary alpha and other HEIF codecs are rejected. Thumbnails, depth, gain maps and Live Photo motion are not exported. Availability is checked on this device using native WebCodecs.

Will metadata and colour profiles be retained?

Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.