What is the SPE file format?
An .spe file is a scientific imaging and spectroscopy data file produced by Princeton Instruments (formerly Roper Scientific, now Teledyne Princeton Instruments) CCD detector systems. It is the native output format of the WinSpec32 and WinView32 acquisition software, and of the newer LightField platform.
The file begins with a fixed 4100-byte binary header containing roughly 100 acquisition parameters: CCD chip temperature, exposure time, accumulation count, spectrometer grating, center wavelength, and polynomial wavelength calibration coefficients. Immediately after the header sits the raw pixel array, stored as 16-bit unsigned integers per pixel for standard CCD readout.
SPE 3.0, introduced with LightField around 2012, retains the same 4100-byte header for backward compatibility but appends an XML metadata footer after the last frame. The footer's byte offset is stored at header position 1992 and carries extended calibration, hardware configuration, and region-of-interest data.
The format is widely used in Raman spectroscopy, photoluminescence, fluorescence, and astronomical CCD photometry. Multi-frame kinetic series are stored as contiguous frames following a single header. Python libraries spe2py and imageio read both v2.x and v3.0 files; FITS and TIFF are common export targets when sharing data outside the Princeton Instruments ecosystem.
Security & safety
RISK: LOWBinary scientific data file with no scripting or executable content. Safe to open. Large multi-frame files may consume significant memory.
Format details
in a nutshellPrograms that open SPE files
Technical details
deep spec| Header size | Fixed 4100 bytes (binary); identical layout across all format versions for backward compatibility |
| Pixel data type | 16-bit unsigned integers (standard CCD readout); 32-bit float supported in SPE 3.0 |
| Byte order | Little-endian |
| SPE 3.0 extension | XML metadata footer appended after pixel data; footer byte offset stored at header position 1992 |
| Version identification | Format version stored as IEEE 754 float at header offset 108 (v2.x); v3.0 detected via footer offset field |
| Wavelength calibration | Polynomial coefficients stored in header for nm-per-pixel wavelength mapping |
| Acquisition metadata | CCD temperature, exposure time, accumulations, grating ID, center wavelength - all in header |
| Multi-frame support | Kinetic series stored as contiguous frames immediately after the single 4100-byte header |
| CCD dimensions | Width and height stored in header; typical scientific arrays 256×1024 to 2048×2048 px |
| Software lineage | WinSpec / WinView (Roper Scientific) → SPE v2.x; LightField (Princeton Instruments) → SPE v3.0 |
| Application domains | Raman spectroscopy, fluorescence, photoluminescence, astronomical CCD imaging |
| Python support | `spe2py` and `imageio` libraries; ImageJ/FIJI via Bio-Formats plugin |
| Typical file size | 100 KB to several GB, scaling with frame count and pixel array dimensions |
| Released | circa 1990s (WinSpec era, Roper Scientific / Princeton Instruments) |
| Latest version | SPE 3.0 (introduced with LightField software, circa 2012) |
| Specification | raw.githubusercontent.com |
SPE conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about SPE files.