Editor's note: This month only – buy my new ebook Beyond The Camera for just $10! Click the link to learn more or buy. Thanks for reading, Andrew.
One reason that most photographers favor the Raw format is because of the extra bit depth contained in the file. This lets you take photos of a higher technical quality than you can obtain from a JPEG file. It also helps you create better quality photos with more shadow and highlight detail in Lightroom.

What is bit depth?
Computers (and devices that are run by built-in computers such as digital SLRs) use the binary number system. Binary numbers are constructed from two digits – 1 and 0 (the decimal system by contrast has ten numerals). A single digit in a binary number is called a bit (shortened from binary digit).
An eight bit binary number looks like this: 10110001 (equal to the decimal number 177). The table below shows how it works.

The highest possible eight bit number is 11111111 – or 255 in decimal notation. This is a significant figure to photographers since it crops up in many image editing programs and on old monitor displays.
Digital capture
Each of the millions of pixels in a digital photo corresponds to a photosite (also called a pixel) on the camera’s sensor. Photosites generate a small electric current when hit by light, which is measured by the camera and recorded in a JPEG or Raw file.
JPEG files
JPEG files record the color and brightness information for each pixel with three eight bit numbers, one for each of the red, green and blue channels (these color channels are the same as the ones you see in programs like Photoshop or in your camera’s color histogram display).
Each eight bit channel records color on a scale of 0-255, giving a theoretical maximum of 16,777,216 tones (256 x 256 x 256). The human eye can detect somewhere between 10 and 12 million colors, so this is more than sufficient information to record any subject.
This gradient has been saved in a 24 bit file (eight bits per channel), enough to render a smooth gradient.

This gradient has been saved as a 16 bit file. As you can see, 16 bits is not enough to render a smooth graduation.

Raw files
Raw files dedicate more bits to each pixel (most cameras have 12 or 14 bit processors). More bits means larger numbers and more tones per channel.
This doesn’t equate into more colors – JPEG files can already record more colors than the human eye can see. But each color is recorded with a much finer tonal graduation. The image is said to have greater color depth. The table below shows how bit depth equates into tones.

In-camera processing
When you set your camera to record photos in JPEG mode, the camera’s internal processor reads the information gathered from the sensor when you take a photo, processes it according to the parameters set in the camera menu (white balance, contrast, color saturation etc.) and records it as an eight bit JPEG file. The extra information gathered by the sensor is discarded and lost forever. In the end, you are only using eight bits out of the 12 or 14 bits of detail that the sensor is capable of capturing.
Bit depth in Lightroom
A Raw file is different from a JPEG because it contains all the data captured by the camera’s sensor during the exposure. When you develop a Raw file using Lightroom, the program is carrying out a similar conversion to that of the camera’s internal processor when you shoot JPEG. The difference is that you set the parameters within Lightroom, and the ones set in your camera’s menu are ignored.
The benefit of the extra bit-depth of the Raw file becomes apparent in post-processing. A JPEG file is all you need if you got exposure and all the other settings spot on when you took the image, and you don’t want to do any post-processing.
However, in real life most of us want to carry out at least a few adjustments, even if it’s just to the brightness and contrast. That’s where JPEG files start to fall down. With less information per pixel, the tones can separate as you carry out adjustments to brightness, contrast and color balance.
The result is most pronounced in areas of smooth continuous tone such as blue skies. Instead of an even graduation from light to dark, you’ll see banding patterns. This effect is also known as posterization. The further you push the adjustments, the more the image is affected.
The benefits of Raw
With a Raw file, you can make much greater changes to brightness, contrast and color tone before you see any breakdown in the image quality. It also enables some of the features that you find in Lightroom, such as white balance adjustment and highlight recovery.
Here’s a practical example. Take a look at this photo that I created using the Raw format, giving a 14 bit file.

I made a copy of the photo and saved at as an eight bit JPEG file. Then I processed it in Lightroom, raising contrast to add drama. The sample below (at 100% magnification) shows that the tones in the sky have broken apart and pixelated. This wouldn’t happen with a Raw file.

In short, working with Raw files in Lightroom eliminates, or at least minimizes, banding and posterization effects.
Saving JPEG files
When you’ve developed your photo in Lightroom you can save it as an 8 bit JPEG file. You won’t notice any difference in quality between an eight bit and a 16 bit file on your computer monitor. Nor will you notice a difference if it’s printed in a magazine or a book. The only exception is if you have a printer that recognizes 16 bit files. In this case, a 16 bit file may produce a better result.
However, if you plan to carry out more processing in Photoshop or a plugin, it’s advisable to save the image as a 16 bit TIFF file. In this case, an image that originated from a 12 or 14 bit sensor is stretched to fill the 16 bit file. You can then work on it in Photoshop, knowing that the extra bit depth will help you obtain maximum quality.
Again, when you have completed the editing process, you can save the file as an eight bit JPEG file. Magazines, book publishers and stock libraries (and just about any client purchasing photos) require eight bit images. 16 bit files may only by required if you (or someone else) intends to edit the file.
This is a photo that I took using the Raw+JPEG setting. The camera saved two versions of the file – a JPEG processed by the camera’s processor, and a Raw file containing all the information recorded by the camera’s 12 bit sensor.
These screenshots compare the top right hand corner of the processed JPEG and Raw files at 100% magnification. Both files were created by the camera from the same exposure. The only difference between them is the bit depth. I was able to pull back highlight detail from the Raw file in Lightroom that isn’t visible in the JPEG.

