Privacy note: We capture your IP address to provide customised and focused services. See our Privacy Policy.

Photography Fundamentals

Lesson 17: File Formats: JPEG, RAW, and Others

When you press the shutter, the camera must decide how to save the image, and the choice matters. The two formats every photographer should understand are JPEG and RAW. They are not two versions of the same thing: they represent different philosophies — convenience against control — and choosing between them is one of the first real decisions a photographer makes.

A JPEG is a finished photograph. The camera processes the sensor data — setting white balance, sharpening, contrast and colour — then compresses the result into a small file, discarding information it judges unnecessary. The result is ready to share immediately and takes little space: a JPEG is typically a few megabytes. The cost is that the discarded information is gone. If the exposure or white balance is wrong, there is limited room to fix it, and every time you re-save a JPEG it is compressed again, losing a little more quality.

RAW: The Digital Negative

A RAW file is the sensor's unprocessed data, plus the camera's settings as notes. Nothing is discarded and nothing is baked in: white balance, exposure, sharpening and colour are all decided later, on your computer. A RAW file is much larger — often 20 to 50 megabytes — and it looks flat and dull until edited, but it holds far more information, especially in the shadows and highlights. Photographers call it a digital negative, and the comparison is exact: like film, it is not the photograph, but the material from which the photograph is made.

The practical difference shows in difficult light. A JPEG of a sunset may have a white sky that cannot be recovered; the same scene in RAW often holds detail in those highlights, and shadow areas that look black in a JPEG can be lifted to reveal detail. White balance can be changed completely in a RAW file with no loss, while in a JPEG it is largely fixed. For any photograph you care about, RAW gives you a second chance at the exposure.

Other Formats and the Choice

Other formats fill particular roles. TIFF is a large, uncompressed format used for print and archiving. PNG is lossless and supports transparency, which makes it the choice for graphics and logos rather than photographs. HEIF is the modern format many phones use: it compresses better than JPEG at similar quality, but is less widely supported. Most cameras also offer a RAW+JPEG mode that saves both at once — the JPEG for quick sharing, the RAW for serious editing.

For a beginner, the sensible rule is: shoot JPEG while you are learning composition and exposure, and switch to RAW (or RAW+JPEG) as soon as you start editing seriously. Storage is cheap; a lost photograph is not.

Key Terms

JPEG
A compressed, camera-processed image format: small files, ready to share, with limited editing room.
RAW
An unprocessed file holding the sensor's full data, offering maximum editing flexibility at larger file sizes.
TIFF
A large uncompressed format used for printing and archiving.
PNG
A lossless format that supports transparency, used for graphics rather than photographs.
HEIF
A modern phone format that compresses better than JPEG at similar quality.
Compression
Reducing a file's size by discarding information; JPEG uses lossy compression.

Discussion Questions

  1. Why is a RAW file called a digital negative?
  2. If RAW is so much better for editing, why does anyone shoot JPEG?
  3. What happens to a JPEG each time it is re-saved?

Practice Questions

  1. What is the main difference between a JPEG and a RAW file?
    Answer: A JPEG is processed in the camera and compressed, discarding information; a RAW file keeps the sensor's unprocessed data with nothing discarded.
  2. Why is a RAW file much larger than a JPEG of the same photograph?
    Answer: It keeps all the sensor data, including shadow and highlight detail the JPEG would discard, instead of compressing it away.
  3. What can you change freely in a RAW file that is largely fixed in a JPEG?
    Answer: White balance (and, to a large extent, exposure), because RAW stores the sensor data before those decisions are made.
  4. What is TIFF used for?
    Answer: Printing and archiving, as a large uncompressed format that loses no quality.
  5. What does RAW+JPEG mode do?
    Answer: It saves both formats at once: the JPEG for quick sharing and the RAW for serious editing.
Keep reading to complete this lesson