19 votes
PBM File - What is a .pbm file and how do I open it?
Learn about .PBM files and view a list of programs that open them.
Languages
Overview
What is a PBM file? A PBM file is a black-and-white image saved in the Portable Bitmap format. It consists of a plain text header and a grid of 0s and 1s that specify the color of each of the image's pixels . 0s represent white pixels; 1s represent black pixels.
More Information PBM file open in File Viewer Plus 4 Jef Poskanzer developed the PBM format as part of his Netpbm project. PBM is an intermediate format, used primarily when converting images from one format to another. In the middle of a conversion, Netpbm may save an image as a PBM file. It then uses the PBM file to create the converted image. (Netpbm uses the .PGM and .PPM formats in similar fashion.) Two variants of the PBM format exist. Files saved in the original PBM format, identified by the magic number P1 in their header, always contain only one image. Files saved in the more recent version of the PBM format, identified by the magic number P4 in their header, can contain more than one image. Also, P1 PBM files can contain whitespace in their raster grid; P4 files cannot. NOTE: Each PBM image's width and height is specified in its header. For example, an image that is 50 pixels wide by 65 pixels tall will include the numbers 50 65 in its header.
Adobe Photoshop CC 2019 Icon
Breadcrumbs
Previous / Next
In-Depth
.PBM File Extension
Portable Bitmap Image
| Developer | Jef Poskanzer |
| Popularity |
3.5 | 19 Votes |
NEW: Open your .PBM file online with File Helper . View Online
What is a PBM file?
A PBM file is a black-and-white image saved in the Portable Bitmap format. It consists of a plain text header and a grid of 0s and 1s that specify the color of each of the image's pixels . 0s represent white pixels; 1s represent black pixels.
More Information
PBM file open in File Viewer Plus 4
Jef Poskanzer developed the PBM format as part of his Netpbm project. PBM is an intermediate format, used primarily when converting images from one format to another. In the middle of a conversion, Netpbm may save an image as a PBM file. It then uses the PBM file to create the converted image. (Netpbm uses the .PGM and .PPM formats in similar fashion.)
Two variants of the PBM format exist. Files saved in the original PBM format, identified by the magic number P1 in their header, always contain only one image. Files saved in the more recent version of the PBM format, identified by the magic number P4 in their header, can contain more than one image. Also, P1 PBM files can contain whitespace in their raster grid; P4 files cannot.
NOTE: Each PBM image's width and height is specified in its header. For example, an image that is 50 pixels wide by 65 pixels tall will include the numbers 50 65 in its header.
How to open a PBM file
PBM file open in Microsoft Notepad
You can open a PBM file with many image viewers and editors, including XnViewMP (multiplatform), Inkscape (multiplatform), Apple Preview (Mac), or Adobe Photoshop (Windows, Mac).
You can also open a PBM file with Microsoft Notepad (Windows), Apple TextEdit (Mac), or any other text editor, to view the plain text data it contains. This can be useful if, for example, you want to make sure your PBM file is formatted correctly before you attempt to open it in an image editor.
How to convert a PBM file
You can use GIMP , Inkscape , or XnViewMP to convert PBM images to other formats. For example, XnViewMP can convert PBM files to the following formats (and many others):
Programs that open PBM files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
File Viewer Plus
—
Get it from Microsoft
Free +
XnViewMP
Free
Inkscape
Free
GIMP
Free
Netpbm
Free
Adobe Photoshop 2025
Free Trial
Corel PaintShop Pro 2023
Free Trial
Any text editor
Mac
Apple Preview
Included with OS
XnViewMP
Free
Inkscape
Free
GIMP
Free
Netpbm
Free
Adobe Photoshop 2025
Free Trial
Any text editor
Linux
XnViewMP
Free
Inkscape
Free
GIMP
Free
Netpbm
Free
Any text editor
Web
FileHelper.com
Free
Android
File Viewer for Android
Free +
Category: Raster Image Files
Updated: November 18, 2022