Image Tools

AVIF to PGM Converter

Convert AVIF images to PGM right in your browser — nothing is uploaded. Computer-vision code often wants a greyscale input.

By Aditya Kr Sharma Files stay on your device

  • Free
  • Instant
  • No sign-up

AVIF to PGM converter

Convert

Or import from
Supports: AVIF

Nothing is uploaded. This tool runs entirely in your browser, so the file never leaves your device. There is no server to send it to, no copy kept anywhere, and it keeps working if you lose your connection after the page has loaded.

Accepts .avif You get: A .pgm file Free, no sign-up

How to convert

  1. Add your files Drag them in, choose files, or use the camera.
  2. Check the settings The defaults suit most files.
  3. Download Save one file, or all of them as a ZIP.

How to convert AVIF to PGM

  1. Drop your AVIF files on the box above, or click it to choose them (up to 30 at once).
  2. Press Convert. Each file is processed on your device and shows its old and new size.
  3. Download the files one by one or take them all as a ZIP.

What changes when you convert AVIF to PGM

  • Colour becomes greyscale using the standard luma weights (0.299 red, 0.587 green, 0.114 blue).
  • PGM cannot store transparency, so transparent areas are filled with white — what image editors do when saving to PGM.
  • An animated AVIF becomes a single still image (the first frame).
  • Camera details and GPS location (EXIF) are not copied into the new file. Photo orientation is applied to the pixels first, so the result is the right way up.
  • Expect a much larger file: PGM here is uncompressed, about width × height × 1 bytes — roughly 12 MB for a 12-megapixel photo.

About AVIF and PGM files

AVIF is a newer web format built on the AV1 video codec. It compresses even better than WebP, but many editors, phones’ gallery apps and upload forms still cannot open it.

PGM is the greyscale member of the Netpbm family. Colour is converted to grey with the standard luma weights (0.299 red, 0.587 green, 0.114 blue). It is a good choice for computer-vision code and anything that wants a greyscale input.

Limits

Up to 30 files of 25 MB each per batch and images up to 50 megapixels — beyond that browsers run out of memory, so the tool says so instead of producing a broken file. Reading AVIF needs a current browser (Chrome or Edge 85+, Firefox 93+, Safari 16.4+); an older one reports the file as unreadable. Files that are not images, or are damaged, are rejected with the reason.

Frequently asked questions

Are my images uploaded anywhere?

No. The conversion runs in your browser on your own device, and this page has no upload endpoint. Once the page has loaded it keeps working offline.

Is AVIF to PGM lossless?

Not for photos: PGM keeps only brightness, not colour.

How is colour turned into grey?

Each pixel’s brightness is 0.299 × red + 0.587 × green + 0.114 × blue — the standard broadcast luma formula — written as one byte per pixel (P5).

What happens to transparency?

It is filled with white, because PGM cannot store transparency.

How many files can I convert at once?

Up to 30 files of 25 MB each per batch, and images up to 50 megapixels. Convert them together and download each one, or take them all as a ZIP.

More in Image Tools All tools