What Is a RAW Image? Everything Photographers Need to Know
A RAW image file is exactly what it sounds like: raw, unprocessed data straight from your camera's sensor. No sharpening applied, no white balance baked in, no contrast curve decided for you. The camera captures everything the sensor saw and hands you the full dataset to process however you want.
That's the appeal — and the complication. RAW files give you maximum editing flexibility, but they're large, incompatible with most apps, and require conversion before you can share them anywhere. This guide covers how RAW files work, when they're worth the hassle, and how to convert them into formats the rest of the world can actually open.
RAW vs JPEG: The Core Trade-Off
Every digital camera can shoot in two modes: RAW or JPEG (most default to JPEG). The difference is about who processes the image — the camera or you.
When you shoot JPEG, the camera takes the sensor data, applies white balance, sharpening, noise reduction, contrast, and color saturation, compresses the result using lossy compression, and saves a finished 8-bit image. The processing happens in milliseconds. The file is small. The image is ready to share.
When you shoot RAW, the camera skips all of that. It saves the sensor data with minimal processing — typically just basic noise reduction at the analog level. Everything else is left for you to decide in post-processing software.
| Feature | RAW | JPEG |
|---|---|---|
| File size | 20-80 MB per image | 2-8 MB per image |
| Color depth | 12-bit or 14-bit (4,096-16,384 tones per channel) | 8-bit (256 tones per channel) |
| Editing flexibility | Extensive — recover 2-3 stops of exposure, shift white balance freely | Limited — aggressive edits cause banding and artifacts |
| Compression | Lossless or minimally compressed | Lossy — data permanently discarded |
| Compatibility | Requires dedicated software or conversion | Opens everywhere — browsers, phones, social media |
| Sharing ease | Must convert first | Ready immediately |
| Processing required | Yes — you develop the image | No — camera handles it |
| Write speed | Slower (larger files fill the buffer) | Faster |
The short version: JPEG is a finished print. RAW is the negative.
Need to convert image formats?
Pixotter converts PNG, JPG, WebP, and AVIF instantly in your browser — free, no upload needed.
Try it yourself
Convert between any image format instantly — free, instant, no signup. Your images never leave your browser.
How RAW Files Work
Understanding what's inside a RAW file explains both its power and its limitations.
The Sensor and the Bayer Filter
Your camera's image sensor is a grid of millions of photosites (pixels), each measuring light intensity. But individual photosites are colorblind — they only measure brightness, not color.
To capture color, nearly all digital cameras place a Bayer filter over the sensor: a mosaic pattern of red, green, and blue filters arranged so that each photosite only sees one color. The pattern uses twice as many green filters as red or blue because the human eye is most sensitive to green light. In a standard Bayer array, 50% of the photosites capture green, 25% capture red, and 25% capture blue.
A 24-megapixel sensor doesn't actually capture 24 million full-color pixels. It captures 24 million single-color brightness values arranged in this mosaic pattern.
Demosaicing
The process of reconstructing a full-color image from the Bayer mosaic is called demosaicing (also spelled demosaicking). For each pixel in the final image, the algorithm estimates the two missing color channels by interpolating from neighboring photosites.
When you shoot JPEG, the camera's internal processor runs demosaicing and produces the final image before saving. When you shoot RAW, the file contains the pre-demosaicing mosaic data (or sometimes a lightly demosaiced version, depending on the camera). Your RAW processor — Adobe Lightroom Classic 13.x, darktable 4.6, Capture One 16, or RawTherapee 5.10 — runs its own demosaicing algorithm, which is often better than what the camera does internally.
This is one reason RAW files can look flat and slightly soft when first opened: you're seeing the unprocessed data before a demosaicing algorithm and rendering pipeline have been applied.
What a RAW File Actually Contains
A RAW file packages several pieces of data:
- Sensor data — the raw photosite values, typically at 12-bit or 14-bit depth
- Metadata — camera model, lens information, ISO, shutter speed, aperture, GPS coordinates (if enabled), timestamp
- Embedded JPEG preview — a small, camera-processed JPEG for quick thumbnail display
- Camera settings as tags — white balance, picture style, color space, and other in-camera settings are stored as metadata, not applied to the pixel data. This is why you can change white balance on a RAW file after the fact with zero quality loss.
The bit depth matters enormously. A 14-bit RAW file captures 16,384 brightness levels per color channel. An 8-bit JPEG captures 256. That 64x difference in tonal resolution is what gives RAW files their editing headroom — you can push exposure, recover highlights, and pull shadow detail without the image falling apart.
RAW Formats by Camera Brand
"RAW" is not a single format. Every camera manufacturer uses its own proprietary RAW format with its own file extension. They all store similar data, but the internal structure, compression methods, and metadata layout vary.
| Brand | RAW Format | Extension | Notes |
|---|---|---|---|
| Canon | CR2 / CR3 | .cr2 / .cr3 |
CR3 introduced with EOS R system (2018+). CR2 used on older DSLRs. |
| Nikon | NEF | .nef |
Nikon Electronic Format. Supports lossless, lossy, and uncompressed modes. |
| Sony | ARW | .arw |
Alpha RAW. Used across all Alpha mirrorless and SLT cameras. |
| Fujifilm | RAF | .raf |
Uses X-Trans sensor pattern (not Bayer) on most X-series bodies, requiring specialized demosaicing. |
| Olympus / OM System | ORF | .orf |
Olympus Raw Format. Continued under the OM System brand after Olympus sold its camera division in 2021. |
| Panasonic | RW2 | .rw2 |
Used across Lumix G (Micro Four Thirds) and Lumix S (full-frame) systems. |
| Pentax | PEF / DNG | .pef / .dng |
Pentax offers in-camera DNG as an alternative to their proprietary PEF format. |
| Leica | DNG / RWL | .dng / .rwl |
Most Leica digital cameras save DNG natively. |
| Adobe | DNG | .dng |
Digital Negative — an open, documented RAW format intended as a universal standard. |
Adobe DNG: The Universal Alternative
Adobe introduced the Digital Negative (DNG) specification in 2004 to solve the compatibility chaos. DNG is an open, publicly documented RAW format based on TIFF/EP. Any software that supports DNG can read it without needing camera-specific decoders.
Some cameras (Leica, Pentax, some smartphones) save DNG natively. For all others, Adobe provides a free DNG Converter (version 16.2 as of early 2026) that converts proprietary RAW files to DNG. Many photographers convert their archives to DNG for long-term preservation — the logic being that an open, documented format is safer than a proprietary format that might lose software support.
The trade-off: DNG files are sometimes 10-20% larger than the proprietary original, and conversion adds a step to your workflow. Whether the archival benefit justifies that cost depends on how long you plan to keep your photos.
When to Shoot RAW vs JPEG
Shoot RAW when you care about editing latitude and archival quality. Shoot JPEG when speed and convenience matter more. Here's the decision framework:
Shoot RAW When:
- Post-processing is part of your workflow. Landscape, portrait, architectural, product, and editorial photography all benefit from RAW's editing headroom. Recovering a blown highlight or correcting mixed lighting is straightforward in RAW and destructive in JPEG.
- Lighting is tricky. High dynamic range scenes (bright sky, dark foreground), mixed artificial lighting, and backlit subjects all create situations where you'll want to adjust exposure and white balance after the fact.
- Color accuracy matters. Product photography, artwork reproduction, and any work destined for print benefits from 14-bit color data and the ability to apply precise color profiles.
- You're archiving. RAW is the master file. You can always generate a JPEG from RAW, but you can never recover RAW-level data from a JPEG.
Shoot JPEG When:
- Speed is critical. Sports, events, and photojournalism often demand fast burst shooting and immediate delivery. RAW files fill the camera's buffer faster and take longer to transfer.
- The images won't be heavily edited. Casual snapshots, documentation photos, and reference images that just need to look "good enough" don't benefit from RAW's editing latitude.
- Storage is limited. A 64 GB card holds roughly 1,000 RAW files or 8,000+ JPEGs from a 24-megapixel camera. On a long trip without backup storage, JPEG's smaller size is a practical advantage.
- You need instant sharing. Social media posts, quick emails, and messaging apps need files that work immediately. RAW requires a conversion step.
Many cameras offer a RAW + JPEG mode that saves both simultaneously — a JPEG for immediate use and a RAW for later processing. The downside is doubled storage usage and slightly slower write speeds.
How to Open and Convert RAW Files
RAW files don't open in web browsers, most email clients, or basic image viewers. You need software that includes a RAW decoder for your camera's format.
Desktop RAW Processors
| Software | Version | License | Supported Formats |
|---|---|---|---|
| Adobe Lightroom Classic | 13.x | Subscription ($9.99/mo Photography plan) | All major RAW formats via Camera Raw |
| darktable | 4.6 | GPL v3 (free) | 600+ camera models |
| RawTherapee | 5.10 | GPL v3 (free) | 600+ camera models |
| Capture One | 16 | Subscription or perpetual license | All major RAW formats |
Quick Conversion Methods
For batch or scriptable RAW-to-JPG conversion, dcraw 9.28 (public domain) and ImageMagick 7.1 (Apache 2.0) both handle RAW files from the command line. See our complete RAW to JPG conversion guide for step-by-step instructions with all five methods.
For Canon-specific conversion, see our CR2 to JPG guide. Nikon shooters can follow the NEF to JPG guide, and Sony users can check the ARW to JPG guide.
Mobile RAW Support
Both iOS (via Apple ProRAW on iPhone 12 Pro and later) and Android (via camera apps like Open Camera 1.52 that support the Camera2 API) can capture and process RAW/DNG files. Adobe Lightroom Mobile (iOS/Android) opens and edits RAW files on both platforms. Snapseed 2.21 handles DNG files for quick mobile edits.
RAW File Sizes and Storage
RAW files are large because they contain uncompressed (or lightly compressed) high-bit-depth data. Here's what to expect from current camera sensors:
| Sensor Resolution | Typical RAW File Size | Equivalent JPEG (quality 85) |
|---|---|---|
| 20 MP | 20-25 MB | 3-5 MB |
| 24 MP | 25-35 MB | 4-6 MB |
| 45 MP | 45-60 MB | 8-12 MB |
| 61 MP (Sony a7R V) | 60-120 MB | 15-25 MB |
Some cameras offer compressed RAW options that reduce file size by 30-50% with minimal quality impact. Nikon's NEF format, for example, supports three modes: uncompressed, lossless compressed (roughly 50-60% of uncompressed size), and lossy compressed (roughly 40-50%). For most work, lossless compressed RAW is the best balance.
Storage Strategy
A working photographer shooting 500 RAW files per session at 30 MB each generates roughly 15 GB per shoot. At that rate:
- A 256 GB CFexpress card holds about 16 sessions
- A 4 TB external SSD holds about 260 sessions (roughly a year of weekly shooting)
- Cloud backup at $0.004/GB/month (Backblaze B2 pricing) costs about $16/month for 4 TB
The editing overhead matters too. Catalog files, previews, and exported JPEGs typically add 30-50% on top of the RAW storage. Budget accordingly.
For strategies on managing large image files across your workflow, see how to reduce image size.
RAW vs TIFF: Which for Archiving?
Photographers sometimes ask whether TIFF is better than RAW for long-term storage. The answer depends on what you're preserving.
RAW preserves the original capture — all sensor data, maximum bit depth, and the flexibility to re-process the image from scratch with future software improvements. A RAW file processed in darktable 4.6 might look different (and better) than the same file processed in darktable 3.0 because the demosaicing algorithms improve.
TIFF preserves a specific rendering. When you process a RAW file and export to 16-bit TIFF, you're saving the result of your editing decisions at a high quality level. The TIFF is larger than the RAW file, but it's universally readable and doesn't require camera-specific decoders.
The common archival strategy: keep the original RAW files as master negatives, and export processed versions as TIFF for delivery or print. For web publishing, convert to JPG or PNG depending on the content, or to WebP or AVIF for optimal performance.
Understanding Image Resolution and RAW
A camera's megapixel count determines the resolution of its RAW files, but megapixels alone don't define image quality. A 24 MP full-frame sensor captures the same pixel count as a 24 MP smartphone sensor, but the full-frame sensor has physically larger photosites that collect more light per pixel. That translates to better dynamic range, lower noise at high ISO, and more usable data when you push exposure in post-processing.
RAW files preserve this advantage. A JPEG from the same camera discards much of the dynamic range and color depth the sensor captured. If you're investing in quality glass and a capable sensor, shooting JPEG throws away some of what you paid for.
Frequently Asked Questions
Can I convert RAW to JPEG without losing quality?
You will always lose some data going from RAW to JPEG because JPEG is an 8-bit, lossy format and RAW is 12-14 bit and uncompressed. But a well-processed RAW file exported to JPEG at quality 92-95 produces results visually indistinguishable from the best possible in-camera JPEG. The goal isn't to avoid all data loss — it's to control the conversion yourself instead of letting the camera decide. See our RAW to JPG conversion guide for the best methods.
Do phone cameras shoot RAW?
Yes, but with caveats. iPhones from the 12 Pro onward support Apple ProRAW (a DNG-based format). Android phones with Camera2 API support can capture DNG files through apps like Open Camera 1.52 or Halide 2.12. Phone RAW files are typically 10-25 MB and offer meaningfully more editing flexibility than the phone's default HEIC or JPEG output — though the difference is less dramatic than on dedicated cameras because phone sensors are physically small.
Is RAW always better than JPEG?
No. RAW is better when you plan to edit, need maximum quality, or want archival flexibility. JPEG is better when you need speed, small files, and universal compatibility. Shooting every casual snapshot in RAW creates storage and workflow overhead with minimal benefit. Choose based on the purpose of the photo, not a blanket rule.
How do I view RAW files on Windows?
Windows 10 and 11 support RAW file thumbnails and preview through the Microsoft Raw Image Extension (free from the Microsoft Store). For full editing, use darktable 4.6, RawTherapee 5.10, or Adobe Lightroom Classic 13.x. Windows Explorer will show previews of most common RAW formats once the extension is installed.
How do I view RAW files on Mac?
macOS has built-in RAW support through Core Image. Preview, Quick Look, and Photos all display RAW files from most major camera brands. For processing and editing, use the same desktop applications listed above. Apple's Core Image framework is updated with each macOS release to add support for newer camera models.
Why do my RAW files look dull when I first open them?
The camera-generated JPEG preview embedded in the RAW file is what you see on the camera's LCD screen — it has the camera's processing (contrast, saturation, sharpening) baked in. When your RAW editor opens the actual sensor data, it applies its own default rendering, which is deliberately neutral. The flat look is a starting point, not the finished result. Apply your preferred tone curve, adjust contrast, and the image will match or exceed what the camera showed.
Are RAW files lossless?
The sensor data in a RAW file is captured without lossy compression — every value the sensor recorded is preserved. Some cameras offer a "lossy compressed RAW" option (Nikon NEF, for example) that applies light compression, discarding data the manufacturer considers visually insignificant. Lossless compressed RAW is the most common default — it reduces file size by 30-50% without discarding any data, using algorithms similar to lossless compression in other formats.
Should I shoot RAW + JPEG or just RAW?
RAW + JPEG is useful when you need an immediate-use file (for quick sharing or proofing) alongside a master file for later processing. The downside is roughly doubled storage consumption. If your workflow always includes a processing step before delivery, shooting RAW-only is cleaner and more storage-efficient. If you frequently need to share images immediately after shooting — events, photojournalism, social media — RAW + JPEG saves a conversion step under time pressure.
Try it yourself
Ready to convert formats? Drop your image and get results in seconds — free, instant, no signup. Your images never leave your browser.