RAW vs JPEG: what is the difference?
A JPEG is a finished picture. A RAW file is what the camera's sensor recorded, before the camera turned it into a picture. Here is what that means in practice, which RAW formats exist, and how to edit RAW photos without installing anything.
What is a RAW file?
A RAW file (often written "raw"; it is not an abbreviation) holds the light values that each pixel of the sensor measured, usually with 12 or 14 bits per value, together with the camera settings and a JPEG preview. Most sensors see only one colour per pixel, through a grid of colour filters, so a RAW file is not yet a picture: software has to fill in the missing colours (demosaicing), set the white balance, map the brightness to a screen, and sharpen and reduce noise. When people ask "what is a RAW photo", they mean a picture developed from such a file, either by the camera or by a RAW photo editor.
RAW vs JPEG at a glance
- Tonal steps: a JPEG stores 8 bits per colour channel, 256 levels. A RAW file usually stores 12 or 14 bits, 4,096 or 16,384 levels, so strong edits leave fewer bands in skies and less noise in lifted shadows.
- White balance: in a JPEG it is baked in. With RAW you set it afterwards, without any loss.
- Highlights and shadows: a RAW file usually holds detail beyond what the JPEG shows, so a bright sky can be brought back and dark areas opened up further.
- Processing: the camera's sharpening, noise reduction and colour style are fixed in the JPEG. With RAW you choose them, and you can choose again later.
- Size and convenience: RAW files are several times larger and need a RAW editor before you can share them. A JPEG opens everywhere, straight away.
When JPEG is enough, and when to shoot RAW
JPEG is fine when the light is easy, you need the pictures at once, or storage is tight. RAW pays off in high-contrast scenes, mixed or difficult light, at night and at high ISO, and for any photo you plan to print large or edit seriously. Many cameras can save both at once (RAW + JPEG). RawJock's library can then show the pair as one photo, and you choose whether it shows the RAW, the JPEG or both.
RAW file formats and extensions
- Canon: .CR3, before it .CR2, and the old .CRW (what is a CR3 file)
- Nikon: .NEF, and .NRW on some compacts (what is a NEF file)
- Sony: .ARW, on older models .SRF and .SR2 (what is an ARW file)
- Fujifilm: .RAF (what is a RAF file)
- OM System and Olympus: .ORF
- Panasonic: .RW2; some Leica compacts .RWL
- Pentax: .PEF, or DNG if you choose it
- Hasselblad and Phase One: .3FR and .IIQ
- Leica, phones and drones: .DNG (what is a DNG file)
- Others: .SRW (Samsung cameras), .GPR (GoPro), .X3F (Sigma Foveon)
RAW on an iPhone or Android phone
Phones shoot RAW too, and they save it as DNG. On an iPhone it is called ProRAW: a DNG in which the phone has already combined several frames and filled in the colours, but which still keeps the wide tonal range and lets you set the white balance later. Many Android phones save DNG in their Pro or RAW mode. RawJock opens these files like any RAW, including the lens and shading corrections the phone stores in them. More in editing RAW on a phone.
How to edit RAW photos
- Open RawJock and drop a RAW file onto the page. The camera's preview appears at once and the full RAW data replaces it a moment later.
- In the Basic panel set the white balance (or click something neutral with the eyedropper), then exposure, contrast, highlights and shadows. The Camera button matches the brightness of the camera's own JPEG.
- Add colour, detail, noise reduction, lens corrections or masks as the photo needs. Press B at any time to compare with the original.
- Press Export and choose JPEG, the size and the colour space. Export always renders from the full RAW data.
Questions
Is RAW better than JPEG?
For editing, yes: RAW keeps more tonal steps, more highlight and shadow detail, and lets you set the white balance afterwards. For sharing straight from the camera, JPEG is easier. Shooting RAW + JPEG gives you both.
What is a raw photo?
A photo stored as the sensor's unprocessed data instead of a finished picture. It has to be developed in a RAW editor, which you can do again and again with different settings without losing quality.
Can I convert RAW to JPEG without losing quality?
Yes. Develop the RAW and export a JPEG at full resolution and high quality. The original RAW stays as it is, so you can export again later with other settings. In RawJock, batch export converts a whole selection with one preset.
Why do RAW files look different from the camera's JPEG?
The JPEG carries the camera's own colour style, contrast and sharpening, and some highlight-protection modes make the RAW data darker than the JPEG. RawJock reads these modes (for example Canon HTP, Fujifilm DR200 / DR400 or Nikon Active D-Lighting) and opens the RAW as bright as the camera's picture.
Does iPhone shoot RAW?
Yes. iPhone Pro models can save ProRAW, a DNG file, and third-party camera apps can save plain RAW DNGs on many iPhones. Both open in RawJock.