Why photographers use JPEG
It’s worth noting that not all professional photographers use the Raw format all the time. Both wedding and sports photographers, for example, often use the JPEG format.
For wedding photographers, who may shoot thousands of images at a wedding, this is to save time in post-processing.
Sports photographers use JPEG files so that they can send photos to their picture editors during a sports event. In both cases, the speed, efficiency and smaller file size of the JPEG format makes it the logical file type to use.
Bit depth and smartphone cameras
If you are able to use the DNG format with your smartphone camera then I strongly recommend that you do so (DNG stands for Digital Negative and is the most commonly used Raw format on smartphones). Your photos will have less noise and no smearing caused by in-camera high ISO noise reduction. They may require more work in Lightroom, but you’ll end up with a better quality image.
Here’s a photo I took at ISO 125 on an iPhone using the JPEG format. ISO 125 is fairly high for an iPhone (the lowest ISO setting is 25).

This 100% magnification from part of the image shows the smearing caused by the iPhone’s processing. It reminds me of the watercolor filters that photographers used in the early days of digital processing to make their photos look like paintings.

This photo was taken at ISO 250 using the DNG format. A smartphone camera is not the best tool for shooting in low light, but I wanted to test the camera under these conditions.

This is a 100% magnification of the photo after I developed in in Lightroom using the default noise reduction settings. There is plenty of noise (exaggerated by the increased Clarity needed to get the best out of iPhone files) but no smearing.

Bit depth in computer screens
Bit depth also refers to the depth of color that computer monitors are capable of displaying. It may be difficult to believe for readers who are used to modern displays, but the computers I used at school could display just two colors – white and black. I remember telling our computer studies teacher (a die hard IBM PC fan) that the latest Apple computers could display thousands of colors. His response? ‘That’s fine if you like colors’! It’s hard to imagine today, but it was amazing how closed some people’s minds were to the coming improvements in computer technology.
The must-have home computer at the time was the Commodore 64 – capable of displaying 16 colors. According to Wikipedia, this computer sold over 12 million units.
Clearly, you can’t edit photos on a machine with 16 colors (the 64 kilobytes of RAM wouldn’t have gone very far either). The development of 24 bit true color displays is one of the things that made digital photography possible. True color displays are, like JPEG files, generated from three colors (red, green and blue) each with a possible 256 values recorded in an eight bit digit. Most modern monitors use either 24 bit or 32 bit true color graphics.
HDR files
Many of you know that high dynamic range (HDR) images are created by combining two or more versions of the same image taken with different exposure settings. But, did you know that the software creates a 32 bit image with over four billion possible tonal values per channel per pixel? That’s quite a jump from the 256 tonal values in a JPEG file.
True HDR files such as this can’t be displayed on a computer monitor or the printed page. Instead, they are reduced to either eight or 16 bit files by a process called tone-mapping, that retains the characteristics of the original high dynamic range image.
Conclusion
Pixels and bits are the basic building blocks of digital images. It’s essential to understand the concept of bit depth if you want to get the best out of your camera. The Raw format produces the best quality image – you’ll see the benefits in Lightroom when you develop your photos.
3 comments
Color bit mapping is like the tonal gray scale in a b/w negative. You can not put all of the grays on a sheet of photographic paper. So you do the best you can to get from zone 1 to zone 10. There are so many variables in the image from how the camera takes in the image, how the monitor presents it to you, and how your software processes it in the final image. You can start out with a 14 bit 25 megapixel image and wind up with a 16 bit jpeg with Srgb color space.
Can you explain how this bit mapping overlaps with color space? Something I haven’t really been able to wrap my mind around. Isn’t color space three dimensional and in different settings (ie Srgb and Adobe Pro)
HI Christopher, no I can’t I’m afraid. I don’t even know if there is a relationship between the two.
Color space, in simplest terms, is the range of colors that a device can display. There are both 2D and 3D diagrams that show different color spaces.
If you add the three RGB values for a pixel you get the luminance, which is the monochrome ‘brightness’. It is as simple as that.
Of course there are complications because different mono films have different responses to different colours, so you can make weighted combinations of the three channels, and this is how filter emulations (e.g. on the OM-D M1) work.
When the signal is mapped into the Jpeg there are rules about the sensitivity/ response to each colour and these are differnt for different colour spaces. If you shoot jpeg the colour space is done in camera, if you shoot RAW you can set it in processing later.