ImageText-based

image/x-portable-bitmap

PBM (Portable Bitmap)

Reference for image/x-portable-bitmap, the MIME type for PBM monochrome bitmap images in the Netpbm family.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .pbm

HTTP Content-Type Header

HTTP Header
Content-Type: image/x-portable-bitmap; charset=utf-8

Associated File Extensions

.pbm

Quick Facts

MIME Typeimage/x-portable-bitmap
CategoryImage
TypeText-based (human-readable)
Extensions.pbm

Common Usage

PBM stores black-and-white (1-bit) images in a minimal text or binary format. It is used in OCR preprocessing, document scanning, fax systems, and as a simple format for academic image processing exercises.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.pbm" type="image/x-portable-bitmap">

<!-- Or for script/media elements -->
<script type="image/x-portable-bitmap" src="file.pbm"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('image/x-portable-bitmap');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'image/x-portable-bitmap' });
nginx
# nginx.conf — add to types block or use default
types {
    image/x-portable-bitmap  pbm;
}

# Or set for a specific location
location /api/ {
    default_type image/x-portable-bitmap;
}

Related MIME Types

More Image MIME Types

Other image types in the Image family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.