File types · Explainer

The RW2 file (.rw2, .raw, .rwl)

An RW2 file is a raw photo from a Panasonic Lumix camera: the sensor's readings with almost no processing, plus a JPEG preview and the camera's settings. This guide explains what's inside one, how it relates to older Panasonic .RAW and Leica .RWL files, and how to open, edit and convert it.

At a glance

Full name
Panasonic RAW 2 (Lumix raw image)
Extensions
.rw2; older Panasonic cameras wrote .raw; some Leica cameras made with Panasonic write the same format as .rwl
MIME type
None registered; image/x-panasonic-rw2 is used by ExifTool and Linux desktops (image/x-panasonic-raw for the older .raw)
Kind
Binary camera raw image with a TIFF-like structure: compressed sensor data, a full-size JPEG preview and Exif metadata
Standard or owner
Panasonic. No public specification; what's known comes from reverse engineering (ExifTool, LibRaw, libopenraw)
In use
Lumix cameras from the late 2000s on, such as the Lumix G1 (2008); still current
Magic number
49 49 55 00 (IIU: a little-endian TIFF header with 0x55 instead of 42); RW2 files continue with 18 00 00 00 and a fixed 16-byte signature
Opens with
Lightroom and Photoshop (Camera Raw), SILKYPIX Developer Studio SE, darktable, RawTherapee, macOS Photos and Preview, Windows Photos with the Raw Image Extension; browsers can't display it

The basics

What is an RW2 file?

RW2 is the raw format of Panasonic's Lumix cameras, from compacts and bridge cameras to the G-series Micro Four Thirds and S-series full-frame models. When a Lumix is set to RAW or RAW+JPEG, it saves an .RW2 file for each shot, next to the JPEG if you asked for both.

A raw file holds what the sensor measured, before the camera turns it into a finished picture. Each pixel on the sensor sits under a red, green or blue filter and records one brightness value. Software later works out the missing colours for every pixel (demosaicing), applies white balance, a colour profile, a tone curve, sharpening and noise reduction. A JPEG has all of that baked in; a raw file leaves it to you, with more bits per pixel to work with: most cameras record 12 or 14, against JPEG's 8.

Three things that surprise people:

  • Raw files look flat when edited. The preview you first see is the camera's own JPEG. Once a raw editor renders the sensor data with its default settings, contrast and saturation can drop. Nothing is lost: the editor simply hasn't applied the camera's look yet.
  • There are three extensions. Older Lumix models saved .RAW, newer ones .RW2, and some Leica cameras built with Panasonic save the same kind of file as .RWL. They're one family (see the table below).
  • There's no public spec. Panasonic publishes no format documentation. Every program outside Panasonic's own reads RW2 thanks to reverse engineering, and each new camera may need a software update.

Anatomy

What's inside an RW2 file

Panasonic doesn't publish the RW2 format. The outline below is put together from ExifTool's PanasonicRaw tag documentation and its file-type check, the PRONOM entry for the format (fmt/662) and libopenraw's notes, all of which come from studying real files. It shows the header bytes exactly and the tags you can expect in the first directory; offsets after the header differ from one camera to the next. No real camera file is shown or offered.

photo.rw2 (structure outline)
photo.rw2: structure outline (header bytes as documented; the rest varies by camera)

offset  bytes                         part
000000  49 49                         "II": little-endian, as in a TIFF
000002  55 00                         85 (0x55) where a TIFF has 42
000004  18 00 00 00                   IFD0 starts at byte 24
000008  88 E7 74 D8 F8 25 1D 4D       16-byte RW2/RWL signature
        94 7A 6E 77 82 2B 5D 6A
000018  IFD0: 12-byte entries, TIFF style, but mostly Panasonic tags
          tag   name                  holds
          0001  PanasonicRawVersion
          0002  SensorWidth
          0003  SensorHeight
          0009  CFAPattern            layout of the colour filters
          000A  BitsPerSample
          000B  Compression           34316 = "Panasonic RAW 1"
          002E  JpgFromRaw            → a complete JPEG, with its own Exif
          010F  Make
          0110  Model
          0111  StripOffsets          → the sensor data
          0118  RawDataOffset
          0120  CameraIFD             → more camera settings
          8769  ExifOffset            → Exif IFD and Panasonic maker notes
          8825  GPSInfo               → location, if the camera recorded it
