Which File Format File Format Is Best - JPG or RAW? :: Digital Photo Secrets

Which File Format File Format Is Best - JPG or RAW?

by David Peterson 0 comments

Most modern digital cameras give you a choice of file formats when saving your image. It's very helpful to know the benefits (and disadvantages) of each file format so you can make the best decision on the file format to save your images in.

Why do we need file formats?

A standard photo taken with a 16 megapixel camera has 16 million little pixels, or pieces of information, that comprise the image. Each of those pieces needs to store a red, green and blue color value so the color of the pixel can be recreated by a computer. Each color value records the strength of that color on a scale from 1 to 256.

This is a lot of information! Each pixel needs three bytes to store the three color values, and there are 16 million pixels. 16 million times 3 is around 48 million bytes, or 48 Megabytes.

If each image took 48 Megabytes of storage, you’d run out of space pretty quickly on your memory card! So the file formats used to save images compress the image down to a smaller, more manageable, size.


The JPEG, or JPG format was invented to help make image sizes more manageable. JPEG is the most popular format used in digital cameras today because it’s a simple and versatile format, and is supported by all image related software.

JPEG works by compressing the image to a much smaller size at the expense of some image quality. Normally you won’t see any difference because the JPEG format looks at the image and removes only the information that it can recreate by looking at adjacent pixels when the image is displayed again.

You can specify the amount of compression with JPEG images. Your camera will usually have a quality setting – low, medium or high. Low quality increases the JPEG compression, and although your images will be smaller, they won’t look as good.

High Quality Setting
Low Quality Setting (exaggerated for effect)


Images stored in RAW format are exactly what the camera ‘sees’. There is no processing done by the camera before the image is saved. This is one of the major advantages of RAW.

Remember when I said above that each color value strength is stored on a scale from 1 to 256? Modern cameras can actually detect more than 256 levels of strength. But since the JPEG format doesn’t allow more than that number, the camera throws the extra information away. The RAW format saves these extra strength levels resulting in a better image with more contrast levels.

There’s another advantage – the camera doesn’t correct for white balance or sharpen before it saves in RAW format. Meaning you have ultimate control in manipulating the image in a paint program – so your image looks exactly how you want it to look.

All these advantages come at a cost. RAW images use 'lossless' compression so they are large files and take a long time to store and copy. Also, there is no single RAW standard for all cameras, so you usually will need to use your camera manufacturer’s software to read the RAW file.

Which format should I use?

While RAW does give you superior images, I personally don’t think the hassle of much larger file sizes and needing to then convert your images to JPG for sharing are worth it unless you have a really high end camera and need to produce really large prints. Or are in a difficult lighting situation. Not only do the images take longer to save, but you need to purchase larger (and more expensive) memory cards; and pay more to cloud providers fostorage space costs.

The JPEG format is the most popular – and it’s not hard to see why. It provides a much smaller image size without losing a lot of quality. I recommend using the JPEG format set to high image quality on your own camera

Most people think this post is Awesome. What do you think?

Leave a Comment

Your email address will not be published. Required fields are marked *