Home/AVIF Converter/AVIF to PGM

Convert AVIF to PGM Online Free

Turn AVIF Image files into Portable Graymap files right in your browser — no upload, no sign-up. Your AVIF never leaves your device.

Drop your AVIF file here

or click to browse files

.avif accepted

Why Convert AVIF to PGM?

AVIF is built for next-generation web images with the smallest possible file size. Files often 50% smaller than JPG with fewer artifacts, plus HDR and transparency is its big advantage, but there is a catch: very new: many editors, CMSs and social networks cannot open it yet. PGM is designed for grayscale images for computer vision and scientific work, with dead-simple grayscale pixels any program can parse. Converting AVIF to PGM makes sense when you need grayscale images for computer vision and scientific work, or when the app, website or person you're sending the file to expects PGM.

AVIF vs PGM at a Glance

FeatureAVIFPGM
Created bythe Alliance for Open Media (AV1 codec) (2019)the Netpbm project (1988)
CompressionLossy or losslessLossless
Color depth8, 10 or 12-bit8-bit grayscale
TransparencyYesNo
AnimationYesNo
Best fornext-generation web images with the smallest possible file sizegrayscale images for computer vision and scientific work

What Changes When You Convert AVIF to PGM

How FxtImg Converts AVIF to PGM

AVIF images are decoded natively by your browser (Chrome, Edge, Firefox and Safari 16+). The PGM is a binary (P5) 8-bit grayscale image.

When PGM Is the Right Choice for Your AVIF

Quick How-To & Settings

Drop your .avif file in the box above, press Convert to PGM, then download the SD or HD .pgm. Pick SD (50% of the original dimensions by default) for messaging, email and social media, or HD (original size, recommended) for keeping full detail.

Opening Your PGM File

Your PGM file opens in GIMP, ImageMagick, IrfanView, Python (Pillow, OpenCV) and MATLAB. Color is converted to grayscale using standard luminance weights.

Frequently Asked Questions

Does converting AVIF to PGM reduce quality?

No additional quality is lost: PGM stores the pixels losslessly.

Will my AVIF keep its transparent background in PGM?

No — PGM has no transparency, so transparent areas become white. Convert to PNG or WebP instead if you need to keep the background transparent.

What program opens PGM files?

Your PGM file opens in GIMP, ImageMagick, IrfanView, Python (Pillow, OpenCV) and MATLAB.

Is the PGM file bigger or smaller than the AVIF?

Expect the PGM to be several times larger than the AVIF: PGM stores pixels without lossy compression. Use the SD preset to cut both the dimensions and the file size.

Is EXIF and GPS data kept when converting AVIF to PGM?

No. FxtImg redraws the pixels, so camera metadata — including GPS coordinates — is removed. Orientation is applied to the pixels first, so the image stays the right way up.

Is my AVIF uploaded to a server?

No. The AVIF is converted entirely in your browser, so the file never leaves your device and nothing is stored online.