…       Exif IFD, maker notes, the embedded JPEG and the compressed
        sensor data, at offsets that differ from camera to camera
  1. 149 49

    Byte order

    II means little-endian, exactly as in a TIFF. The rest of the file follows TIFF's model: directories (IFDs) of numbered tags that point to data elsewhere in the file.

  2. 255 00

    Not quite TIFF

    A TIFF has the number 42 here. Panasonic files have 85 (0x55, the letter U), so ordinary TIFF readers reject them rather than show garbage. That's also why the header reads IIU in a text viewer.

  3. 318 00 00 00

    Where IFD0 starts

    Byte 24 in an RW2. The older Panasonic .raw files have 08 00 00 00 here, with the directory straight after the 8-byte header, as libopenraw documents.

  4. 488 E7 74 D8 … 5D 6A

    The RW2 signature

    Sixteen fixed bytes fill the gap between the header and IFD0. ExifTool uses them to tell an RW2 or RWL file from an older .raw, and PRONOM's signature for the format includes the first four.

  5. 50001 … 000B

    Panasonic's own tags

    Low tag numbers that standard TIFF doesn't define: the raw format version, the sensor size, the colour filter pattern, bits per sample and the compression. ExifTool knows four compression values; most cameras use 34316, which it calls Panasonic RAW 1.

  6. 6002E JpgFromRaw

    The embedded JPEG

    A complete JPEG made by the camera, with its own Exif block. Thumbnails in file managers, the camera's playback screen and quick viewers usually show this picture, not the raw data, which is why an RW2 can look like a normal photo until you edit it.

  7. 70111 StripOffsets

    The sensor data

    Points to the raw readings, packed with a proprietary compression scheme. libopenraw notes the colour filter layout as blue-green-green-red (BGGR).

  8. 88769, 8825

    Exif and GPS

    The standard Exif directory with exposure settings and Panasonic's maker notes, and a GPS directory when the camera recorded a location. These are the parts to check before sharing (see privacy below).

Variants

RW2, the older .RAW and Leica's .RWL

All three start with the same IIU header. ExifTool treats them as one family with the same tag table, and tells them apart by what follows the header and by the camera maker.

ExtensionWritten byHow to recognise it
.rawEarly Panasonic raw-capable cameras, such as the DMC-FZ30 and DMC-LX1, and Leica models such as the D-LUX 2 and D-LUX 3IIU header with IFD0 at byte 8; libopenraw notes that the oldest have no embedded preview
.rw2Lumix cameras from the late 2000s to todayIFD0 at byte 24 after a 16-byte signature; always a full JPEG preview
.rwlSome Leica cameras made in partnership with Panasonic, such as D-LUX and V-LUX modelsThe RW2 layout with Leica as the maker; libopenraw found no other difference

Not every Leica writes RWL: Leica's own designs record DNG. And a file called .raw isn't necessarily from Panasonic: other cameras and many scanners and scientific instruments use that extension too (see the RAW explainer).

High-resolution modes

Some Lumix bodies can combine several shots taken with the sensor shifted slightly into one file with many more pixels. These files are much bigger, and some raw software supports a camera's normal RW2 files before its high-resolution ones.

How to

How to open, edit and convert an RW2 file

SoftwarePlatformNotes
Adobe Lightroom, Lightroom Classic, Photoshop (Camera Raw)Windows, macOSPaid. Adobe lists the supported cameras and the first Camera Raw version for each.
SILKYPIX Developer Studio SEWindows, macOSThe raw developer Panasonic provides for its cameras. Panasonic's page lists every raw-capable Panasonic model except the DMC-LC1, DMC-FZ30 and DMC-LX1.
darktable, RawTherapeeWindows, macOS, LinuxFree and open source. New models arrive with new releases.
Photos, PreviewmacOS, iPhone, iPadApple's raw list includes well over a hundred Panasonic models, from the DMC-LX1 and DMC-L1 to current ones.
Photos and File ExplorerWindows 10 and 11Install Microsoft's free Raw Image Extension, which is built on LibRaw. Panasonic also published a LUMIX RAW Codec that lets Windows Explorer and Windows Photo Gallery show RW2 files.

To make a JPEG, open the file in any of these and export. To get only the camera's embedded preview, without developing the raw data, ExifTool can extract it:

terminal
# save the camera's own JPEG from inside the RW2
exiftool -b -JpgFromRaw P1000123.RW2 > P1000123.jpg

# list camera, lens, exposure and GPS tags
exiftool -a -G1 P1000123.RW2

The extracted JPEG is the picture the camera made, with its picture style and white balance. Developing the raw data yourself gives you more room to fix exposure and colour.

Troubleshooting

