RAW File Format Explained: Sensor Data and JPG Conversion

RAW is an unprocessed image format that captures the camera's sensor data directly, preserving maximum detail and editing flexibility. Unlike JPG, which is processed and compressed, RAW files contain the camera's raw sensor data before any color interpretation or compression. This makes RAW files substantially larger but gives photographers precise control over exposure, color, and contrast during editing.

What is RAW?

RAW is the raw, unprocessed data directly from a camera's sensor. When you take a photo in RAW format, the camera records the light captured by each photosite on the sensor without applying any in-camera processing, color interpretation, or compression. This is fundamentally different from JPG or PNG formats, which apply color interpretation and compression immediately.

The RAW data is captured using a Bayer filter pattern - a mosaic of red, green, and blue color filters placed over the sensor. Since each pixel captures only one color, the camera must use a process called demosaicing to interpret the full color information from neighboring pixels. In RAW files, this demosaicing is delayed until post-processing, giving you complete control over how the color information is interpreted.

RAW files typically store 12-16 bits of color information per channel (compared to JPG's 8 bits), capturing significantly more tonal and color detail. This extra data is what enables the flexibility and editing power photographers value.

Why RAW Files Are So Large

RAW files are substantially larger than JPG files because they store complete, uncompressed (or losslessly compressed) sensor data. A single RAW file from a 24-megapixel camera can be 30-80 MB, while a comparable JPG might be 3-8 MB - roughly 10 times smaller.

  • Each pixel stores 12-16 bits of data per color channel, compared to 8 bits in JPG
  • No lossy compression is applied, meaning every piece of captured data is preserved
  • RAW files include additional metadata like camera settings, lens information, and sensor telemetry
  • The unprocessed nature means the raw data from the Bayer filter includes redundant color information that gets interpreted during demosaicing

This large file size is the trade-off for having complete control over the post-processing workflow. For photographers shooting hundreds of images, storage becomes a significant consideration - check how file size limits might affect your workflow.

Why Photographers Prefer RAW

Professional photographers prefer RAW format because it provides unprecedented editing flexibility and preserves image quality. RAW files contain the maximum amount of data captured by the sensor, which translates to several key advantages.

  • Exposure latitude: RAW files typically capture 12-14 stops of dynamic range, allowing you to recover detail in overexposed or underexposed areas during editing
  • Color grading control: You can adjust white balance, saturation, and color information without degrading image quality, since you're working with unprocessed data
  • Detail preservation: With 16-bit color depth, RAW files support fine adjustments without banding or posterization
  • Non-destructive editing: RAW editing applications apply changes to the file's metadata without altering the original sensor data

Additionally, RAW files preserve camera metadata and EXIF data that document exactly how the photo was captured, making them invaluable for professional work and archival.

How to Convert RAW to JPG

Converting RAW to JPG involves demosaicing the Bayer filter data and applying color interpretation. You can use a dedicated RAW to JPG converter tool, your camera's built-in software, or popular photo editing applications like Lightroom or Capture One.

The conversion process typically involves these steps:

  • Load the RAW file into conversion software
  • Apply white balance adjustment (or use the camera's recorded white balance)
  • Adjust exposure, contrast, and color as desired
  • Apply demosaicing algorithm to convert Bayer filter data to full-color pixels
  • Compress and save as JPG format

During conversion, you lose the editing flexibility of the RAW format - the JPG becomes a fixed representation of your editing decisions. This is why photographers typically keep the RAW files for archival and editing, then export JPG versions for sharing and optimized compression.

Limitations and Considerations

While RAW format offers significant advantages, it comes with practical limitations that affect workflow and storage planning.

  • Large file sizes: RAW files require substantially more storage space than JPG or PNG, which can be expensive at scale
  • Processing power: Editing RAW files demands more CPU and RAM, and loading raw images on mobile devices can be slow
  • Limited compatibility: RAW files cannot be viewed or edited in standard image viewers; you need specialized software
  • Format fragmentation: Different camera manufacturers use different RAW formats, making long-term archival and compatibility challenging
  • Post-processing requirement: RAW files require deliberate editing to produce a finished image - they cannot be shared as-is

For casual photographers or mobile users, more accessible formats like JPG or PNG often make more practical sense unless post-processing flexibility is essential.

Common RAW File Formats

Different camera manufacturers use proprietary RAW formats. Understanding which RAW format your camera produces helps with software compatibility and long-term archival planning.

  • Canon: CR2 (Canon Raw 2) and CRW (older models)
  • Nikon: NEF (Nikon Electronic Format)
  • Sony: ARW (Sony Alpha Raw)
  • Fujifilm: RAF (Fujifilm Raw Format)
  • Panasonic/Lumix: RW2 (Raw 2)
  • DNG (Digital Negative): An open-source format developed by Adobe, supported across many cameras and software

DNG is increasingly popular for long-term archival because it's not proprietary to any single manufacturer. Many photographers convert their camera's native RAW format to DNG for storage, while keeping the original RAW file for reference. If you need to convert between formats, tools like Lightroom or dedicated converters can help streamline the process.

Ready to convert?
Free, no signup required. Files deleted in 24 h.
Start converting
Back to all FAQ