What is the difference between RAW, JPEG, and HEIF—and which should you save?
RAW files preserve data closer to the sensor and leave more room for adjustment; JPEG files are compatible and processed; HEIF can offer greater efficiency or bit depth, but compatibility is usually weaker.

RAW files preserve data closer to the sensor and leave more room for adjustment; JPEG files are compatible and processed; HEIF can offer greater efficiency or bit depth, but compatibility is usually weaker.
RAW files preserve data closer to the sensor's original output and leave more room for adjustment, but they require dedicated software; JPEG files are widely supported, compact, and already processed in the camera; HEIF can offer greater compression efficiency or higher bit depth at a similar file size, but device and software compatibility is usually weaker than JPEG. The right choice depends on delivery speed, editing needs, and your storage budget.
What does each format actually preserve?
Adobe's explanation of Camera Raw files describes RAW as preserving sensor data and metadata without the usual JPEG processing, requiring conversion software to interpret it. JPEG has already gone through demosaicing, white balance, color-space conversion, noise reduction, sharpening, and lossy compression. ISO/IEC 23008-12 defines HEIF as an image-file container; whether a particular camera uses HEVC, 10-bit data, or HDR still has to be checked in that model's specifications.
RAW is not completely “unprocessed”: the camera may already have applied black-level correction, bad-pixel correction, lens corrections, or compression, and proprietary formats differ between manufacturers.
How do dynamic range and bit depth differ?
The 12 or 14 bits in a RAW file provide more finely divided encoding levels than the common 8-bit JPEG, making substantial adjustments to shadows, white balance, and curves easier. Bit depth does not equal actual dynamic range, however; noise limits the usable tonal levels. See 12-bit vs. 14-bit RAW for the specific relationship.
HEIF may use 10-bit data, which can reduce banding in gradients and carry HDR output, but it only delivers that value when the capture, editing, display, and export chain all support it. Dynamic range and RAW latitude cannot be replaced by a format label.
How do in-camera styles affect the file?
JPEG and HEIF bake in picture styles, film simulations, white balance, sharpening, and noise reduction. You can still edit them, but clipped highlights, crushed shadows, and details removed by strong noise reduction are difficult to restore completely. A RAW preview also reflects the in-camera style, but you can usually choose again in conversion software; there is no guarantee that third-party software will reproduce a manufacturer's proprietary style accurately.
The color-space setting usually affects JPEG/HEIF directly. The RAW data itself is not permanently confined to sRGB or Adobe RGB; see sRGB vs. Adobe RGB.
How should you weigh compatibility against file size?
JPEG works in almost every browser, phone, and print service. HEIF support is expanding in newer systems, but social platforms, older computers, and delivery systems may convert it or reject it. RAW files are the largest and require software support; after a new camera is released, older software may temporarily be unable to open its files.
File size also depends on the subject, compression level, and whether the RAW compression is lossless or lossy—not just on the file extension. Before buying, use real sample files to estimate a day's shooting volume, dual-card backup needs, and long-term archiving costs.
How should you choose for different situations?
- Shoot and send immediately, or deliver news quickly: JPEG, with white balance and exposure set correctly first.
- Weddings, commercial work, portraits, and high-contrast scenes: RAW or RAW+JPEG, to preserve latitude and an immediately usable preview.
- HDR display with end-to-end support: test 10-bit HEIF while retaining the RAW files.
- Long sports bursts: compare the buffer behavior of RAW, compressed RAW, and JPEG rather than looking only at the size of one file.
- Family snapshots: if you do not want to edit, high-quality JPEG is more practical than accumulating a long-term backlog of unprocessed RAW files.
How should a RAW+JPEG/HEIF workflow work?
- Separate immediate sharing from final finishing: deliver the small JPEG and archive the RAW.
- A dual-card camera can record to separate cards, but separate cards do not constitute a completed backup; after shooting, still copy the files to independent media.
- Verify files on import and apply consistent names; do not keep only the software catalog database.
- Decide whether to delete duplicate RAW files only after selecting the keepers, while retaining important originals and exported versions.
- Include cards, drives, and the computer in the complete camera-buying budget when choosing a camera.