// blog
Open Camera RAW Files in a Browser: CR3, NEF, ARW, RAF and DNG
Open the file in the free AI Web Center image editor. Most RAW files (Canon CR2, CR3 and CRW, Nikon NEF and NRW, Sony ARW, Fujifilm RAF, Olympus and OM System ORF, Panasonic RW2, Pentax PEF) hold a JPEG the camera made, usually at full size, and the editor opens that, with the camera’s colors and orientation. A DNG without a full-size JPEG, such as one from a drone, an older iPhone or Adobe’s DNG Converter, is developed from its sensor data in the browser. Nothing is uploaded. We tested it on 26 real files from 26 cameras and phones.

A RAW file is what the camera’s sensor saw, before the camera turned it into a photo. Photographers keep them because there’s more in them to work with. But try to open one on a computer without the camera maker’s software, or on someone else’s computer, and often nothing happens.
Our image editor opens them in the browser now. Here’s how, and how we checked it.
Most RAW files carry a photo already
A RAW file isn’t only sensor data. Almost every camera also stores a JPEG it made from that data, for its own screen and for quick previews, and on most modern cameras it’s full size. Canon’s CR2 and CR3, Nikon’s NEF, Fujifilm’s RAF, OM System’s ORF: they all have one.
So for most files the editor finds that JPEG and opens it:
- It scans the file for every complete JPEG inside it: a start marker, its tables, a frame size, the image data and an end marker. A thumbnail, a medium preview, the full-size one.
- It skips the “lossless JPEG” some cameras keep the sensor data in, which isn’t a picture yet.
- It opens the largest, and turns it the way the camera was held, from the RAW file’s own orientation.
This takes a few hundredths of a second, even for a 30 MB file. The colors are the camera’s own, as it would have shown them.
DNGs need developing
DNG is Adobe’s open RAW format, used by Leica, Pentax, Ricoh, many phones and drones, and Adobe’s own DNG Converter. A DNG often carries only a small preview: our drone sample has a 960 × 720 one for a 4,024 × 3,016 photo. Opening that would be a step back.
So for a DNG without a full-size preview, the editor develops the sensor data itself, in the browser:
- Unpack the sensor values. Usually they’re compressed with lossless JPEG, so the editor has its own decoder for that, written from the JPEG standard’s chapter on lossless coding: Huffman-coded differences from a neighbor, seven ways of predicting.
- Scale them between the sensor’s black and white levels, through its linearization table if it has one.
- Demosaic. Each sensor pixel saw only red, green or blue, in a 2 × 2 pattern. The two missing colors come from the neighbors.
- White balance as shot, from the file’s AsShotNeutral.
- Color to sRGB with the file’s own color matrix, then brighten so the lightest 1% just reaches white.
- Crop to the camera’s default crop and turn it upright.
It’s a plain development, like a RAW converter’s starting point, and it takes one or two seconds for 12 to 21 megapixels. From there, Adjust and Auto fix take over.
The magenta bug
The first Canon 5D Mark II DNG we developed came out magenta, with a black strip along the top and left.
The black strip was the clue. Canon’s sensors have a border of masked pixels that never see light, used to measure the sensor’s black level. A DNG marks the real picture with an ActiveArea tag, and the color pattern starts at that area’s corner, not at the sensor’s. Our developer started counting at the sensor’s corner. With a border one pixel wide, every pixel’s color was read one place off: what was green was taken for red or blue, and a picture with too little green looks magenta.
Starting the pattern, and the crop, at the active area fixed both. A test now builds a small DNG with a masked edge and checks that red stays red.
What we tested it on
Code that opens camera files has to be tried on files from real cameras. We used three public collections:
- the 14 files RevelRaw publishes under CC0, copied from raw.pixls.us: Canon EOS R (CR3), 5D Mark IV (CR2) and D60 (CRW), Nikon Z6 (NEF) and Coolpix P1000 (NRW), Sony a7 III (ARW), DSC-R1 (SR2) and DSC-F828 (SRF), Fujifilm X-T4 (RAF), Panasonic G9 (RW2), OM System OM-1 (ORF), and DNGs from a Ricoh GR III, a DJI Mavic 3 Pro and an iPhone 12 Pro;
- the f-spot project’s raw-samples: Sony A700, Canon 350D and 400D, Leica M8, Nikon D90, Pentax K10D, Panasonic G1 and Leica Digilux 2;
- syoyo/raw-images: color-chart DNGs from a Canon 5D Mark II and an iPhone 7 Plus, a Canon 7D and a Nikon D610.
All of them open except the Leica Digilux 2, whose .RAW file has no JPEG inside and Panasonic’s own packing of the sensor data; the editor says it can’t open it. Sony’s ARW, SR2 and SRF open at the smaller JPEG Sony puts in them, and the editor shows the size. The DNGs from the Leica M8, the drone, the 5D Mark II and the iPhone 7 are developed from their sensor data. The color charts came out with the right colors.
One more thing the drone file showed: its Hidden data tab lit up. The DNG records where the drone was, to the meter. If you share drone photos, that’s worth knowing, and saving from the editor leaves it out.
Key takeaways
- Most RAW files carry a full-size JPEG; the editor opens it in a fraction of a second.
- DNGs without one are developed from the sensor data in the browser.
- Nothing is uploaded, and nothing is installed.
- Tested on 26 real files from 26 cameras and phones.
Frequently asked questions
Do I need to install anything?
No. Open the file in the image editor in any modern browser. It's read on your device and never uploaded.
Is it a full RAW converter?
No. For most cameras it opens the JPEG the camera made from the RAW data, so white balance and exposure are as the camera set them; you edit from there. Only DNGs without a full-size JPEG are developed from the sensor data, plainly, with the white balance they were shot with.
Why does my Sony ARW open small?
Many Sony cameras store only a 1,616 × 1,080 JPEG in their ARW files (older ones, 640 pixels), and their sensor data is in Sony's own format. The editor opens that JPEG and shows its size.
Which RAW files don't open?
A few formats with no JPEG inside and their own way of packing the sensor data, such as older Panasonic and Leica .RAW files. The editor says so instead of showing nothing.
































































































































