Reference Formats
PBM
The simplest Netpbm raster format, storing 1-bit-per-pixel monochrome bitmap data in either plain-text or raw binary form for maximum portability between imaging tools.
Extension
.pbm
Full name
Portable Bitmap
Introduced
1980s, distributed publicly as part of Pbmplus in 1988
Vendor
Jef Poskanzer / the Netpbm project
What is inside the container
A PBM file is just a short text header (magic number, width, height) followed by raw black/white bit data, with no compression and no color. It has no capacity for embedded EXIF, IPTC, XMP, or ICC metadata, and no concept of layers or transparency; the plain-text variant was originally designed to survive being pasted into an email message intact.
How to open it
For archives
Do not use PBM as a DAM archival master for photographic or graphic assets — it cannot carry rights, creator, or descriptive metadata, and 1-bit depth throws away tonal information. Treat it strictly as a pipeline intermediate (fax/OCR/print-mask workflows) and convert to TIFF or PNG on ingest if the asset needs to live in a catalog long-term.
Jef Poskanzer created PBM in the 1980s as the deliberately minimal common denominator for exchanging bitmap images between the many incompatible graphics tools of the era, and folded it into the Pbmplus toolkit he distributed in 1988 — the direct ancestor of today’s Netpbm project. The design goal was portability over sophistication: a format so simple that any programmer could write a parser in an afternoon, and so plain-text-friendly that a bitmap could survive being routed through early email systems that mangled binary attachments.
That minimalism is exactly what makes PBM a poor fit for a DAM catalog. There is no field for a caption, copyright notice, or keyword, and no color information at all — a PBM file is pure black-and-white geometry. Where PBM still shows up in modern pipelines is as an intermediate step: OCR engines, fax transmission, and some print-imposition tools still emit or expect 1-bit PBM data. A DAM that receives PBM files from a scanning or OCR vendor should treat them as transient working files and convert to a metadata-capable format (TIFF or PNG) rather than storing PBM as the asset of record.
Frequently asked
Can PBM store the descriptive metadata a DAM catalog needs?
No. The PBM header carries only three plain-text fields — magic number (P1 or P4), width, and height — leaving no reserved block for embedded EXIF, IPTC, XMP, or ICC data. There's no chunk mechanism like PNG's ancillary chunks or TIFF's tag directory to bolt metadata onto. A DAM ingesting PBM must store rights, creator, and descriptive fields externally in its own catalog record, since the file itself carries none of it.
Should a DAM archive photographic assets as PBM?
No. PBM should never be used as an archival master; its 1-bit-per-pixel depth throws away tonal information, and it should be treated strictly as a pipeline intermediate for fax, OCR, or print-mask workflows.
What should a DAM do with an incoming PBM file meant for long-term cataloging?
Convert it on ingest rather than archive it as-is. TIFF or PNG are the natural targets: both support embedded metadata (TIFF tags or PNG ancillary chunks) and both can preserve grayscale or full-color tonal data that PBM's 1-bit depth cannot represent. Keep the original PBM only if it's evidentiary (e.g., a fax record), and treat the converted file as the asset the catalog actually manages, with the source retained as a linked derivative.
What does a PBM file actually contain?
A short ASCII header — a magic number ("P1" for plain text or "P4" for raw binary), whitespace, the width, whitespace, the height, then a whitespace delimiter — followed immediately by the bitmap data. In raw form each pixel is a single bit (1 for black, 0 for white), packed eight to a byte, most-significant-bit first, with each row padded out to a full byte. Plain form spells the same bits out as ASCII '1' and '0' characters instead. There's no compression, no color, no layers, and no transparency.
Why was the plain-text variant of PBM designed the way it was?
The plain (P1) format was designed in the 1980s so a bitmap could be pasted directly into an email body and still be reconstructed correctly. Representing every pixel as a literal ASCII '1' or '0' character, with whitespace ignored and lines capped at 70 characters, kept the data within plain 7-bit text — the only kind pre-MIME mail systems could reliably carry intact. It's wasteful by modern standards, but it reflects PBM's origin as a lowest-common-denominator exchange format from Jef Poskanzer's Pbmplus toolkit.
What tools can open PBM files for DAM ingestion pipelines?
The Netpbm toolkit itself (conversion utilities such as pnmtopng and pnmtotiff) is the reference implementation and the most reliable choice for batch pipelines. ImageMagick reads and converts PBM natively via its convert/magick commands, making it a common scripting choice for automated ingest. Desktop viewers GIMP, IrfanView, and XnView also open PBM for manual inspection. For a DAM pipeline, Netpbm or ImageMagick run headless are the practical picks since both support command-line batch conversion.
Is PBM color capable?
No. PBM is strictly 1-bit monochrome — every pixel is either pure black or pure white, with no gray levels and no color channels at all. It sits at the bottom of the Netpbm family: PGM adds grayscale, PPM adds full RGB color, and PBM stays reserved for pure bilevel line art, faxes, and masks. A DAM that needs to preserve any tonal or color information from a source image cannot use PBM as the storage format — it must convert to PGM, PPM, PNG, or TIFF instead.
What kind of workflow typically produces PBM files that a DAM might ingest?
PBM shows up most often as an intermediate output rather than a final deliverable: fax transmission (which is inherently bilevel), OCR preprocessing where a scanner binarizes a page before text recognition, and print-mask or dithering workflows that need a pure black/white stencil layer. Legacy document scanning pipelines and some bitmap-font or line-art tools also emit it. A DAM encountering PBM in an ingest queue is usually looking at pipeline exhaust from one of these processes, not a final asset meant for distribution.
Sources
- Jef Poskanzer invented the PBM format in the 1980s to provide a common, trouble-free bitmap format that could survive being sent through email. checked 2026-08-07 — Netpbm History
- Poskanzer distributed Pbmplus, the forerunner of Netpbm bundling the PBM tools, in 1988. checked 2026-08-07 — Wikipedia - Netpbm
- In the binary Netpbm formats, PBM uses 1 bit per pixel. checked 2026-08-07 — Adobe - What are PPM files and how do you open them?