Convert AVIF to PGM

Source · AVIF
Target · PGM

Drop a AVIF 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.
  • Still image output. Animated files use only the first frame; animation is not preserved.

Enable JavaScript to convert files locally.

  • In your browser
  • No upload
  • Private by design

What happens when you convert AVIF to PGM?

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

HDR is rendered to SDR using exposure and Reinhard tone mapping.

Lossless sample storage

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. PGM can store its supported image samples without lossy compression. This applies after rendering and sample conversion: it does not guarantee preservation of source precision, colour space or document structure, and cannot undo earlier losses.

AVIF

Source

AVIF

AV1 Image File Format

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

AV1-compressed pictures in an image container, with optional alpha, sequences and high-dynamic-range colour.

Explore AVIF 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 AVIF → PGM right for you?

Good choice when

  • PGM fits your delivery use: Grayscale images & masks.
  • You want a still illustration from an animated source.
  • Your processing pipeline explicitly needs grayscale samples.
  • You need an SDR delivery copy and can review its tone mapping.

Probably not when

  • 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.
  • You need cutouts or translucent edges for compositing.

AVIF to PGM conversion details

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
HDR is rendered to SDR using exposure and Reinhard tone mapping.
Opaque output
Transparency is replaced with white by default. Change the background in Advanced options.
Lossless sample storage
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. PGM can store its supported image samples without lossy compression. This applies after rendering and sample conversion: it does not guarantee preservation of source precision, colour space or document structure, and cannot undo earlier losses.
Sample precision & colour
Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.
Metadata & colour
Pixel conversion only. Original EXIF, GPS, XMP and ICC profiles are not copied; processing uses 8-bit display pixels.
Compression
AVIF: Lossy & lossless → PGM: Uncompressed AVIF: AVIF can use lossy or lossless AV1 coding. Chroma subsampling, RGB↔YUV conversion and reduced bit depth can change source values even when the AV1 coding stage is 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.
Transparency
Transparency is replaced with white by default. Change the background in Advanced options.
Animation
Still image output. Animated files use only the first frame; animation is not preserved.
Colour depth
AVIF: 8 / 10 / 12 bits → PGM: maxval up to 65535
HDR
AVIF: Optional; colour properties
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 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.

How will HDR brightness be mapped?

HDR is rendered to SDR using exposure and Reinhard tone mapping.

Are bit depth and colour values guaranteed to match?

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

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.