You take a photo, plug your memory card into your laptop, and find a file ending in CR2, NEF, ARW or DNG that refuses to open in your photo viewer. That mysterious file is a camera RAW file, and understanding what a RAW file actually is will change how you think about every photo you take. A RAW file is not a picture in the way a JPG is. It is the raw, minimally processed data straight off your camera's image sensor, before any of the decisions that turn sensor readings into a viewable photograph.

In this article we will open the hood and explain exactly what sits inside a RAW file, why it carries so much more flexibility than a JPEG, and how you can turn it into a shareable image with the free RAW to JPG converter from jpeg2raw whenever you need a finished file.

What is a RAW file at the data level

A digital camera sensor is a grid of millions of light-sensitive photosites. Each photosite counts photons during the exposure and produces an electrical charge proportional to the brightness it saw. A RAW file is, at its heart, a near-direct dump of those brightness counts, plus a generous block of metadata. It has not yet been turned into a color image, sharpened, color-corrected or compressed in a lossy way.

Critically, each photosite is colorblind. It only measures total light, not color. To capture color, manufacturers place a tiny colored filter over each photosite, arranged in a repeating pattern called a Bayer array: rows alternate between red and green, then green and blue. So roughly half the photosites see green, a quarter see red, and a quarter see blue. The RAW file therefore contains a single grayscale mosaic where each pixel only knows the intensity of one color. Reconstructing a full-color image from this mosaic is a process called demosaicing, explained in detail in our article on how demosaicing works.

Why a RAW file is not a finished photograph

When you see a colorful preview on the back of your camera, you are not looking at the RAW data directly. You are seeing a small JPEG thumbnail the camera generated and embedded inside the RAW file for convenience. The actual RAW data underneath is flat, grayish and uninterpreted. Several steps must happen before it becomes the image you expect:

  • Demosaicing fills in the two missing color channels at each pixel.
  • White balance corrects the color cast of the light source so whites look white.
  • Tone curve and gamma reshape the sensor's linear data into pleasing contrast.
  • Color rendering maps sensor colors into a standard space like sRGB.
  • Sharpening and noise reduction clean up the final image.

A JPG has already had all of these decisions baked in permanently. A RAW file keeps them open, which is precisely why photographers value it.

Bit depth: the hidden superpower of RAW

One of the most important differences between RAW and JPEG is bit depth. A JPEG stores 8 bits per color channel, giving 256 brightness levels per channel. Most cameras record RAW at 12 or 14 bits, which means 4,096 or 16,384 levels per channel. That is dozens of times more tonal information.

This extra data is what lets you rescue a photo. Recovering a blown-out sky, lifting deep shadows, or correcting a badly wrong white balance is possible with RAW because the file retains tonal detail far beyond what any single 8-bit export shows. Push a JPEG the same way and it bands, posterizes and falls apart, because there simply are not enough levels to redistribute. If you intend to edit heavily after conversion, you may want to develop into a 16-bit TIFF, as covered in our RAW to TIFF for editing guide, using the RAW to TIFF converter.

White balance is stored, not applied

In a JPEG, white balance is locked in. If your camera guessed wrong and your indoor shot came out orange, fixing it later is a destructive struggle. In a RAW file, white balance is recorded only as metadata, a suggested setting. The underlying red, green and blue measurements are untouched. That means you can choose any white balance during conversion with zero quality loss, as if you had set it perfectly at capture time. This single property saves countless photos shot under mixed or tricky lighting.

RAW versus JPEG: a quick comparison

It helps to see the two side by side:

  • Bit depth: RAW 12 to 14 bits; JPEG 8 bits.
  • Compression: RAW is lossless or visually lossless; JPEG is lossy.
  • White balance: adjustable freely in RAW; baked in for JPEG.
  • File size: RAW is large, often 20 to 60 MB; JPEG is small.
  • Compatibility: RAW needs special software; JPEG opens everywhere.
  • Editing latitude: RAW is huge; JPEG is limited.

For a full treatment of when each makes sense, read RAW vs JPEG photography. The short version: shoot RAW to capture maximum data, then convert to JPEG when you are ready to share.

Why every brand has its own RAW format

There is no single universal RAW file. Each manufacturer designs its own container to match its sensors and processing: Canon uses CR2 and CR3, Nikon uses NEF, Sony uses ARW, Fujifilm uses RAF, and so on. The data inside is conceptually similar, but the wrapper, compression scheme and metadata layout differ, which is why a generic image viewer cannot open them. Adobe created DNG as an open, documented RAW container to reduce this fragmentation, which we cover in DNG explained.

Because proprietary formats change with each camera generation, photographers worry about long-term access to their files. Converting your masters to a standardized format, or at least keeping a TIFF or DNG copy of important shots, is a sensible archival habit.

RAW as your digital negative

The most useful mental model for a RAW file is the film negative. A negative is not the photograph you hang on the wall; it is the master from which any number of prints can be made, each interpreted differently in the darkroom. A RAW file plays exactly this role in digital photography. The same RAW can yield a warm, moody interpretation today and a bright, neutral one tomorrow, because none of those choices are baked in. You always return to the same untouched source.

This is why preserving RAW files is so valuable. Conversion software improves over time, demosaicing algorithms get smarter, and your own taste evolves. A RAW file lets you benefit from all of that later, re-developing an old shot with better tools or a fresh eye. A JPEG, having locked in every decision at the moment of capture, offers none of this. Treating your RAW files as archival negatives, backed up and never overwritten, protects the full potential of every image you take.

How to open and use a RAW file

You cannot email a RAW file and expect the recipient to view it, and most websites will not accept one. To make it usable, you convert it. The process is simple with the right tool:

  1. Upload your CR2, NEF, ARW or DNG to the converter.
  2. Adjust white balance and exposure on the preview.
  3. Choose JPG for sharing or TIFF for further editing.
  4. Download the finished file and archive the original RAW.

If you already have JPGs and want to move them into a lossless container for print or layered editing, the JPG to TIFF converter handles that direction too.

The bottom line on RAW files

A RAW file is the digital equivalent of a film negative: not the final image, but the complete record from which any number of final images can be made. It stores the sensor's untouched color-mosaic data at high bit depth, leaving white balance, tone and color open for you to decide. That flexibility is the whole point. When you are ready to share, develop it with the free RAW to JPG converter, keep the original as your negative, and you will always be able to return for a better interpretation later.