File types · Explainer

The RAF file (.raf)

A RAF file is a Fujifilm raw photo: the sensor data from an X-series or GFX camera, saved before the camera applies white balance, its film simulation and a tone curve. This guide explains what's inside one, why X-Trans sensors make RAF files different to process, the compression options, and how to open and convert them, including with the camera itself.

At a glance

Full name
Fujifilm RAW (Fujifilm RAW image format)
Extensions
.raf
MIME type
None registered; image/x-fuji-raf (freedesktop) and image/x-fujifilm-raf (ExifTool) are used unofficially
Kind
Binary camera raw image in Fujifilm's own container: a header and directory, a JPEG preview, a metadata block and the sensor data
Owner
Fujifilm; unpublished. Known through reverse engineering (libopenraw, ExifTool, LibRaw)
Sensors
X-Trans (6 × 6 colour filter pattern) in most X-series cameras since the X-Pro1 (2012); conventional Bayer in GFX medium-format and some other models
Bit depth
14-bit on recent models; the GFX100 can also record 16-bit in single-frame shooting
Compression
Uncompressed, lossless compressed, and on newer models lossy compressed
Magic number
46 55 4A 49 46 49 4C 4D 43 43 44 2D 52 41 57 20, ASCII FUJIFILMCCD-RAW (16 bytes)
Opens with
Fujifilm X RAW Studio (free, uses the camera), Lightroom and Photoshop, Capture One, DxO PhotoLab, darktable, RawTherapee, macOS Photos, Windows Photos with the Raw Image Extension

The basics

What is a RAF file?

RAF is the raw format of Fujifilm's digital cameras, today the X-series (X-T, X-H, X-Pro, X-E, X-S and X100 models) and the GFX medium-format cameras. Set the camera to RAW or RAW + JPEG (Fujifilm calls it FINE+RAW) and every photo is saved as a .raf.

Like any raw file, a RAF holds one value per photosite, recorded behind a red, green or blue filter, before the camera has made a picture. Demosaicing, white balance, the film simulation (Provia, Velvia, Classic Chrome and the rest), sharpening and noise reduction are all applied later, by whatever software opens the file. The camera's choices are stored as settings, so you can change them afterwards.

  • Film simulations aren't baked in. Lightroom and Capture One, among others, offer camera-matching profiles with the same names; Fujifilm's own X RAW Studio uses the camera's processing, so it matches exactly.
  • It looks flat at first in editors that start from neutral settings, compared with the camera's JPEG.
  • A JPEG is inside for previews, along with the Exif data.
  • Not for sharing. Browsers and most phone apps can't show RAF. Export a JPG, HEIF or PNG.

Anatomy

What's inside a RAF file

Fujifilm doesn't publish the RAF format. This outline combines the description in libopenraw's format notes with the offsets ExifTool's RAF reader uses; the signature also matches PRONOM's entry for the format (fmt/642). Several fields are still marked unknown by those projects, and everything here is reverse-engineered. Unlike most raw formats, a RAF is not a TIFF file on the outside: it's a Fujifilm container, big-endian throughout, whose directory points to three blocks.

RAF structure (documented layout, not a dump of a real file)
RAF layout (from libopenraw and ExifTool; not a real file)
all numbers big-endian

offset  size  field
0x00    16    46 55 4A 49 46 49 4C 4D 43 43 44 2D 52 41 57 20
              "FUJIFILMCCD-RAW " (with a trailing space)
0x10    4     format version, ASCII, e.g. "0201"
0x14    8     camera ID, e.g. "FF389501" (meaning undocumented)
0x1C    32    camera model name, padded with nulls
0x3C    4     directory version, e.g. "0100" or "0159"
0x40    20    unknown; ExifTool reads an M-RAW header offset
              and length at 0x48 in multi-image files
0x54    4+4   JPEG preview: offset, length
0x5C    4+4   metadata container: offset, length
0x64    4+4   CFA (raw sensor data): offset, length
0x6C    …     more offsets, partly unknown

JPEG    a complete JPEG: Exif with Fujifilm maker notes,
        a thumbnail, sometimes an XMP packet (Rating)
META    record count (4 bytes), then records of
        tag (2) + size (2) + data:
          0x100  sensor size, borders included
          0x110  top-left of the active area
          0x111  active area height and width
          0x121  output height and width
          0x130  raw info
          0x131  the X-Trans colour filter pattern
