Convert Image to PAM
Save a binary P7 PAM with RGB plus alpha or grayscale plus alpha for pixel-processing pipelines.
Drop your image here
Drag and drop, or choose a file below
JPG · PNG · WEBP
Up to 250 MB · One image at a time
Each image: up to 16 megapixels and 8192 px per side
The grayscale operation is an encoded-channel luma approximation, not linear-light luminance. PAM is uncompressed; this declared sRGB variant does not perform BT.709 conversion or preserve ICC metadata. Use the PNG preview when the browser cannot display PAM.
Original
Choose an image or try the sample to see your preview here.
100% local processing
How to use
- 01
Choose an image or try the local sample.
- 02
Choose RGBA to keep color, or grayscale plus alpha for a two-channel output.
- 03
Review the result and download the file.
Details and tips
How it works
The ASCII header declares dimensions, depth, Maxval 255 and RGB_ALPHA or GRAYSCALE_ALPHA. Binary samples follow in top-to-bottom order with alpha last. Grayscale is the rounded 0.2126R + 0.7152G + 0.0722B weighted sum of decoded sRGB values.
Made for everyday images
Send transparent pixel fixtures to Netpbm or inspect channel bytes in a script. At four channels, a 100×100 image contains 40000 sample bytes plus its header.
Frequently asked questions
Are images uploaded?
No. Processing, previews and downloads stay on your device.
What are the limits?
JPG, PNG and WebP, up to 250 MB, 8192 pixels per side and 16 million pixels. Expanded output must also fit these limits. Animation uses one still frame.