Camera RAW files such as CR2 and NEF: what they are and how to open or convert them
A RAW file is not a picture yet. It holds the readings from the camera sensor, and software has to develop them into a photo.
What a RAW file holds
When a camera saves a JPG, it decides the white balance, sharpening, contrast and colour, then throws the rest away. A RAW file keeps the sensor readings instead, usually 12 or 14 bits per pixel, so you can make those decisions later without losing quality. Each maker has its own RAW format.
| Extension | Camera maker |
|---|---|
| CR2, CR3 | Canon |
| NEF | Nikon |
| ARW | Sony |
| RAF | Fujifilm |
| ORF | Olympus and OM System |
| RW2 | Panasonic |
| DNG | Adobe, Leica, Pentax and many phones |
How to open a RAW photo
Windows 10 and 11 show most RAW files after installing the free Raw Image Extension from the Microsoft Store. On a Mac, Preview and Photos open them directly. For editing, use the camera maker's own app, Adobe Lightroom, or the free darktable and RawTherapee.
Converting RAW to JPG or PNG
Browsers cannot read RAW files, so web converters cannot develop them on your device. Open the RAW file in one of the apps above and export it as JPG or PNG. Once you have a JPG, every other conversion on this site works, for example JPG to PNG or JPG to WebP.
Converting a picture to RAW
It is not possible in any meaningful way. RAW is the record of a sensor at the moment of the shot. A JPG, PNG, HEIC or SVG has already been developed, and turning it back into sensor data would only invent numbers. If a print lab or editor asks for RAW, they need the original file from the camera.
Worked example: Why a 14-bit 24 MP Canon .CR3 or Nikon .NEF recovers blown highlights that a JPEG loses
Compare the dynamic range and byte math of shooting a sunset portrait in **RAW (.CR3 / .NEF / .ARW)** versus in-camera **8-bit JPEG** on a 24-megapixel (6,000 × 4,000) sensor:
- Bit depth per color channel: A standard JPEG stores **8 bits** per channel (
2^8 = 256brightness steps from black to white). A 14-bit camera RAW file stores **14 bits** per sensor photosite (2^14 = 16,384linear light levels)—**64 times more tonal gradations** (64 × 256 = 16,384). - Highlight recovery in Linear RAW: Because sensor response is linear, the brightest stop of light holds half of all 16,384 values (
8,192levels). Pulling exposure down by-1.5 EVin Darktable, RawTherapee, or Lightroom brings back cloud texture that was clipped to pure255, 255, 255white in the 8-bit camera JPEG. - File size trade-off: Losslessly compressed 14-bit RAW (
6,000 × 4,000) weighs **24 MB to 32 MB** per shot, whereas the camera's processed JPEG weighs **6 MB to 9 MB**.
Limits and what browser tools cannot do with RAW files
- Web browsers do not decode Bayer sensor arrays natively: HTML
<img>tags and browser canvas APIs cannot demosaic.CR2,.CR3,.NEF,.ARW,.ORF, or.RAFfiles directly without a dedicated RAW development engine. - Embedded JPEG preview vs full RAW sensor data: Every camera RAW file embeds a full-size or medium-size 8-bit JPEG preview inside its TIFF/EXIF wrapper so the camera's rear LCD screen can display the shot quickly. Fast viewer apps often show that embedded JPEG preview rather than developing the 14-bit sensor data.
Questions
What is a CR2 file?
A RAW photo from a Canon camera.
What is a NEF file?
A RAW photo from a Nikon camera.
Can I convert JPG to RAW?
No. RAW holds sensor data that a JPG no longer has.
How do I convert NEF or CR2 to JPG?
Open it in Photos, Preview, Lightroom or darktable and export it as JPG.
Why does my RAW photo look flat, dark, and less colorful than the camera JPEG when I first open it?
When your camera saves a JPEG, it automatically applies an aggressive S-curve contrast boost, saturation, noise reduction, and sharpening. A RAW file displays the unbaked sensor capture with a neutral tone curve so you have maximum headroom to grade shadows, highlights, and white balance yourself.
What free desktop programs can batch-convert CR2, CR3, NEF, and ARW to JPG or TIFF?
Darktable and RawTherapee (both free and open-source on Windows, macOS, and Linux), Apple Photos/Preview on macOS, and Adobe's free DNG Converter all batch-develop camera RAW files.
What is an Adobe DNG (.dng) file?
Digital Negative (.dng), created by Adobe based on TIFF/EP, is an open standardized RAW container used by Leica, DJI drones, Android Pro cameras, and Apple ProRAW so archival tools do not have to reverse-engineer hundreds of proprietary camera maker notes.
Related converters and guides
More guides
- Video sizes for Reels, Shorts and TikTokThe one export setting that works for all three apps, and the length limits that differ.
- Bitrate, resolution and file size: how they fit togetherThe sums behind video file size, and how to work back from a size limit.
- How to get a video under 16 MB for WhatsAppCompress it yourself or send it as a document, and what 16 MB allows at each length.