The basics
What is an X3F file?
X3F is the raw format of cameras with a Foveon X3 sensor. Foveon, a Californian company, announced the sensor in February 2002, and the first camera to use it was Sigma's SD9 digital SLR. Sigma went on to use Foveon sensors in all its SD-series SLRs and DP-series compacts, and bought Foveon in 2008.
When one of these cameras saves a raw photo, it writes an X3F file: the values from all three layers of the sensor, previews, the camera settings and the data needed to turn them into colours. Sigma's free Sigma Photo Pro software is the reference way to process them.
X3F is a niche format. Foveon sensors work differently from almost every other camera sensor, so the usual raw processing steps don't apply, and only a handful of applications read the files. Sigma's newer cameras with conventional sensors, the fp, fp L and BF, save DNG instead.
Anatomy
What's inside an X3F file
An X3F file has a fixed header at the start, a set of data sections, and a directory of those sections at the end, found through a pointer in the file's last four bytes. Foveon published a description of the early format; the outline below follows ExifTool's SigmaRaw module, which is based on it. Later versions, and the raw image data itself, are known only through reverse engineering (ExifTool, LibRaw and the X3F tools by Roland Karlsson). No real file is shown.
photo.x3f: layout of a version 2.x file (no real file shown)
offset bytes part
0 46 4F 56 62 "FOVb": signature
4 vv vv vv vv version: major × 65536 + minor
8 16 bytes unique image ID
24 4 bytes mark bits
28 4 + 4 bytes image width, height
36 4 bytes rotation: 0, 90, 180 or 270
40 32 bytes (2.1 and later) white balance name
72 32 bytes (2.3) scene capture type
… 160 bytes (2.1 to 2.3) extended header: 32 type codes and
32 values (exposure, contrast, shadow,
highlight, saturation, sharpness …)
(version 4.0 and later: one 768-byte header instead)
… data sections previews, raw image, properties,
calibration data
… "SECd" directory version, number of entries, then
12 bytes per entry:
offset, length, "PROP" properties: camera, lens, exposure
offset, length, "IMA2" an image: "SECi" header + JPEG preview
offset, length, "IMAG" an image: preview or raw data
… other sections
end − 4 oo oo oo oo offset of the SECd directory
(all numbers little-endian)- 1
46 4F 56 62The signature
FOVbin ASCII, for Foveon. PRONOM and file-identification tools recognise X3F by these four bytes. - 2
vv vv vv vvThe version
A 32-bit number holding the major version in its top half and the minor version in its bottom half, so
0x00020003is version 2.3. Version 4.0 and later, used by Sigma's newer cameras, have a different, larger header. - 3
16 bytesUnique image ID
An identifier for this one picture. According to ExifTool's notes, its first digits come from the camera's serial number.
- 4
4 + 4 bytesSize and rotation
The image width and height in pixels, and how to rotate it for display, in degrees.
- 5
160 bytes (2.1 to 2.3)The extended header
Up to 32 numbered adjustments recorded with the image, such as exposure, contrast, shadow, highlight, saturation and the X3 Fill Light setting, each stored as a floating-point value.
- 6
"SECd" directoryThe section directory
SECd, a version, the number of entries, then 12 bytes per entry: where a section starts, how long it is, and a four-letter type. Software reads the last four bytes of the file, jumps to the directory, and from there to any section. - 7
"IMA2", "IMAG"Image sections
Each starts with
SECiand a small header saying what kind of image follows. One kind is a full JPEG preview (with its own Exif block, on all models except the SD9 and SD10); another holds the raw sensor data, in an encoding that differs between camera generations. - 8
"PROP"Properties
A list of named values starting with
SECp: camera model, serial number, firmware, exposure, lens, flash and more. ExifTool reads them, but can only write metadata to the embedded JPEG.
Under the hood
How the Foveon sensor works, and what that means for the file
In a normal camera sensor, each photosite sits under a red, green or blue filter (a Bayer pattern) and records one colour. Software then estimates the two missing colours at every pixel from its neighbours. This step is called demosaicing, and every raw converter is built around it.
A Foveon sensor has no colour filters. It stacks three layers of photodetectors in the silicon and relies on how deep each wavelength of light travels: blue is absorbed near the surface, green deeper and red deepest. Every pixel position records three values, so there's nothing to demosaic. Sigma says the sensor also needs no low-pass filter, because it doesn't produce colour moiré.
- The values aren't red, green and blue. Each layer responds to a broad, overlapping range of colours. Turning the three readings into accurate colour takes heavy processing based on calibration data the camera writes into the file.
- That calibration data is protected. The US National Archives notes that Sigma encrypts data needed to process the raw file, and libopenraw describes the raw data as encrypted. Third-party developers have had to reverse-engineer it.
- Raw converters can't reuse their pipelines. Software designed around demosaicing a Bayer pattern needs a separate path for Foveon data. Many projects never added one.
Variants
Sigma cameras and their raw files
| Cameras | Sensor | Raw files |
|---|---|---|
| SD9, SD10, SD14, SD15 | Foveon, the early generations | X3F |
| DP1, DP1s, DP1x, DP2, DP2s, DP2x | Foveon, in compact cameras | X3F |
| SD1, SD1 Merrill, DP1, DP2 and DP3 Merrill | Foveon, the Merrill generation | X3F |
| dp0, dp1, dp2, dp3 Quattro; sd Quattro, sd Quattro H | Foveon, the Quattro generation | X3F (plus X3I files); the sd Quattro H can also record DNG |
| fp, fp L, BF | Conventional (Bayer) sensors | DNG for stills; CinemaDNG for the fp's raw video |
The file's version number changed along the way. ExifTool reads version 2.x headers one way and version 4.0 and later another way, and warns about versions it hasn't seen. Files from all generations still start with FOVb, so identification works the same.
The sd Quattro H's DNG option shows the trade-off. In tests published in 2017, diglloyd found its DNG files took about 150 MB each against about 68 MB for X3F, while holding 12-bit values instead of 14-bit, and the Sigma Photo Pro of the time couldn't process those DNGs.
Support
Why so few applications open X3F files
- Adobe: Camera Raw and Lightroom read X3F files from the earlier Sigma cameras, but never added the Merrill and Quattro generations. A feature request for Merrill support, posted on Adobe's forum in December 2013, is still marked "Not Prioritized". Adobe's DNG Converter can't help with files Adobe can't read.
- Apple: Apple's list of supported raw cameras includes Sigma's fp, fp L and BF, which record DNG, and no X3F camera, so Photos and Preview don't decode X3F files.
- LibRaw: the open-source library behind many tools, including Microsoft's Raw Image Extension, has carried a Foveon decoder based on Roland Karlsson's X3F tools since 2013. Since LibRaw 0.20 (July 2020) it's only compiled in when a build sets
USE_X3FTOOLS, so whether an application built on LibRaw opens X3F depends on how it was built. - Other converters: darktable doesn't open X3F files; RawTherapee opens some. Colours can differ from Sigma Photo Pro's, since each project had to work out the processing on its own.
How to
How to open and convert an X3F file
- Sigma Photo Pro (Windows and macOS, free): supports all of Sigma's SD, DP, sd Quattro and dp Quattro cameras, plus the fp series' DNG files. Version 6.8.5 came out in February 2024. It exports JPEG and 16-bit TIFF.
- Affinity Photo: develops X3F files from the SD and DP cameras, including the Merrill and Quattro models.
- Photoshop: Sigma released a free plug-in in 2018 that imports X3F files into Photoshop CC.
- Just a look: the JPEG preview inside the file is enough for browsing, and any tool that reads it, or ExifTool, can show it.
# camera, lens, settings and the file version
exiftool photo.x3f
# extract the full-size JPEG preview (not on SD9 and SD10 files)
exiftool -b -JpgFromRaw photo.x3f > preview.jpgFor long-term storage, the US National Archives recommends converting X3F files to DNG. In practice, many Sigma owners keep the X3F originals alongside 16-bit TIFF exports from Sigma Photo Pro, which any image editor can open.
Comparison
X3F vs DNG, TIFF and JPEG
| X3F | DNG | TIFF | JPEG | |
|---|---|---|---|---|
| What it holds | Three raw values per pixel | Raw values (usually one per pixel) | A finished picture | A finished picture |
| Needs demosaicing | No | Usually | No | No |
| Specification | Partly published, partly reverse-engineered | Published by Adobe | Published | Open standard |
| Software support | Very narrow | Wide | Wide | Universal |
| Best for | Originals from a Foveon camera | Raw files from Sigma's fp and BF | Edited masters, archives | Sharing and the web |
Troubleshooting
Common X3F problems, and safety
- "Unsupported file" in Lightroom or Photoshop. The file is probably from a Merrill or Quattro camera. Use Sigma Photo Pro or Affinity Photo, or Sigma's Photoshop plug-in.
- Only a small or low-quality image appears. The viewer is showing an embedded preview. Use a real X3F converter to get the full image.
- Strange colours or magenta casts in third-party software. Foveon colour processing depends on calibration data that other converters only partly understand. Compare with Sigma Photo Pro.
- An X3I file won't open anywhere. These files come from the Quattro cameras and need Sigma Photo Pro.
- Metadata edits don't stick. ExifTool can only write to the JPEG preview inside an X3F, not to the properties section.
X3F files can't run code, but they do contain the camera's serial number and the date and time, so check them with exiftool before publishing originals. Like any parser, X3F decoders have had security bugs: LibRaw fixed an out-of-bounds read and a possible stack overrun in its X3F parser in 2018 (CVE-2018-10529 and CVE-2018-10528), and now limits the X3F decoder's memory use. Keep raw software up to date.
Sample files
There are no sample X3F files on this page. Raw files come straight from the camera, so the simplest test file is one shot on a Sigma SD, DP or Quattro camera set to RAW.
Put it online
Have an X3F file? Give it a link.
Drop an X3F on 99helpers and it gets its own web address to send to someone with Sigma Photo Pro. Browsers can't display camera raw files, so the link downloads the file; add a JPG if people just need to see the picture.
Questions
X3F files, frequently asked
What is an X3F file?
A raw photo from a Sigma camera with a Foveon sensor, such as the SD9, DP2 Merrill or sd Quattro. It holds three values per pixel from the sensor's stacked layers, plus previews and metadata.
How do I open an X3F file?
With Sigma Photo Pro, Sigma's free software for Windows and macOS. Affinity Photo also opens X3F files, and Sigma has a plug-in for Photoshop.
Why won't Lightroom open my X3F files?
Adobe supports only the X3F files of Sigma's earlier cameras, not the Merrill and Quattro generations. Process them in Sigma Photo Pro and export TIFF files for Lightroom.
How do I convert X3F to JPG or TIFF?
Open the file in Sigma Photo Pro, adjust it, and save as JPEG or 16-bit TIFF. For a quick look, exiftool -b -JpgFromRaw photo.x3f > preview.jpg extracts the embedded preview.
Can I convert X3F to DNG?
Not with Adobe's DNG Converter for the newer cameras. Some open-source tools based on the X3F tools can write DNG, but the colour won't match Sigma Photo Pro. Keep the X3F originals either way.
Does the Sigma fp use X3F?
No. The fp, fp L and BF have conventional sensors and record DNG for photos, and the fp records CinemaDNG for raw video.
What makes Foveon different?
Its three stacked layers record all three colours at every pixel, instead of one colour per pixel behind a filter. There's no demosaicing, but the colour processing is complex and specific to Sigma.
Related formats
Other file types explained
Keep going
Related
Sources
- PRONOM: Sigma RAW Image (fmt/661)
- ExifTool: Sigma/Foveon RAW (X3F) tags
- DPReview: Foveon's revolutionary X3 sensor (2002)
- Sigma: SIGMA Photo Pro 6.8.0 release (2021)
- LibRaw changelog
- US National Archives: Sigma RAW (X3F) format record
Last reviewed 27 October 2026.