Skip to the converter

PGM to JPG converter, without the upload.

Turn PGM images into JPG. 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 JPG

  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. JPG 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 JPG, or download everything as one ZIP if you converted several files.

Why ToAny

  • Private by construction

    The PGM to JPG 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 JPG: what to expect

PGM files are uncompressed and greyscale only, and few everyday apps open them. JPG opens on every device and is accepted by practically every upload form. PGM is at home in greyscale images in scientific and command-line tools; JPG is the usual choice for photos you need to share, upload or print. JPG is lossy, so keep the PGM original if you may need full quality later.

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

Pictures with more than 8 bits per channel are reduced to 8 bits when they are decoded.

PGM vs JPG

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
JPG

JPEG image

JPG (also written JPEG) is the format almost every camera and website uses for photographs. It throws away detail the eye barely notices to keep files small, which is why it suits photos and struggles with sharp text or flat colour.

Opens in Every browser, phone, camera, TV and image app

JPG converter
PGM compared with JPG
PGMPGM imageJPGJPEG image
Stands forPortable GraymapJoint Photographic Experts Group
TypeRaster imageRaster image
CompressionNoneLossy
TransparencyNoNo
AnimationNoNo
Introduced1988, by Jef Poskanzer1992, by the Joint Photographic Experts Group
Opens inGIMP, ImageMagick, IrfanView and Unix graphics tools; not browsersEvery browser, phone, camera, TV and image app
Best forGreyscale images in scientific and command-line toolsPhotos you need to share, upload or print
File extension.pgm.jpg, .jpeg, .jpe, .jfif, .jif

Questions

Are my images uploaded anywhere?

No. The PGM to JPG 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 JPG reduce quality?

JPG is a lossy format, so a small amount of detail is traded for a smaller file. At the default setting the difference is hard to notice. You can raise or lower the quality under Options.

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 JPG 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 JPG. 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.