PBM File Format (.pbm)
A PBM file stores a strictly black-and-white, one-bit-per-pixel raster image as plain ASCII characters or packed binary bits, in the Netpbm project's Portable Bitmap format.
PBM at a glance#
| Full name | Portable bitmap format (black and white) |
|---|---|
| File extension | .pbm |
| Category | Image Files |
| Developer | Jef Poskanzer |
| First released | 1988 |
| MIME types | image/x-portable-bitmap |
| Compression | Uncompressed |
| Specification | Netpbm PBM format specification |
| FileFlip support | FileFlip reads and writes this format |
What a .pbm file can hold#
These are the things a PBM file either supports or does not, and they are what decides whether a conversion keeps everything or quietly drops something.
| Human readable | Yes |
|---|
Strengths and limitations of PBM#
What PBM does well
- About as simple as an image format can be: a width, a height, and one bit per pixel
- The plain-text P1 variant can be typed or read directly in a text editor
- Decoding needs no libraries or lookup tables, just width times height bits
Where PBM falls short
- Strictly one bit per pixel, so it cannot represent greyscale or colour at all
- No compression, so even a simple black-and-white image produces a large file
- No metadata, transparency or animation support
Use PBM for a strictly black-and-white bitmap, such as a fax page or a stencil mask, that needs to move between tools without any image library.
Convert PBM to PNG once the image needs compression or has to sit alongside greyscale or colour images in the same pipeline.
How to open a .pbm file#
A .pbm file opens in the programs below, grouped by the platform you are on. If you would rather not install anything, FileFlip converts PBM into a format your machine already opens, and it does it in the browser tab rather than on a server.
| Platform | Programs that open it |
|---|---|
| Windows | GIMP, IrfanView, ImageMagick |
| macOS | GIMP, ImageMagick |
| Linux | GIMP, ImageMagick, Netpbm tools |
| Web | FileFlip |
PBM questions people ask#
What does PBM stand for?
PBM stands for Portable Bitmap, the black-and-white member of the Netpbm family of image formats that Jef Poskanzer created to move images between Unix tools. It is the strictly one-bit sibling of the colour PPM and greyscale PGM formats.
Is a 1 a black pixel or a white pixel in a PBM file?
In a PBM file, a 1 represents a black pixel and a 0 represents a white pixel, which is the opposite of what many people expect from a plain greyscale scale. This is defined directly in the Netpbm project's own PBM specification.
Why is my PBM file bigger than a similar PNG?
A PBM file stores one bit per pixel with no compression at all, while PNG compresses that same data losslessly, so a large black-and-white image can end up many times smaller as a PNG. PBM trades file size for a format simple enough to read and write without any image library.
Converting PBM files#
Convert PBM to another format
- PBM to AsciiDoc
- PBM to AVIF
- PBM to BBCode
- PBM to BibTeX
- PBM to BMP
- PBM to BMP2
- PBM to BMP3
- PBM to CBZ
- PBM to Djot
- PBM to DocBook
- PBM to DOCX
- PBM to DokuWiki
- PBM to EPUB
- PBM to FB2
- PBM to GIF
- PBM to GIF87
- PBM to Haddock
- PBM to HDR
- PBM to HTML
- PBM to ICML
- PBM to ICO
- PBM to ICON
- PBM to IPYNB
- PBM to Jira
See every PBM conversion (37 more)
Convert another format to PBM
- 3FR to PBM
- ARW to PBM
- AsciiDoc to PBM
- AVIF to PBM
- BibTeX to PBM
- BMP to PBM
- BMP2 to PBM
- BMP3 to PBM
- CBZ to PBM
- CR2 to PBM
- CR3 to PBM
- Creole to PBM
- CRW to PBM
- DCR to PBM
- Djot to PBM
- DNG to PBM
- DocBook to PBM
- DOCX to PBM
- DokuWiki to PBM
- EPUB to PBM
- ERF to PBM
- FB2 to PBM
- GIF to PBM
- GIF87 to PBM
See every image conversion (62 more)
Every conversion runs inside your browser. The file is read from your disk, the work happens on your own machine, and nothing is uploaded. How FileFlip works names the engine behind each family and how to verify that for yourself.