PGM to HEIC converter

Source · PGM
Target · HEIC

Drop a PGM 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.
  • Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained.
  • 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 PGM to HEIC?

Multiple source images

Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. Availability is checked on this device using native WebCodecs.

No new colour information

The source stores grayscale or bitonal values. A colour-capable HEIC can represent these tones, but conversion cannot infer original scene colours or recover missing intermediate shades. Colourisation would be a separate image-editing operation.

Transparency

The target can store an alpha channel, but converting an opaque image does not create transparent areas. Removing a background is a separate editing step.

Encoding mode

Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained.

PGM

Source

PGM

Portable Graymap

Compression: UncompressedTransparency: NoMetadata: Header, Comments

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

Explore PGM format →
HEIC

Target

HEIC

High Efficiency Image File Format (HEVC)

Compression: Lossy & losslessTransparency: YesMetadata: Exif, XMP, ICC, NCLX

HEVC-coded photographs in HEIF, with room for auxiliary images and capture metadata.

Explore HEIC format →

Is PGM → HEIC right for you?

Good choice when

  • HEIC fits your delivery use: Device photography & image collections.
  • You can choose the source image or part needed for delivery.
  • You need the existing gray or binary image in a compatible delivery format.
  • Your receiving application supports the required HEIC variant.
  • You need a HEIC-compatible workflow that can hold transparency added in a separate edit.

Probably not when

  • You require a complete collection, page set or multipart round trip.
  • You expect automatic colourisation or reconstruction of absent tones.
  • You need a guaranteed output file size or archival pixel equality. Encoder settings do not guarantee either.
  • You require identical samples without a defined colour and precision policy.
  • You expect automatic background removal or transparency.

PGM to HEIC conversion details

Multiple source images
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. Availability is checked on this device using native WebCodecs.
No new colour information
The source stores grayscale or bitonal values. A colour-capable HEIC can represent these tones, but conversion cannot infer original scene colours or recover missing intermediate shades. Colourisation would be a separate image-editing operation.
Transparency
The target can store an alpha channel, but converting an opaque image does not create transparent areas. Removing a background is a separate editing step.
Encoding mode
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained.
Sample precision & colour
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. Availability is checked on this device using native WebCodecs.
Metadata & colour
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. Availability is checked on this device using native WebCodecs.
Compression
PGM: Uncompressed → HEIC: Lossy & lossless 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. HEIC: HEIC commonly uses lossy HEVC; HEVC also has lossless coding tools. Actual quality, bit depth and chroma depend on the encoded profile and settings, not on the .heic extension.
Transparency
Transparency is replaced with white by default. Change the background in Advanced options. Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained.
Animation
Still image output. Animated files use only the first frame; animation is not preserved.
Colour depth
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained.
HDR
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. Availability is checked on this device using native WebCodecs.
Multiple images
Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained.
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?

Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. Availability is checked on this device using native WebCodecs.

Can conversion restore colour or missing shades?

The source stores grayscale or bitonal values. A colour-capable HEIC can represent these tones, but conversion cannot infer original scene colours or recover missing intermediate shades. Colourisation would be a separate image-editing operation.

Will the background become transparent?

The target can store an alpha channel, but converting an opaque image does not create transparent areas. Removing a background is a separate editing step.

Are bit depth and colour values guaranteed to match?

Creates a lossy, opaque 8-bit sRGB HEIC using this device’s native encoder. Original P3/HDR precision is not retained. 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.