CFA     the sensor data; in many models stored as a small TIFF
        structure (ExifTool's FujiIFD) pointing to the pixels,
        uncompressed or compressed
  1. 1FUJIFILMCCD-RAW

    The signature

    16 ASCII bytes, ending in a space. The "CCD" is a leftover from the sensors of the early 2000s; today's Fujifilm cameras use CMOS sensors and still write the same signature. The freedesktop MIME database, used by Linux desktops, recognises RAF by this string.

  2. 20x10 "0201", 0x1C model

    Version and camera

    A four-character format version, an 8-byte camera ID and the model name in plain text, so head -c 60 photo.raf already tells you which camera took it.

  3. 30x3C directory version

    The offset directory

    ExifTool reports these four bytes as RAFVersion. The directory that follows lists where each block starts and how long it is, as pairs of 4-byte big-endian numbers.

  4. 40x54 JPEG offset, length

    The JPEG preview

    A full JPEG with the camera's rendering, film simulation included. Unusually, the photo's Exif metadata and Fujifilm maker notes live inside this JPEG, not in the RAF structure itself. Cameras can also add an XMP packet with a star rating.

  5. 50x5C metadata container

    Raw-specific metadata

    A simple list of tagged records: sensor size, the active area to crop to, the output size and, for X-Trans models, the 6 × 6 colour filter pattern (tag 0x131) a converter needs to demosaic correctly.

  6. 60x64 CFA offset, length

    The sensor data

    The raw readings themselves. In many models this block is a small TIFF structure pointing to the pixel data, which can be uncompressed or compressed. ExifTool calls it FujiIFD.

  7. 70x48 M-RAW

    Several raw images in one file

    In RAF files that hold more than one raw image, ExifTool reads an M-RAW header from here, with an image number and exposure time for each image.

Under the hood

X-Trans: why RAF files are processed differently

Almost every camera sensor uses the Bayer pattern: a 2 × 2 block of one red, two green and one blue filter, repeated across the sensor. In January 2012, with the X-Pro1, Fujifilm introduced X-Trans, which repeats a 6 × 6 block instead, arranged irregularly so that every row and every column contains red, green and blue.

BayerX-Trans
Repeating block2 × 2 photosites6 × 6 photosites
Red, green, blue in a 6 × 6 area9, 18, 98, 20, 8
Optical low-pass filterTraditionally, to prevent moiréLeft out; the irregular pattern makes moiré less likely
DemosaicingDecades of research; fast, well-tuned algorithms everywhereHarder: same-coloured neighbours can be two photosites apart
CamerasMost cameras; Fujifilm GFXMost Fujifilm X-series cameras

Demosaicing estimates the two missing colours at every photosite from its neighbours. With X-Trans, the neighbours of the same colour are further apart and the pattern repeats less often, so converters need different algorithms. DxO, which added X-Trans support to PhotoLab 5, calls the process "far more complex" and notes that far fewer research papers exist on it than on Bayer. That's why the same RAF can look noticeably different from one program to the next, above all in fine, random detail such as foliage.

Which converter for X-Trans?

Try a few on the same file at 100%: X RAW Studio (Fujifilm's own processing), Capture One, Lightroom (including its Enhance Details option), DxO PhotoLab, darktable and RawTherapee each handle X-Trans their own way. Look at fine, random detail such as grass, leaves and hair.

Settings

Uncompressed, lossless and compressed RAF

Under RAW RECORDING, Fujifilm cameras offer up to three types. The X-Pro2's manual lists the first two; newer models add a lossy one. The GFX100's manual gives these figures:

TypeLossless?Size vs uncompressed (14-bit)
UncompressedYes100%
Lossless compressedYes, "a reversible algorithm"About 30 to 90%, depending on the picture
CompressedNo, "lossy, non-reversible"About 25 to 35%, with quality Fujifilm describes as about the same

The GFX100 can also record 16-bit raw in single-frame shooting; Fujifilm gives 45 to 100% (lossless) and 30 to 40% (compressed) for those. Lossless compression costs nothing in quality, so it's a safe default. Before switching to compressed RAF, check that every app in your workflow supports it: Apple's raw support list for its 2025 systems marked many Fujifilm models, including the X-H2S, X-Pro3 and GFX 100 II, as supported for uncompressed RAF only.

How to

How to open and convert a RAF file

  • Fujifilm X RAW Studio (free, Windows and macOS): connect the camera with USB, and the software sends each RAF to the camera, whose processor converts it to JPEG or TIFF with the camera's own processing and settings you can adjust. Results match the camera's own JPEGs exactly, and Fujifilm says conversion takes about as long as taking a photo. The catch: it only converts files from the same model as the connected camera, and runs on the camera's battery.
  • In the camera: the playback menu's RAW CONVERSION does the same for a single photo, without a computer.
  • Editors: Lightroom, Lightroom Classic and Photoshop (Camera Raw), Capture One, DxO PhotoLab, Affinity Photo; free and open source, darktable and RawTherapee.
  • Just looking: macOS Photos and Preview for supported cameras; on Windows 10 and 11, Microsoft's free Raw Image Extension for Photos and File Explorer thumbnails.
terminal
# which camera? the model name is plain text in the header
head -c 60 DSCF0001.RAF | strings

# save the embedded JPEG (the camera's own rendering)
exiftool -b -PreviewImage DSCF0001.RAF > DSCF0001.jpg

# render the raw data with darktable
darktable-cli DSCF0001.RAF DSCF0001.jpg

For older software that doesn't know your camera, Adobe's free DNG Converter turns RAF files into DNG, which older Lightroom and Photoshop versions open.

Troubleshooting

Why won't my RAF open, or why does it look wrong?

  • The camera is newer than the app. Every new model needs explicit support. Update, or convert with Adobe DNG Converter.
  • It's a compressed or lossless RAF the app can't decode. If uncompressed files from the same camera open, that's the cause. Update the app or change RAW RECORDING.
  • X RAW Studio says the file isn't supported. It only converts files shot with the same model as the camera connected.
  • Colours don't match the camera. Choose the film simulation profile in your editor (for example Camera Classic Chrome) instead of a generic profile, or convert with X RAW Studio.
  • Smeared or oddly textured foliage. An X-Trans demosaicing issue. Try another converter or its detail-enhancing option, and reduce sharpening.

Comparison

RAF vs JPG, HEIF and DNG

RAFJPGHEIFDNG
What it holdsSensor data plus settingsFinished pictureFinished pictureSensor data plus settings
Film simulationStored as a setting, changeableBaked inBaked inDepends on the profile used
ContainerFujifilm's ownJFIF or ExifISO base media file formatTIFF
SpecificationUnpublishedOpen (ISO)Open (ISO)Published by Adobe, ISO 12234-4

Many Fujifilm photographers shoot RAF + JPEG: the JPEG for its film simulation straight away, the RAF for the photos that need more work.

Privacy

Metadata in RAF files

A RAF can't run code, but its metadata, inside the embedded JPEG's Exif block, can reveal more than you mean to share:

  • Camera serial numbers, including an internal serial number in the Fujifilm maker notes, linking photos to one body.
  • Location, when the camera took it from a phone.
  • Face recognition data on models with that feature: ExifTool lists tags for face names and categories registered in the camera.
  • Copyright and author text from the camera menu, and every setting.

Inspect with exiftool -a -G1 photo.raf. When it matters, share an exported JPEG with metadata stripped rather than the RAF itself.

Sample files

There are no sample RAF files on this page. Raw files come straight from the camera, so the simplest test file is one shot on a Fujifilm camera set to RAW; record one each with uncompressed, lossless and compressed RAW RECORDING to test all three.

Put it online

Have a RAF file? Give it a link.

Drop a RAF on 99helpers and it gets its own web address. Browsers can't display raw files, so anyone who opens the link downloads it to open in their own raw software; share a JPG too if people just need to see the photo.

Questions

RAF files, frequently asked

What is a RAF file?

A Fujifilm raw photo from an X-series or GFX camera. It holds the sensor data before processing, the camera's settings and a JPEG preview, in Fujifilm's own container format.

How do I open a RAF file?

Use Fujifilm's free X RAW Studio with your camera connected, or Lightroom, Photoshop, Capture One, darktable or RawTherapee. Macs open RAF in Photos and Preview; on Windows, install the Raw Image Extension.

How do I convert RAF to JPG?

Export from your raw editor, use X RAW Studio or the camera's RAW CONVERSION menu, or take the embedded preview with exiftool -b -PreviewImage photo.raf > photo.jpg.

What is X-Trans?

Fujifilm's colour filter pattern for most X-series sensors: a 6 × 6 repeating block instead of the 2 × 2 Bayer pattern, designed to reduce moiré without an optical low-pass filter. It needs different demosaicing algorithms.

Is lossless compressed RAF really lossless?

Yes. Fujifilm describes it as a reversible algorithm: the decoded data is identical to uncompressed. Only the Compressed option is lossy.

Why do my RAF files look different in Lightroom than on the camera?

The camera shows its JPEG with your film simulation. Lightroom starts from its own profile. Pick the matching camera profile, or convert with X RAW Studio for the camera's exact look.

Can I use X RAW Studio without a camera?

No. The conversion runs on the connected camera's processor, and only for files from that same camera model.

Related formats

Other file types explained

Keep going

Related

Sources

Last reviewed 27 October 2026.