Blog
Image Tools
Crop Image
Resize Image
Rotate & Flip
Compress Image
Photo Filters
Meme Generator
GIF Maker
Collage Maker
Watermark Image
Blur Image
Convert
JPG to PNG
PNG to JPG
HEIC to JPG
DNG to JPG
Image Converter
PDF to JPG
JPG to PDF
Merge PDF
Compress PDF
MP4 to MP3
Video to GIF
MOV to MP4
MP3 Converter
Video & Audio
Trim Video
Crop Video
Remove Audio
Text to Speech
Audio Cutter
MP3 Compressor
Design & Editor
Resume Builder
Design Editor
Add Text to Photo
Social Media Resizer
QR Code Generator
Signature Generator
More Tools
Word Counter
Password Generator
Random Picker
Dice Roller
Spinner Wheel
Favicon Generator
Barcode Generator
Browse All Tools

JPG to PGM Converter

Turn JPG photos into greyscale PGM graymaps for image processing, computer vision and teaching. Choose binary or plain-text layout, adjust the brightness and convert up to 20 photos at once.

100% Free
No Sign-up
No Watermark
Greyscale pixels
Up to 20 Files
Browser-Based · Private
Drop your JPG images here

or choose a source below

From Device
From Dropbox
From Google Drive
From OneDrive
From URL
Supports JPG JPEG  ·  Up to 20 files, 100 MB each

How to Convert JPG to PGM

Quick answer: drop your JPG images in, check the preview, then download each PGM or all of them as a ZIP.

  1. 1

    Add your JPG images

    Drag them in or tap Choose Files. Up to 20 images.

  2. 2

    Check the preview

    Click a file to compare it with the original.

  3. 3

    Adjust the options

    Set the size and other settings on the right.

  4. 4

    Download

    Save each PGM, or all of them as a ZIP.

What You Get

PGM Output
Greyscale pixels
Options
Size and settings
Batch Convert
Up to 20 images
100% Private
Nothing is uploaded
ZIP Download
All files in one
Any Device
Phone, tablet or PC

What Is JPG?

JPG (or JPEG) is the world's most common photo format. It makes small files by discarding fine detail the eye barely notices, and every phone, computer, website, printer and app opens it. It has no transparency and loses a little quality each time it is re-saved.

What Is PGM?

PGM (Portable Graymap) is the greyscale member of the Netpbm family. After a small text header it stores one brightness value per pixel. Because it is so simple, PGM is popular in image processing courses, computer vision research, scanners and scientific tools.

Why Convert JPG to PGM?

Many image processing and computer vision methods work on brightness only, and PGM is the simplest way to store it: one number per pixel. Converting photos to PGM gives clean test data for edge detection, filtering, thresholding and machine learning experiments without needing an image library.

Quality and What Is Kept

Each pixel's brightness is calculated with the standard weighting of red, green and blue that matches how we see light, and stored as a value from 0 to 255. Binary (P5) files are compact; plain-text (P2) files show the numbers. The brightness slider lightens or darkens the result before saving.

Tips for Best Results

Use the maximum width to create small test images that are quick to process. Plain-text PGM is ideal for tiny examples in lessons. Very dark or bright photos benefit from a small brightness adjustment.

Example

A robotics team needs greyscale camera frames for testing a line-following algorithm. Converting JPG frames to binary PGM at 320 pixels wide gives exactly the format their code reads.

Who Uses It?

Computer vision students and researchers, robotics teams, teachers and developers.

Step by Step

Drop your JPG images onto the box above, or tap the button to choose them from your device; you can add up to 20 at once. Each image is converted straight away on your device and a preview appears in the middle, with the original one click away for comparison. Adjust the options on the right if you need to; the preview updates as you go. Then download a single PGM with the arrow next to its name, or everything at once as a ZIP.

Using Your PGM Files

Load the PGM into image processing, computer vision or scientific software, or read it in your own code. Each pixel is a single brightness value from 0 (black) to 255 (white). Choose plain text if you want to inspect or edit the values by hand.

The Netpbm Family: PBM, PGM and PPM

PBM, PGM and PPM belong to one family of deliberately simple formats, often called Netpbm or PNM. PBM holds black and white, PGM holds shades of grey, and PPM holds full colour. All three share the same idea: a short text header with a type code (P1 to P6), the width and height, and for PGM and PPM the largest value, followed by the pixels. Codes P1, P2 and P3 are the plain-text versions; P4, P5 and P6 are the compact binary versions. This simplicity is why the formats are loved in teaching, research and small programs.

Private, Free and Unlimited

The JPG to PGM converter is free. There is no sign-up, no watermark and no daily limit. Your images are converted by your own browser and never leave your device, so personal photos, client work and research images stay private. It works in current browsers on Windows, Mac, Linux and Chromebooks, and on iPhone and Android.

JPG to PGM: Turning Photos Into Grayscale Matrices

PGM is a plain grayscale format where every pixel is just a brightness number. Programmers and students use it because it is easy to read and write, and it feeds image processing algorithms directly.

What the conversion does

The colour photo is converted to grey using a weighted average that matches how the eye sees brightness, with green counting the most. The result is saved in the PGM layout, with a header and a grid of values from 0 to 255.

Uses

  • Teaching edge detection, blurring and thresholding.
  • Preparing test images for computer vision experiments.
  • Working with tools that only accept Netpbm formats.

The file is much larger than the JPG, because there is no compression. For general sharing of a grey picture, the black and white tool keeps a normal image format.

Frequently Asked Questions

Questions about converting JPG to PGM

How do I convert JPG to PGM?

Drop your JPG images in and download the PGM files. It is free with no sign-up.

How is the grey value calculated?

With the standard weighting of red, green and blue that matches human vision.

How many images can I convert at once?

Up to 20 images, each up to 100 MB. Download them one by one or as a ZIP.

Are my images uploaded?

No. Everything happens in your browser on your own device. Nothing is sent to a server or stored.

Does it work on my phone?

Yes. It works in modern browsers on iPhone and Android, with nothing to install.

Is there a watermark?

No. Your images are converted without any watermark.