Free webp to jpg
PCO-B16

PCO B16 Image

image/vnd.pco.b16 Released Early 2000s · by PCO AG (Excelitas PCO GmbH)

The image/vnd.pco.b16 MIME type represents the proprietary B16 image format developed by PCO AG (now Excelitas PCO GmbH), a German manufacturer of high-end scientific and high-speed cameras. The format is a binary container designed to store uncompressed 16-bit raw pixel data directly from the camera sensor. Alongside the raw pixels, it stores vital acquisition metadata (such as exposure times, resolution, and sensor modes) in a structured header. It is widely used in microscopy, medical imaging, machine vision, and precise scientific research where standard 8-bit image formats would result in unacceptable data loss.

Scientific & Raw Imaging Production Ready

Technical Specifications

MIME Type
image/vnd.pco.b16
Extensions
.b16
Container
PCO B16 Binary Container
Compression
Uncompressed (Raw Sensor Data)
Algorithms
None
Color Depth
16-bit (Monochrome or Bayer Raw Color)
Metadata
None
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
50 43 4F 2D
ASCII: PCO-
HTTP Headers
Content-Type: image/vnd.pco.b16
HTML Accept Attribute
accept="None"

Browser Support Matrix

Browser Status Min Version
Chrome Chrome
Not Supported
Firefox Firefox
Not Supported
Safari Safari
Not Supported
Edge Edge
Not Supported
Internet Explorer Internet Explorer
Not Supported Legacy

Advantages & Limitations

Advantages
  • Preserves exact, uncompressed 16-bit raw sensor data, which is critically important for accurate scientific measurements, fluorescence microscopy, and photometry
  • The simple, linear struct header is highly predictable and easy to parse in custom Python, MATLAB, or C++ scripts for researchers building bespoke pipelines
Limitations
  • Generates massive file sizes due to the complete lack of image compression [1.3.1]
  • Completely unsupported by standard operating systems, web browsers, and consumer image editing suites
  • Strictly tied to the hardware and software ecosystems of a single camera manufacturer

Developer Code Snippets

import magic
# Libmagic lacks definitions for the PCO B16 format and will output 'application/octet-stream'.
# A manual header check is required:
with open('scientific_capture.b16', 'rb') as f:
    is_pco = f.read(4) == b'PCO-'
    print('Is PCO B16:', is_pco)
const fs = require('fs');
// Manually detecting the 'PCO-' magic bytes
const buffer = Buffer.alloc(4);
const fd = fs.openSync('scientific_capture.b16', 'r');
fs.readSync(fd, buffer, 0, 4, 0);
fs.closeSync(fd);
const isPCO = buffer.toString('ascii') === 'PCO-';
console.log(isPCO);
import (
    "bytes"
    "net/http"
)
// http.DetectContentType will not recognize PCO B16. You must check the byte prefix directly.
// isPCO := bytes.HasPrefix(buf, []byte("PCO-"))
$mime = mime_content_type('scientific_capture.b16');
echo $mime; // Standard setups will resolve this to 'application/octet-stream' due to lack of magic byte mappings.

File Detection Steps

How to programmatically detect a image/vnd.pco.b16 file by reading its raw bytes:

  1. 1 Check the first 4 bytes of the file for the ASCII identifier 'PCO-' (Hex: 50 43 4F 2D).
  2. 2 The subsequent bytes form the 'Basic Header' composed of Long Integers (32-bit, 4 Bytes each). Byte offset 0x04 contains the file size, 0x08 contains the header length, 0x0C contains the image width, and 0x10 contains the image height.

Software Support

P
PCO Camware
I
ImageJ / Fiji (via Bio-Formats)
X
XnView

Conversion Tools

Share & Embed

Markdown Badge
PCO-B16 Format Badge
[![PCO-B16 Format](https://freewebptojpg.com/mime/image/pco-b16/badge.svg)](https://freewebptojpg.com/mime/image/pco-b16)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/pco-b16/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="PCO-B16 Specs"></iframe>

JSON API

All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.

GET https://freewebptojpg.com/mime/image/pco-b16.json Open JSON
Free to use
No auth required
CORS enabled
Use from any domain
Cached 24h
Cache-Control headers set

Frequently Asked Questions

What is a PCO B16 file?

A PCO B16 file is a proprietary, uncompressed 16-bit binary image format used by PCO scientific cameras. It is typically generated by the PCO Camware software to save raw sensor data without the lossy compression or bit-depth truncation associated with standard image formats.

How do I open a B16 image file?

Because it is a highly specialized scientific format, standard consumer image viewers (like Windows Photos or macOS Preview) cannot open B16 files. You must use PCO's official Camware software, third-party tools like XnView, or scientific imaging software such as ImageJ/Fiji equipped with the Bio-Formats plugin.

What are the magic bytes for the PCO B16 format?

A standard PCO B16 file begins with a Basic Header. The first 4 bytes contain the ASCII file identifier "PCO-", which translates to the hexadecimal values 50 43 4F 2D.

Related Formats

Share this format