File types · Explainer

The Sony SR2 file (.sr2, .srf)

An SR2 file is a raw photo from Sony's Cyber-shot DSC-R1, and SRF is the format of the two Cyber-shots before it: Sony's raw formats from before the Alpha range and ARW. This guide explains which cameras made them, what's inside, the parts Sony encrypted, and how to open and preserve them now.

At a glance

Full name
Sony Raw Format 2 (SR2) and Sony Raw Format (SRF)
Extensions
.sr2, .srf
MIME type
None registered; image/x-sony-sr2 and image/x-sony-srf are used unofficially
Kind
Binary camera raw images built on TIFF, with partly encrypted metadata (and, in SRF, encrypted image data)
Owner
Sony; never published. Everything known comes from reverse engineering, notably by Dave Coffin (dcraw) and ExifTool
Cameras
SRF: Cyber-shot DSC-F828 and DSC-V3. SR2: Cyber-shot DSC-R1 (2005)
Successor
ARW, from the DSLR-A100 (2006) onwards, which still contains an SR2-style private block
Magic number
A plain TIFF header. ExifTool tells SR2 apart by the maker-note FileFormat tag B000 = 01 00 00 00
Opens with
Lightroom and Photoshop, macOS Photos and Preview, Windows Photos with the Raw Image Extension, darktable, RawTherapee. Sony's current Imaging Edge doesn't list them

The basics

What is an SR2 or SRF file?

Before Sony made interchangeable-lens cameras, it offered raw capture on a few Cyber-shot models. The DSC-F828 and DSC-V3 wrote SRF (Sony Raw Format) files. The DSC-R1, a 10-megapixel camera with a fixed zoom lens and an unusually large APS-C sensor, announced in 2005, wrote SR2. When Sony launched its Alpha range with the DSLR-A100 in 2006, it introduced ARW, and no new camera has written SR2 or SRF since.

Like any raw file, an SR2 holds what the sensor recorded: one brightness value per photosite, each behind a red, green or blue filter, before demosaicing, white balance and the tone curve turn them into a picture. Opened in a raw editor, it looks flatter than the camera's JPEG at first, and gives far more room to fix exposure and colour.

Anatomy

What's inside SR2 and SRF files

Sony never published either format. This outline follows the tag tables and notes in Phil Harvey's ExifTool, which credits the decryption method to Dave Coffin, author of the dcraw raw decoder. All tag names are ExifTool's; both formats are reverse-engineered. Both are TIFF files on the outside, with the camera's private data hidden in places ordinary TIFF readers skip.

SR2 and SRF structure (documented layout, not a dump of a real file)
SR2 (Cyber-shot DSC-R1), from ExifTool's Sony tables

TIFF header ("II" or "MM", 42)        nothing here says "Sony" or "SR2"
IFD0       Make, Model, previews …
           C634 DNGPrivateData ──► SR2Private IFD
                                     7200 SR2SubIFDOffset
                                     7201 SR2SubIFDLength
                                     7221 SR2SubIFDKey   32-bit key
                                     7250 MRWInfo        Minolta-style block
                                     └─► SR2SubIFD (encrypted)
                                          7300 BlackLevel
                                          7303 WB_GRBGLevels  as shot
                                          7480…7486 WB presets
                                          74C0 SR2DataIFD
Exif IFD   927C MakerNote "SONY DSC "
             B000 FileFormat  01 00 00 00 = SR2
             B001 SonyModelID 2 = DSC-R1
raw image  sensor data; ExifTool documents no encryption here

SRF (Cyber-shot DSC-F828, DSC-V3)

TIFF header and IFD0, as above
Maker notes: a chain of 7 IFDs
  SRF0     not encrypted; data used to find the first key
  SRF1     encrypted   0 SRF2Key, 1 DataKey
  SRF2-5   encrypted   2 SRF6Offset, 4 RawDataOffset, 5 RawDataLength,
                       lens and white-balance tags
  SRF6     standard Exif tags
rest of the file     encrypted with DataKey
  1. 1TIFF header

    Ordinary on the outside

    Both formats start like any TIFF, and the freedesktop MIME database treats them as TIFF subtypes. That's why a TIFF viewer may show a preview. Telling SR2 from ARW or a plain TIFF takes a look inside the maker notes.

  2. 2B000 FileFormat 01 00 00 00

    The format version

    In Sony's maker notes, which start with SONY DSC , the FileFormat tag says 1 0 0 0 for SR2. ARW files carry 2 (ARW 1.0) and higher in the same tag, and SonyModelID 2 stands for the DSC-R1.

  3. 3C634 DNGPrivateData

    A private IFD

    SR2 borrows a tag from Adobe's DNG specification, meant for vendor data, to point to Sony's private directory. ARW files still use the same arrangement.

  4. 47200, 7201, 7221

    Where the secret data is, and its key

    The private IFD gives the offset and length of another directory and a 32-bit key. The key seeds a stream of pseudo-random words that are XORed with the data; ExifTool and LibRaw reproduce it to decrypt.

  5. 5SR2SubIFD

    The encrypted part

    Black levels, the as-shot white balance and white balance presets for daylight, cloudy, tungsten, flash and fluorescent light. A converter needs these to get colours right, so encrypting them mostly made life hard for software outside Sony's own.

  6. 67250 MRWInfo

    A trace of Minolta

    The SR2 private directory can hold a block in the format of Minolta's MRW raw files. ExifTool notes that only original ARW files from the DSLR-A100 actually use it.

  7. 7SRF0 … SRF6

    SRF: almost everything encrypted

    In SRF files the maker notes are a chain of seven IFDs. Only the first is in the clear. The second holds two keys: one for the next IFDs, and a DataKey that, ExifTool says, decrypts the rest of the file from the end of the maker notes onwards.

