RAW vs. JPEG
RAW and JPEG are the two main formats in which a camera saves photos.
Also known as: RAW or JPEG, RAW vs JPG
RAW and JPEG are the two main formats in which a camera saves photos. RAW keeps all the unprocessed information captured by the sensor, like a digital negative: it offers the most room to adjust exposure and white balance and to recover detail when editing, at the cost of large files that need to be developed afterward. JPEG is a file already processed and compressed by the camera: it takes up much less space and is ready to share immediately, but it has far less editing room because the color and contrast decisions come already "baked in".
A JPEG is not a worse RAW: it is a RAW already developed by the camera, with the rest of the data thrown in the trash.
What exactly is lost when you save a JPEG?
Property: Bit depth; In RAW: 12 – 14 bits (4,096 – 16,384 levels); In JPEG: 8 bits (256 levels)
Property: White balance; In RAW: One instruction, changed at no cost; In JPEG: Applied and baked in
Property: Highlight recovery; In RAW: Around 1 stop; In JPEG: Practically nothing
Property: Shadow recovery; In RAW: 2 stops with tolerable noise; In JPEG: Banding from 1 stop
Property: Sharpening and noise reduction; In RAW: You apply them when developing; In JPEG: Already applied and not reversible
Property: Color profile or simulation; In RAW: Reversible; In JPEG: Fixed
Property: Size on the card; In RAW: Considerably larger, depending on camera and scene; In JPEG: Smaller
The 256 levels of a JPEG are enough to look at the photo and too few to edit it: as soon as you stretch a gradient sky, banding appears, because there are no intermediate values to put between one level and the next.
When does each format make sense?
Situation: Wedding or event; Format: RAW or RAW + JPEG; Reason: The light changes and there is no second take
Situation: Sports with immediate delivery; Format: JPEG; Reason: Long bursts and delivery come first
Situation: Backlit landscape; Format: RAW; Reason: All the highlight room counts
Situation: Astrophotography; Format: RAW; Reason: It gets stacked and stretched a great deal
Situation: Inventory, documentation, catalog; Format: JPEG; Reason: Nobody is going to develop 400 product shots
Situation: Long trip without gear to offload; Format: High-quality JPEG; Reason: The card is the real limit
There is an added technical reason for sports: RAW fills the buffer sooner and shortens the burst. If your camera holds twice as many consecutive shots in JPEG, that difference decides more games than bit depth does.
What about shooting RAW + JPEG at the same time?
It is the sensible option when you need to deliver something today and keep the room for tomorrow: the JPEG comes out of the camera ready for a preview or for the client, and the RAW stays archived. The cost is using card and disk space twice and having two files per photo that you have to pair up when cataloging.
If you choose this route, watch the camera's picture settings: they affect the JPEG and the preview you see on screen, so a very contrasty profile makes you misjudge the exposure of the RAW.
Common mistakes
Shooting JPEG in mixed light. A room with tungsten and a window leaves a white balance that is impossible to get right in camera, and in JPEG that decision can no longer be touched. It is the case where RAW pays for itself.
Re-editing and re-saving the same JPEG. Every save recompresses with loss and degrades it a little more. If you have to work on a JPEG, export to TIFF or PNG while you edit and compress only once at the end.
Expecting the RAW to look better on screen. Freshly imported it looks flat, soft and less saturated than the JPEG, because nobody has yet applied the decisions the camera applies by itself. That flatness is the room to work with, not a defect.
To decide based on your workflow, see the guide to RAW vs JPEG, the one on file management and workflow and the article landscape editing: full workflow in Lightroom.