Free webp to jpg
Fuji-RAF

Fujifilm RAW Image

image/x-fuji-raf Released 2000 · by Fujifilm Corporation

The image/x-fuji-raf MIME type represents the Fujifilm RAW (RAF) image format, a proprietary raw sensor data file generated by Fujifilm digital cameras (such as the X-Series and GFX medium format series). Unlike most digital cameras that use a standard Bayer color filter array, many Fujifilm cameras utilize their proprietary X-Trans sensor technology. Because the X-Trans layout is highly complex to reduce moiré without an optical low-pass filter, RAF files require specialized demosaicing algorithms during post-production. The format stores minimally processed 14-bit or 16-bit sensor data, comprehensive EXIF metadata, Film Simulation parameters, and an embedded high-resolution JPEG preview.

Photography & Raw Imaging ✦ HDR Production Ready

Technical Specifications

MIME Type
image/x-fuji-raf
Extensions
.raf
Container
Proprietary RAF Container
Compression
Uncompressed & Lossless Compressed & Lossy Compressed (Modern firmware)
Algorithms
NoneProprietary LosslessProprietary Lossy
Color Depth
14-bit (Per Channel - X-Series), 16-bit (Per Channel - GFX Series)
Metadata
EXIF XMP ICC
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support
Official Specification
Aliases: image/raf

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
46 55 4A 49 46 49 4C 4D 43 43 44 2D 52 41 57 20
ASCII: FUJIFILMCCD-RAW
HTTP Headers
Content-Type: image/x-fuji-raf
HTML Accept Attribute
accept="image/x-fuji-raf, .raf"

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
  • Retains absolute maximum sensor data, enabling massive shadow recovery and highlight protection compared to compressed in-camera JPEGs
  • Stores proprietary Fujifilm Film Simulation metadata (like Classic Chrome or Acros), allowing editors to perfectly replicate in-camera aesthetics
  • Very distinct and reliable magic header makes programmatic file detection foolproof
Limitations
  • Proprietary format requires continuous updates to third-party software (like Lightroom) whenever Fujifilm releases a new camera
  • The X-Trans sensor matrix requires highly specialized demosaicing algorithms that are extremely computationally expensive, leading to slower import and rendering times
  • Completely unsupported in standard web browsers and basic operating system image viewers

Developer Code Snippets

import magic
# Libmagic will reliably detect the 'FUJIFILMCCD-RAW' signature
print(magic.from_file('photo.raf', mime=True)) # Outputs 'image/x-fuji-raf'
const fs = require('fs');
// Manually detecting the 16-byte Fuji RAF magic signature
const buffer = Buffer.alloc(16);
const fd = fs.openSync('photo.raf', 'r');
fs.readSync(fd, buffer, 0, 16, 0);
fs.closeSync(fd);
const signature = buffer.toString('ascii');
const isRAF = signature === 'FUJIFILMCCD-RAW ';
console.log('Is Fujifilm RAF:', isRAF);
import (
    "bytes"
    "net/http"
)
// Native Go HTTP detection might return application/octet-stream.
// Check directly for the explicit 16-byte signature:
// isRAF := bytes.HasPrefix(buf, []byte("FUJIFILMCCD-RAW "))
$mime = mime_content_type('photo.raf');
echo $mime; // Standard PHP setups with updated magic definitions will return 'image/x-fuji-raf'

File Detection Steps

How to programmatically detect a image/x-fuji-raf file by reading its raw bytes:

  1. 1 Fujifilm RAF files have a very distinct and explicit 16-byte magic string.
  2. 2 Check the first 16 bytes for the ASCII string 'FUJIFILMCCD-RAW ' (Hex: 46 55 4A 49 46 49 4C 4D 43 43 44 2D 52 41 57 20).
  3. 3 Immediately following this string is typically a 4-byte version number string (e.g., '0100' or '0200').

Software Support

C
Capture One Pro
A
Adobe Lightroom Classic / CC
F
Fujifilm X RAW STUDIO
R
RawTherapee

Conversion Tools

Share & Embed

Markdown Badge
Fuji-RAF Format Badge
[![Fuji-RAF Format](https://freewebptojpg.com/mime/image/fuji-raf/badge.svg)](https://freewebptojpg.com/mime/image/fuji-raf)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/fuji-raf/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="Fuji-RAF 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/fuji-raf.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 Fujifilm RAF file?

A RAF file is the proprietary raw image format used by Fujifilm digital cameras. It contains uncompressed or losslessly compressed raw pixel data straight from the camera's sensor, capturing maximum dynamic range and color depth.

Why do RAF files from Fujifilm cameras look different in some editors?

Many Fujifilm cameras use a unique 'X-Trans' color filter array instead of the standard Bayer pattern. Decoding (demosaicing) an X-Trans sensor requires specialized mathematical algorithms. Different software (like Adobe Lightroom vs. Capture One vs. Iridient Developer) uses different algorithms, leading to slight variations in sharpness and micro-contrast.

Can I view RAF files in a web browser?

No. Raw files like RAF are essentially raw sensor dumps and require complex processing to become viewable RGB images. To display them on the web, you must export them to standard formats like JPEG, WebP, or AVIF.

Related Formats

Share this format