File types · Explainer

The X3F file (.x3f)

An X3F file is a raw photo from a Sigma camera with a Foveon sensor, which records red, green and blue at every pixel in three stacked layers. This guide explains what's inside one, why so few raw converters support it, and how to open and convert X3F files with Sigma Photo Pro and other software.

At a glance

Full name
Sigma / Foveon X3F raw image
Extensions
.x3f; related .x3i files from the Quattro cameras
MIME type
None registered; image/x-sigma-x3f and image/x-raw-sigma are both used
Kind
Binary camera raw image: three values per pixel from a stacked Foveon sensor, plus previews and metadata
Owner
Foveon and Sigma; Sigma has owned Foveon since 2008. Proprietary, with parts of the processing data encrypted
First released
2002, with the Sigma SD9, the first camera with a Foveon X3 sensor
Opens with
Sigma Photo Pro (free), Affinity Photo, some LibRaw-based tools. Not Apple Photos; Adobe only for the older cameras
Magic number
46 4F 56 62 (FOVb) at the start of the file
Byte order
Little-endian

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.

In short

If you have X3F files, keep Sigma Photo Pro installed, and export TIFF or JPG copies of the pictures you want to keep using elsewhere.

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 (structure outline)
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. 146 4F 56 62

    The signature

    FOVb in ASCII, for Foveon. PRONOM and file-identification tools recognise X3F by these four bytes.

  2. 2vv vv vv vv

    The version

    A 32-bit number holding the major version in its top half and the minor version in its bottom half, so 0x00020003 is version 2.3. Version 4.0 and later, used by Sigma's newer cameras, have a different, larger header.

  3. 316 bytes

    Unique image ID

    An identifier for this one picture. According to ExifTool's notes, its first digits come from the camera's serial number.

  4. 44 + 4 bytes

    Size and rotation

    The image width and height in pixels, and how to rotate it for display, in degrees.

  5. 5160 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. 6"SECd" directory

    The 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. 7"IMA2", "IMAG"

    Image sections

    Each starts with SECi and 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. 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

CamerasSensorRaw files
SD9, SD10, SD14, SD15Foveon, the early generationsX3F
DP1, DP1s, DP1x, DP2, DP2s, DP2xFoveon, in compact camerasX3F
SD1, SD1 Merrill, DP1, DP2 and DP3 MerrillFoveon, the Merrill generationX3F
dp0, dp1, dp2, dp3 Quattro; sd Quattro, sd Quattro HFoveon, the Quattro generationX3F (plus X3I files); the sd Quattro H can also record DNG
fp, fp L, BFConventional (Bayer) sensorsDNG 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.
terminal
# 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.jpg

For 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

X3FDNGTIFFJPEG
What it holdsThree raw values per pixelRaw values (usually one per pixel)A finished pictureA finished picture
Needs demosaicingNoUsuallyNoNo
SpecificationPartly published, partly reverse-engineeredPublished by AdobePublishedOpen standard
Software supportVery narrowWideWideUniversal
Best forOriginals from a Foveon cameraRaw files from Sigma's fp and BFEdited masters, archivesSharing 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

Last reviewed 27 October 2026.