ImageText-based

image/x-portable-pixmap

PPM (Portable Pixmap)

Reference for image/x-portable-pixmap, the MIME type for PPM color 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: .ppm

HTTP Content-Type Header

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

Associated File Extensions

.ppm

Quick Facts

MIME Typeimage/x-portable-pixmap
CategoryImage
TypeText-based (human-readable)
Extensions.ppm

Common Usage

PPM stores color images in a simple text or binary format with RGB pixels. It is used in image processing research, as an intermediate format in conversion pipelines, and for programmatic image generation where simplicity matters more than file size.

Code Examples

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

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

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

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

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.