Skip to the converter

PGM to WebP converter, without the upload.

Turn PGM images into WebP. It is converted in your browser, so the file never leaves your device.

Drop PGM files here

or choose from your computer paste with Ctrl V

Ready · other file types work too0 bytes uploaded, ever

Convert to

How to convert PGM to WebP

  1. Add your PGM images

    Drop PGM files onto the box above, or click it to choose them. ToAny reads the file's contents to detect the type, so a wrong extension does not matter.

  2. WebP is already chosen

    Press Convert. Open Options first if you want to change the defaults. The work happens in this tab.

  3. Download

    Save the WebP, or download everything as one ZIP if you converted several files.

Why ToAny

  • Private by construction

    The PGM to WebP converter is part of this page and runs inside your browser. Your images are never sent to ToAny or to anyone else.

  • No upload, no queue

    Nothing has to travel to a server and back, so the conversion starts the moment you press Convert, even on a slow connection.

  • Free, without an account

    No sign-up, no email address and no watermark. Add several files and download them together as a ZIP.

PGM to WebP: what to expect

PGM files are uncompressed and greyscale only, and few everyday apps open them. WebP is smaller than JPG or PNG at similar quality and keeps transparency. PGM is at home in greyscale images in scientific and command-line tools; WebP is the usual choice for images on websites.

The defaults suit most files. Under Options you can set the quality, aim for a target file size and resize the result.

The WebP encoder is a WebAssembly module that downloads the first time you convert to WebP and is cached afterwards. Pictures with more than 8 bits per channel are reduced to 8 bits when they are decoded.

PGM vs WebP

PGM

PGM image

PGM is the greyscale member of the Netpbm family: a text header and then one brightness value per pixel, uncompressed. It is used in image-processing courses, computer vision datasets and Unix pipelines where a minimal format helps.

Opens in GIMP, ImageMagick, IrfanView and Unix graphics tools; not browsers

PGM converter
WEBP

WebP image

WebP is Google's image format for the web. It is typically a quarter to a third smaller than JPG or PNG at similar quality and supports both transparency and animation. Browsers handle it well; older editors, printers' portals and some messaging apps do not.

Opens in All current browsers; many older desktop apps and upload forms do not accept it

WebP converter
PGM compared with WebP
PGMPGM imageWEBPWebP image
Stands forPortable GraymapWebP
TypeRaster imageRaster image
CompressionNoneLossy or lossless
TransparencyNoYes
AnimationNoYes
Introduced1988, by Jef Poskanzer2010, by Google
Opens inGIMP, ImageMagick, IrfanView and Unix graphics tools; not browsersAll current browsers; many older desktop apps and upload forms do not accept it
Best forGreyscale images in scientific and command-line toolsImages on websites
File extension.pgm.webp

Questions

Are my images uploaded anywhere?

No. The PGM to WebP conversion runs inside your browser, on your own phone or computer. The file is not sent to ToAny or to anyone else.

Does converting PGM to WebP reduce quality?

A little: ToAny writes WebP in its lossy mode, so a small amount of detail is traded for a much smaller file. At the default setting the difference is hard to notice. You can raise the quality under Options; there is no lossless setting.

Can I convert several PGM files at once?

Yes. Add as many as you like, convert them together and download each result or all of them as one ZIP.

How do I convert PGM to WebP on Windows, Mac, iPhone or Android?

The steps are the same everywhere because ToAny runs in the web browser: open this page in a current version of Chrome, Edge, Safari or Firefox, add the PGM file, press Convert and save the WebP. There is nothing to install.

Is there a file size limit?

Pictures of up to 120 megapixels are accepted (for example 12,000 by 10,000 pixels); a larger one is refused with a message. Beyond that the limit is your device's memory, since nothing is uploaded; a computer copes with large files better than a phone.