AVIF to PPM Converter

Convert AVIF to PPM online for free. Fast, high-quality PPM output in your browser. 100% browser-based — no upload, no signup, no watermark.

How to use AVIF to PPM

  1. 1Click the upload area or drag your AVIF file into it.
  2. 2Preview the image to confirm it loaded correctly.
  3. 3Click Convert to render the PPM in your browser.
  4. 4Download your new PPM file — nothing is uploaded.

Features

  • Instant AVIF → PPM conversion, 100% in-browser
  • Your files never leave your device
  • Lossless, high-quality output
  • Free, unlimited, no signup or watermark

AVIF vs PPM: technical differences

To convert AVIF to PPM, drop your AVIF file into the converter above and download the PPM: the plain, uncompressed Netpbm format that image-processing scripts read. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.

PPM is the Netpbm 'portable pixmap': an ASCII header such as 'P6 1920 1080 255' followed by raw RGB bytes. Pixohub writes binary P6 with a maximum value of 255, i.e. 8 bits per channel. There is no compression, no alpha and no metadata, so the size is width × height × 3 bytes plus a few dozen header bytes.

AVIF is the opposite: a complex HEIF container holding AV1-coded data that only a full AV1 decoder can read. Converting avif to ppm moves the decoding burden onto the browser and leaves you with pixels any program can read in a dozen lines of code. Transparency is composited onto white, and HDR or 10-bit data is reduced to 8 bits.

The PPM format can also store 16-bit samples (maxval up to 65535), which would in principle preserve a 10- or 12-bit AVIF. Pixohub's output stays at maxval 255, because the browser has already reduced the image to 8 bits per channel by the time it can be read back. If you need high-bit-depth PPM from AVIF, use a command-line decoder such as avifdec, which can write 16-bit output.

AVIF (AV1 Image File Format)PPM (Portable Pixmap (Netpbm))
CompressionLossy or lossless (AV1 intra-frame in a HEIF container)None (raw binary P6 or ASCII P3)
Colour depth8, 10 or 12 bits per channel; HDR and wide gamut capable8 or 16 bits per channel, RGB only
TransparencyFull alpha channelNone
AnimationYes (image sequences)None
MetadataEXIF, XMP, ICC / CICP colour signallingComment lines in the header only
Typical file sizeUsually the smallest — often half a JPG at similar qualityVery large — exactly width × height × 3 bytes plus a header
SupportChrome, Edge, Firefox and Safari 16+; patchy in older desktop softwareImage-processing libraries, Netpbm, GIMP; not browsers

When to convert AVIF to PPM

Test inputs for image-processing code

Computer-vision and graphics courses often require programs that read PPM. If your sample images are AVIF, converting them lets you test without linking an AV1 decoder.

Comparing decoder output

Developers evaluating AVIF encoders sometimes dump decoded pixels to PPM to diff them against a reference or compute PSNR/SSIM with command-line tools.

Feeding Netpbm and command-line pipelines

Netpbm tools, ImageMagick and FFmpeg all read PPM directly, which makes it a convenient neutral format to pipe through scripts.

Inputs for a ray tracer or graphics tutorial

Hobby ray tracers and graphics tutorials often load textures or reference images as PPM because the loader is trivial. If a reference image you found online is AVIF, converting it here saves writing an extra decoder.

What converting AVIF to PPM keeps and loses

What you keep

  • Exact decoded RGB values at 8 bits per channel.
  • Image dimensions.

What you lose

  • Transparency — alpha is flattened onto white.
  • Compression: expect the file to be dozens of times larger.
  • HDR, 10/12-bit precision and colour-space information.
  • All metadata and any animation.

Our test: AVIF to PPM on two real files

The photo PPM is 5,760,017 bytes: a 17-byte header ('P6', '1600 1200', '255', separated by newlines) and three bytes per pixel, 24 times the AVIF. The values were identical to what the browser's AVIF decoder produced, which makes the file a faithful dump of the decoded image for testing code.

