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 (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
49 49Byte order
IImeans 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
55 00Not quite TIFF
A TIFF has the number 42 here. Panasonic files have 85 (
0x55, the letterU), so ordinary TIFF readers reject them rather than show garbage. That's also why the header readsIIUin a text viewer. - 3
18 00 00 00Where IFD0 starts
Byte 24 in an RW2. The older Panasonic
.rawfiles have08 00 00 00here, with the directory straight after the 8-byte header, as libopenraw documents. - 4
88 E7 74 D8 … 5D 6AThe 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
0001 … 000BPanasonic'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
002E JpgFromRawThe 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
0111 StripOffsetsThe 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
8769, 8825Exif 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.
| Extension | Written by | How to recognise it |
|---|---|---|
.raw | Early Panasonic raw-capable cameras, such as the DMC-FZ30 and DMC-LX1, and Leica models such as the D-LUX 2 and D-LUX 3 | IIU header with IFD0 at byte 8; libopenraw notes that the oldest have no embedded preview |
.rw2 | Lumix cameras from the late 2000s to today | IFD0 at byte 24 after a 16-byte signature; always a full JPEG preview |
.rwl | Some Leica cameras made in partnership with Panasonic, such as D-LUX and V-LUX models | The 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
| Software | Platform | Notes |
|---|---|---|
| Adobe Lightroom, Lightroom Classic, Photoshop (Camera Raw) | Windows, macOS | Paid. Adobe lists the supported cameras and the first Camera Raw version for each. |
| SILKYPIX Developer Studio SE | Windows, macOS | The 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, RawTherapee | Windows, macOS, Linux | Free and open source. New models arrive with new releases. |
| Photos, Preview | macOS, iPhone, iPad | Apple's raw list includes well over a hundred Panasonic models, from the DMC-LX1 and DMC-L1 to current ones. |
| Photos and File Explorer | Windows 10 and 11 | Install 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:
# 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.RW2The 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
.rawfile 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
| RW2 | JPEG | HEIF/HEIC | DNG | |
|---|---|---|---|---|
| What it holds | Sensor data, preview, metadata | A finished picture | A finished picture | Sensor data, preview, metadata |
| Bits per channel | More than 8; the BitsPerSample tag says how many | 8 | 8 or 10 | Whatever the camera recorded |
| White balance and look | Changeable afterwards | Fixed | Fixed | Changeable afterwards |
| Specification | Not published | Public standard | Public standard | Published by Adobe |
| Opens in browsers | No | Yes | Some | No |
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
- PRONOM: Panasonic Raw (fmt/662)
- ExifTool: PanasonicRaw tags
- libopenraw: Panasonic RAW and RW2 format notes
- Library of Congress: Camera Raw formats
- Apple: Digital camera RAW formats supported by iOS 26, iPadOS 26 and macOS 26
- Adobe: Digital Negative (DNG) and Adobe DNG Converter
Last reviewed 27 October 2026.