Under the hood

Why parts of SR2 and SRF files are encrypted

Most camera raw formats are undocumented. Sony's early formats went a step further and encrypted parts of the file, so that only software that knew the scheme could read them:

SRFSR2ARW
CamerasDSC-F828, DSC-V3DSC-R1Alpha, ZV, later Cyber-shots
EncryptedMaker notes after the first IFD, and the rest of the file from the end of the maker notesOne private sub-directory: black level and white balanceThe same SR2 sub-directory (now with colour and lens data), plus enciphered maker-note blocks
Sensor dataEncrypted, with the rest of the fileNot encryptedNot encrypted

The encryption didn't keep other software out. Dave Coffin worked out the algorithm and put it in dcraw, the open-source decoder that much raw software was built on, and ExifTool, LibRaw and Adobe all read the files. In its notes on camera raw formats, the Library of Congress mentions a case where encrypted data elements forced people to use the manufacturer's own software, and treats undocumented raw formats as a preservation risk: a file that depends on reverse-engineered decryption stays readable only as long as someone maintains that code.

How to

How to open and convert SR2 and SRF files today

These cameras are two decades old, but their files still open in mainstream software:

  • Mac, iPhone and iPad: Apple's list of supported raw cameras still includes the DSC-R1 and DSC-F828, so Photos and Preview open their files.
  • Windows: install Microsoft's free Raw Image Extension (built on LibRaw) for thumbnails and viewing in Photos.
  • Adobe Lightroom and Photoshop: Camera Raw reads both. When the DSC-R1 dropped off Adobe's printed camera list in 2021, users confirmed that Lightroom Classic still opened its files.
  • Free: darktable and RawTherapee, which rely on open-source decoders that have long supported these cameras.
  • Not Sony's current software: Imaging Edge lists ARW, ARQ and AXR as its raw formats, not SR2 or SRF.
terminal
# show the deciphered white balance and other private tags
exiftool -a -G1 -SR2SubIFD:all DSC00001.SR2

# save the embedded preview
exiftool -b -PreviewImage DSC00001.SR2 > DSC00001.jpg

Preservation

Keeping old SR2 and SRF files readable

Old raw formats only stay readable while someone maintains a decoder. If you have an archive of R1 or F828 photos, three steps protect it:

  1. 1Keep the originals. Nothing replaces the camera's own file.
  2. 2Make DNG copies with Adobe's free DNG Converter. DNG has a public specification and an ISO standard, and the converter can embed the original raw file inside the DNG, so nothing is lost.
  3. 3Export finished photos as 16-bit TIFF or high-quality JPG for anything you'll want to look at without a raw editor.

Comparison

SR2 vs ARW and DNG

SR2 / SRFARWDNG
In useMid-2000s only2006 to now2004 to now
CamerasThree Cyber-shotsAll Sony cameras that shoot rawMany makers, phones, converters
SpecificationNever publishedNever publishedPublic, ISO 12234-4
Encrypted partsYesYes, some metadataNo
Sony softwareNot in Imaging EdgeImaging EdgeNo

Privacy

Metadata in SR2 and SRF files

SR2 and SRF files carry the date and time, all camera settings and a camera model identifier. Check with exiftool -a -G1 file.sr2 before publishing a collection, including for location or captions that other software may have added later, and don't strip all metadata from the raw files themselves: converters need the private Sony data to render the colours.

Sample files

There are no sample SR2 or SRF files on this page. Only three discontinued Sony cameras ever wrote them, so the practical sources are your own archive or a used DSC-R1, DSC-F828 or DSC-V3.

Put it online

Have an SR2 file? Give it a link.

Drop an SR2 or SRF file 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 raw software; add a JPG if people just need to see the photo.

Questions

SR2 files, frequently asked

What is an SR2 file?

A raw photo from the Sony Cyber-shot DSC-R1. It's a TIFF-based raw format from 2005, before Sony's Alpha cameras switched to ARW.

What is an SRF file from a Sony camera?

The raw format of the Sony Cyber-shot DSC-F828 and DSC-V3, from before SR2. Most of its maker notes and the rest of the file after them are encrypted, but common raw software decrypts them.

How do I open an SR2 file?

On a Mac, in Photos or Preview. On Windows, install the Raw Image Extension and use Photos. Lightroom, Photoshop, darktable and RawTherapee also open SR2 files.

How do I convert SR2 to JPG?

Open the file in Photos, Preview, Lightroom or darktable and export as JPEG. To convert many files, use Lightroom's export or darktable-cli file.sr2 file.jpg.

Can Sony's Imaging Edge open SR2 files?

Sony lists only ARW, ARQ and AXR raw files for Imaging Edge Desktop. Use Adobe, Apple or open-source software for SR2 and SRF.

Are SR2 files encrypted?

Partly. A private block with the black level and white balance is encrypted; the sensor data isn't. In older SRF files, almost everything after the first maker-note directory is encrypted. Common raw software decrypts both.

Should I convert SR2 files to DNG?

For an archive, yes, as a copy. DNG is documented and widely supported, and Adobe DNG Converter can embed the original SR2 inside the DNG. Keep the originals too.

Related formats

Other file types explained

Keep going

Related

Sources

Last reviewed 27 October 2026.