PPM has no alpha, so the transparent graphic was composited onto white and came out at 1,440,015 bytes (1.4 MB). Its maxDiff of 1 comes from the canvas rounding half-transparent shadow pixels before the white was blended in, a difference no visual comparison would show. The photo took 968 ms.

Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).

Test fileAVIF inPPM outPixels vs originalTransparencyCamera EXIFTime
Photo, 1600 × 1200241 KB5.8 MB (24× larger)Identical pixelsNone in sourceNone in source1.0 s
Graphic, 800 × 600, transparent28 KB1.4 MB (52× larger)SSIM 1.000 · 59.6 dBFlattened onto whiteNone in source0.9 s

Last updated

Apps and sites that work with AVIF and PPM

Viewers and command-line tools

Netpbm, ImageMagick, FFmpeg, GIMP, IrfanView and XnView all open binary P6 files, so you can check the result before feeding it to your own program. None of them needs an AV1 decoder for this, which is the point of dumping the AVIF to PPM in the first place.

Programming libraries

Pillow, OpenCV, stb_image and MATLAB's imread read P6 directly. With stb_image the format support is compiled in by default and can be stripped with STBI_NO_PNM, so if a stripped-down build rejects the file, that define is the first thing to check.

Comparing decoders and encoders

ImageMagick's 'compare -metric PSNR' and FFmpeg's psnr and ssim filters accept PPM inputs, which is how you would reproduce numbers like the ones in our table: decode both images to PPM, then measure the difference between them. Keep both files at the same dimensions, or the tools will refuse to compare them.

Common AVIF to PPM problems and fixes

The pixels look scrambled on Windows

Opening a binary PPM in text mode, fopen(path, "r") in C or open() without 'b' in Python, lets Windows translate line-ending bytes in the pixel data, which shifts everything after the first occurrence. The header looks fine, the image doesn't. Open the file in binary mode ('rb') and the same bytes read correctly.

Your assignment wants ASCII P3

Pixohub writes compact binary P6. If a grader or starter code expects plain-text P3, convert the file with ImageMagick's 'magick in.ppm -compress none out.ppm' or Netpbm's pnmtoplainpnm. The pixel values stay exactly the same; the plain-text version is just several times larger. Check the header afterwards: it should start with 'P3' instead of 'P6'.

A transparent background turned white

PPM can only store red, green and blue, so transparent AVIF areas are composited onto white. If your test needs a different background, or the alpha itself, export AVIF to PNG as well and composite in your own code, or pull the alpha out separately from the PNG. The RGB values elsewhere in the image are the same in both files.

Tips for better AVIF to PPM results

  • If you need to compare against the AVIF's transparent version, export AVIF to PNG as well; PPM cannot hold alpha.
  • Opening the result in Python? Pillow's Image.open and OpenCV's cv2.imread both read binary PPM without extra plugins.
  • PPM files are large and uncompressed — resize the AVIF to the size your program actually needs before converting.

How this converter works

Pixohub decodes your AVIF and encodes the PPM entirely inside your browser. Nothing is uploaded, so the conversion is private by design and as fast as your device.

Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.

Frequently asked questions

Is the PPM binary or ASCII?

Binary P6 with a maxval of 255. It is compact for PPM and read by every Netpbm-compatible library.

Are the PPM pixels identical to the AVIF?

They match what your browser's AV1 decoder produced, at 8 bits per channel. Different decoders can differ by tiny rounding amounts, and HDR images are mapped to standard range.

What happens to transparent AVIF images?

PPM has no alpha channel, so transparent pixels are composited onto white before writing.

Can I convert a whole AVIF test set to PPM?

The bulk tool does not output PPM. For many files a command-line approach (for example ImageMagick) is more practical; this page handles them one at a time, locally in your browser.

More converters

Batch: convert format many images at once

Same processing as above, run across a set of files. Pro returns the whole batch as one ZIP. Still entirely in your browser.

Free · up to 20

PRONeed more than 20 at a time?

Pro runs up to 150 images per batch as one ZIP, keeps your brand mark on every export, and lifts the file ceiling to 200 MB.

Unlock with Pro