Advertising privacy settings

Advertising privacy settings

Advertising settings are currently unavailable. Please try again later. You can continue using the image tools.

Google Ads Settings · Privacy

PGM to HEIC converter

Source · PGM
Target · HEIC

Drop PGM files here

or choose files from your device

Advanced options
  • This source decoder does not supply photographic metadata to the output writer. Source EXIF, GPS, XMP and ICC profiles are not copied on this route.
  • 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

The first supported Netpbm image is decoded; concatenated images are not exported as a sequence.

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

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. The format name alone does not guarantee lossless output or a smaller file. WebP, AVIF and JPEG XL offer quality and lossless options; HEIC/HEIF use lossy native HEVC. TIFF and JP2 use their implemented lossless variants. PDF offers JPEG or lossless image embedding.

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 quality or file size regardless of source and encoder settings.
  • 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
The first supported Netpbm image is decoded; concatenated images are not exported as a sequence.
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
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. The format name alone does not guarantee lossless output or a smaller file. WebP, AVIF and JPEG XL offer quality and lossless options; HEIC/HEIF use lossy native HEVC. TIFF and JP2 use their implemented lossless variants. PDF offers JPEG or lossless image embedding.
Sample precision & colour
Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Metadata & colour
This source decoder does not supply photographic metadata to the output writer. Source EXIF, GPS, XMP and ICC profiles are not copied on this route. Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
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
PGM: No → HEIC: Yes
Animation
PGM: No → HEIC: Yes
Colour depth
PGM: maxval up to 65535 → HEIC: Codec/profile dependent
HDR
HEIC: Codec/profile dependent
Multiple images
HEIC: Collections & sequences
Dimensions
Conversion keeps the decoded image dimensions unless you edit or resize it. Orientation is applied by supported decoders. ICO fits the image into one selected square size; PDF page layout and rendering DPI are configurable. Device, memory and codec limits still apply.
Metadata
This source decoder does not supply photographic metadata to the output writer. Source EXIF, GPS, XMP and ICC profiles are not copied on this route.

Common questions

Will every source image be exported?

The first supported Netpbm image is decoded; concatenated images are not exported as a sequence.

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?

Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.

Will metadata and colour profiles be retained?

This source decoder does not supply photographic metadata to the output writer. Source EXIF, GPS, XMP and ICC profiles are not copied on this route. Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.