Skip to main content
🇪🇸 Español 🇧🇷 Português 🇩🇪 Deutsch
Image Converter Video Converter Audio Converter Document Converter
Tools Guides Formats Pricing API
Log In
PBM file
pbm
File format

About PBM Files

PBM Bitmap Image

Released 1988 By Jef Poskanzer

PBM (Portable Bitmap) stores monochrome images in a minimal format.

Family

Raster & Vector Images

Extension

.pbm

MIME Type

image/x-portable-bitmap

Can Use As

Input Output
The story

HOW PBM
CAME TO BE.

PBM — Portable Bitmap — is one of the simplest image formats ever devised. Created by Jef Poskanzer in 1988 as part of the Netpbm toolset, a PBM file is plain ASCII text: a two-line header ("P1" + width and height), then the pixel data as `0` and `1` characters separated by whitespace. Its siblings PGM (grayscale) and PPM (RGB) extend the same idea with values 0-255 or 0-65535.

Poskanzer’s toolset gave Unix a glue layer: every image conversion could be routed through Netpbm as an intermediate format. Need JPEG → PCX? pipe jpegtopnm | pnmtopcx. The formats were never meant for production storage — they were designed to be a "lingua franca" for image-processing pipelines. 37 years later the Netpbm tools are still installed on most Linux systems and still used in scientific imaging, OCR preprocessing, and countless shell scripts.

CURIOSITIES &
TRIVIA.

01

A PBM file is plain ASCII — open one in Notepad and you literally see 0s and 1s forming a pixel grid.

02

The Netpbm toolkit (pnmtopcx, pnmtoeps, jpegtopnm…) has been the Unix image-conversion glue for almost 40 years.

03

The format has a binary variant (P4/P5/P6) that is much smaller than ASCII but keeps the same spirit.

04

PGM is the preferred input format for Tesseract OCR before OCR was added directly to modern image libraries.

05

Jef Poskanzer, Netpbm's creator, also wrote thttpd — one of the first minimalist web servers.

STRENGTHS &
LIMITATIONS.

Strengths

  • Extreme simplicity — a 20-line parser handles every PBM.
  • Ideal as pipeline intermediate format.
  • Plain ASCII variant is human-readable and diff-able.
  • 37+ years of unchanged stability.

Limitations

  • No compression — files are huge compared to PNG or JPEG.
  • No color profile, no metadata, no transparency.
  • Not a delivery format — strictly for pipelines.
  • ASCII variant is 8× larger than binary for the same image.

Typical Sizes & Weights

512×512 bitmap (binary P4)

33 KB

1920×1080 grayscale (binary P5)

~2 MB

1920×1080 RGB (binary P6)

~6 MB

Technical Specifications

MIME types
image/x-portable-bitmap (PBM), image/x-portable-graymap (PGM), image/x-portable-pixmap (PPM)
Extensions
.pbm, .pgm, .ppm, .pnm
Variants
P1 (ASCII bitmap), P4 (binary bitmap), P2/P5 (graymap), P3/P6 (pixmap)
Toolkit
Netpbm (since 1988)
Creator
Jef Poskanzer

CONVERT FROM
PBM

Common Use Cases

Binary image processing

Related Formats

Popular comparisons

Popular PBM conversions

The most-requested destinations when starting from PBM.

Frequently Asked Questions about PBM

Frequently Asked Questions

PBM (PBM Bitmap Image) is an image format used to store raster graphics — a two-dimensional grid of pixels describing a picture. It is part of the raster & vector images family and designed around a specific trade-off between file size, visual fidelity, and feature support (transparency, colour depth, compression type). Photographers, web designers, and content creators choose PBM when its particular strengths match the publishing target.

Most desktop photo viewers (Windows Photos, macOS Preview, GIMP, Photoshop, Affinity Photo) open PBM natively. On mobile, iOS Photos and Google Photos display PBM in the gallery when supported by the OS. If the format is rare or new, convert to JPG or PNG first — both are universally readable — using our PBM to JPG or PBM to PNG converter.

Upload the PBM to KaijuConverter and pick a target format (JPG, PNG, WebP, HEIC, TIFF, BMP, SVG, PDF). The conversion runs in the browser via ImageMagick and returns a download in seconds. No account or installation required; both input and output delete automatically within two hours.

It depends on the task. JPG is the smallest file size for photographs; PNG is lossless with transparency; PBM has its own niche that may favour colour depth, animation, or encoding efficiency over one or both of those. For the final web publish, test all three and measure file size plus visible quality on real content.

We use cookies and similar technologies to personalise content and ads, and to analyse traffic. Learn more about cookies.