iLoveConverter
Categories 11 categories
Image RAWPhotography

The RAW Format: What Camera Sensor Data Actually Contains

iLoveConverter Team 4 min read

On this page

A RAW file is not a finished image. It is the sensor readout from a camera — one value per photosite, plus a description of how those values should be interpreted. Everything you see when you open a RAW file is the result of software deciding how to demosaic it, apply white balance, map tones and sharpen. That is why the same RAW can look dramatically different in two editors, and why converting RAW is less about format conversion than about choosing a rendering.

What is inside a RAW file

A typical RAW file contains:

  • A mosaic of single-channel samples. Each photosite recorded red, green or blue through a colour filter array (usually Bayer). The camera did not store three values per pixel.
  • Higher bit depth. Usually 12, 14 or 16 bits per sample, versus 8 bits in a JPG. That headroom is what makes highlight recovery possible.
  • Metadata. White balance as-shot, lens profile, ISO, exposure compensation, camera picture style — all recorded but not yet applied.
  • A preview image. The embedded JPG you see on the camera LCD and often in file browsers.

RAW is a family, not one format. Canon uses CR2 and CR3, Nikon NEF, Sony ARW, Fujifilm RAF, Olympus ORF, Panasonic RW2. DNG is Adobe’s attempt at an open, documented container that can hold the same data without camera-specific quirks.

RAW versus JPG

RAWJPG
Data per pixelOne 12–14 bit sample per photositeThree 8-bit values, compressed
White balanceAdjustable after the factBaked in
Highlight recoveryOften 1–2 stops availableLittle to none
File size20–60 MB typical3–10 MB typical
CompatibilityNeeds a converterUniversal

The JPG in your camera is a RAW file processed by the camera’s own software with settings you chose before pressing the shutter. It is convenient, fast and often very good — but the decisions are final.

What converting RAW actually does

A converter has to make the same decisions the camera would have made: demosaic the mosaic, apply a white balance, map 14-bit tones into an 8-bit display space, apply a tone curve and sharpen. Different converters make different choices, which is why “RAW conversion” results vary.

When you convert to JPG, you keep the rendering and discard the latitude. When you convert RAW to PNG, you keep the rendering in a lossless container — larger, but safe for further editing. Neither output is “the RAW file, just smaller”; both are interpretations.

Why convert RAW at all

  • Sharing and printing. Almost nothing outside photography software opens CR3 or NEF. JPG opens everywhere.
  • Fast review. A contact sheet of JPGs is easier to sort than a folder of 40 MB files.
  • Archiving a keepable copy. A PNG preserves the chosen rendering without further lossy compression.
  • Document delivery. RAW to PDF puts the image on a page for printing or sending to someone who only needs the picture.

What you cannot get back

Once a RAW is converted to an 8-bit format, the extra dynamic range and colour precision are gone. If you later decide the white balance was wrong, the information needed to fix it properly is no longer there. Keep the original RAW if the photo matters.

Also note that browser-based converters use a general-purpose demosaic and tone curve. They do not reproduce Canon’s or Nikon’s proprietary colour science, so the result may look flatter than the camera’s JPG. That is a difference in rendering, not a defect in the conversion.

FAQ

Is RAW higher quality than JPG?

It contains more data, not automatically a better-looking picture. RAW gives you room to make better decisions; JPG is a decision already made. For a well-exposed photo in good light, the visible difference after careful processing is small.

Can I open a RAW file in a browser?

Some formats can be decoded, but support is uneven and slow because RAW decoding is heavy. For everyday use, convert once to JPG or PNG and work with that.

What is DNG?

DNG is Adobe’s open RAW container. It stores the same sensor data with documented metadata, which makes it more future-proof than vendor-specific formats. Not every camera writes DNG natively.

Why does my converted RAW look duller than the camera JPG?

The camera applied its own contrast, saturation and sharpening. A neutral converter does not guess those choices. Add contrast and saturation yourself, or use the camera’s own software when matching its look matters.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: RAW (.dng.cr2.cr3.nef.arw.rw2.orf.raf.srw) , JPG (.jpg.jpeg.jpe)