Why won't my RW2 file open?

  • The camera is newer than the software. Every new Lumix model needs its own colour data and sometimes decoding changes, so older versions of Lightroom, Photoshop, darktable or the Windows extension may refuse the file or show only the preview. Update the software, or convert the file with Adobe's free DNG Converter (below).
  • The thumbnail is fine but editing fails. File managers show the embedded JPEG, which any JPEG decoder can read. The raw data itself needs a raw decoder that knows the camera.
  • Colours look different from the camera's JPEG. Each program has its own rendering. Choose a camera-matching profile in your editor if it has one, or start from the embedded JPEG's look.
  • A browser or website won't show it. Browsers can't display raw files. Export a JPEG to share or post the photo.
  • A .raw file won't open in Panasonic's software. The oldest models aren't covered by SILKYPIX Developer Studio SE; use a third-party raw editor or Apple Photos.

The DNG Converter workaround

Adobe DNG Converter is free for Windows and macOS. It rewrites raw files from the cameras it knows as DNG, Adobe's openly documented raw format, which older raw software can usually open. Keep the original RW2 files: the conversion is one-way, and Panasonic's software doesn't read DNG.

Comparison

RW2 vs JPEG, HEIF and DNG

RW2JPEGHEIF/HEICDNG
What it holdsSensor data, preview, metadataA finished pictureA finished pictureSensor data, preview, metadata
Bits per channelMore than 8; the BitsPerSample tag says how many88 or 10Whatever the camera recorded
White balance and lookChangeable afterwardsFixedFixedChangeable afterwards
SpecificationNot publishedPublic standardPublic standardPublished by Adobe
Opens in browsersNoYesSomeNo

Shoot RW2 when you expect to edit: difficult light, mixed white balance, highlights you want to recover. Use JPG or HEIC for pictures that go straight to people. Converting RW2 to DNG changes the container, not the sensor data, and makes the file readable by more software; it doesn't improve quality.

Privacy

What an RW2 file says about you

Raw files carry more metadata than most JPEGs, and it travels with the file when you send or upload it:

  • Camera and lens serial numbers. Panasonic's maker notes include an internal serial number, and lens and accessory serial numbers where available. They link every photo to one camera.
  • Location. Cameras with GPS, or paired with a phone app that adds location, write coordinates to the GPS directory.
  • Date, time and settings, in the Exif directory and again inside the embedded JPEG, which carries its own Exif block.

Check what's there with exiftool -a -G1 file.rw2. The usual advice is to share an exported JPEG, with metadata removed in the export settings, rather than the raw file itself. Like any complex binary format, RW2 contains no scripts, but raw decoders have had memory-safety bugs; keep them updated.

Sample files

There are no sample RW2 files on this page. Raw files come straight from the camera, so the simplest test file is one shot on a Lumix camera set to RAW.

Put it online

Have an RW2 file? Give it a link.

Drop a Lumix raw 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 develop in their own software; share a JPEG alongside it if people just need to see the photo.

Questions

RW2 files, frequently asked

What is an RW2 file?

A raw photo from a Panasonic Lumix camera: the sensor data before processing, a JPEG preview and the camera's settings, in a TIFF-like file.

How do I open an RW2 file?

On a Mac, Photos and Preview open them. On Windows, install Microsoft's free Raw Image Extension for the Photos app. For editing, use Lightroom, Photoshop, darktable, RawTherapee or Panasonic's SILKYPIX Developer Studio SE.

How do I convert RW2 to JPG?

Open the file in a raw editor or Preview and export as JPEG. exiftool -b -JpgFromRaw file.rw2 > file.jpg extracts the camera's own JPEG without editing.

Why won't Lightroom or Photoshop open my RW2 files?

Your version is probably older than the camera. Update it, or convert the files to DNG with Adobe's free DNG Converter and open those.

What's the difference between RW2 and RAW from Panasonic?

Same family. Older Panasonic cameras used the .raw extension and a slightly different header; later ones switched to .rw2, which always contains a full JPEG preview.

What is an RWL file?

The same format written by some Leica cameras made with Panasonic, such as D-LUX and V-LUX models. Software that reads RW2 usually reads RWL too.

Should I convert RW2 to DNG?

Only if your software can't read RW2. DNG holds the same sensor data in a documented container. Keep the originals, because Panasonic's own software doesn't open DNG.

Is RW2 lossless?

Panasonic doesn't document its compression, so it doesn't say. What matters for editing is that RW2 keeps the sensor data before processing, with more bits per pixel than a JPEG.

Related formats

Other file types explained

Keep going

Related

Sources

Last reviewed 27 October 2026.