WikiCamera

When you buy through our links, we may earn a commission. Read the disclosure ›

HEIF vs JPEG vs RAW: Choosing the Right Photo Format

Short answer: If you edit photos deeply, shoot RAW. If you want universally compatible, share-ready files, JPEG is still the safest bet. If you want smaller files than JPEG with better quality, and you work mostly in Apple's ecosystem, HEIF is a strong option. Many cameras let you capture RAW and JPEG or HEIF simultaneously, which is often the most practical approach.

The short version

Choose RAW when you plan to edit: it preserves the full sensor data, giving you the most control over exposure, white balance, and highlight and shadow recovery. Choose JPEG when you need files that open anywhere, from phones to printers, with no conversion. Choose HEIF when you want modern compression that delivers quality at smaller file sizes, especially if most of your viewing happens on Apple devices.

For many photographers, the answer is not one format but two at once. Shooting RAW alongside JPEG or HEIF gives you a ready-to-use file for immediate sharing and the original data for serious editing later. The trade-off is more storage and larger files to manage.

A practical approach is to use the format that matches your output. If you share straight from the camera on social media, a well-exposed JPEG or HEIF is enough. If you print large or sell images, RAW gives you the latitude to refine details.

What JPEG is and why it sticks around

JPEG has been the default photo format for decades. It uses lossy compression to reduce file size, and the camera applies its own processing: white balance, contrast, sharpening, and noise reduction are baked into the file. This makes JPEG ideal for sharing with no post-processing.

The downside is flexibility. Every edit you make to a JPEG recompresses it, so quality degrades with repeated saves. Highlight and shadow recovery is limited because the camera already discarded data it decided was unimportant. If you never edit your photos, these limits rarely matter.

JPEG works everywhere. Any phone, computer, printer, or web service can open it. It remains the most universal format, and for many photographers that reliability is the deciding factor.

If you value universal compatibility and simple workflows, look at compact cameras that handle JPEG processing well.

What RAW is and what it gives you

A RAW file is not an image yet. It holds the raw data from the camera sensor along with metadata. You process it in software to turn that data into an image you can share. This is why RAW files are described as a digital negative: they preserve everything the sensor captured, so you decide how to develop it.

Because RAW retains wide latitude in exposure and white balance, you can correct mistakes and push the image further before quality suffers. Highlight recovery, shadow lifting, and color grading are far more flexible than with JPEG. This is a large part of why professionals and enthusiasts shoot RAW.

The costs are real. RAW files are usually larger than JPEGs, they require software to open, and the camera's look is not applied unless you add it in post. RAW support is excellent in camera maker apps and major editing programs, but not built into every consumer app.

RAW makes sense for anything you intend to edit, print, or sell. If that is your goal, pair RAW capture with serious editing software and plenty of storage. If you mostly shoot for quick sharing, RAW may add work without benefit. See our guide on RAW-format for a deeper dive.

What HEIF is and where it shines

HEIF, or High Efficiency Image File, is a container format that uses modern compression, such as HEVC, to achieve smaller file sizes than JPEG while maintaining high visual quality. It holds not only still images but also image sequences, depth maps, and HDR tone-mapping metadata.

The main advantage of HEIF is efficiency. It can deliver comparable quality to JPEG in a smaller package, and for HDR stills it can record more detail in highlights and shadows. Apple adopted HEIF as the default still format starting with iOS 11, which pushed the format into the mainstream.

The barrier is compatibility. HEIF support is common on Apple devices and in many current apps, but older devices, some software, and many web services still do not open HEIF files. If you share with people using older systems or upload to a platform that ignores HEIF, you will need to convert to JPEG first.

For photographers who want the quality and storage advantage, HEIF is worth considering, especially if your camera can output both HEIF and RAW. If you edit on a computer and value the smaller file size, HEIF can replace JPEG as your export format for sharing.

Compression and quality compared

The formats differ in how they balance quality against file size. JPEG and HEIF both use lossy compression, but HEIF's algorithm is more advanced, meaning it can achieve similar visual quality at a lower file size. RAW uses lossless or lossy compression in some implementations, but its goal is preserving sensor data, not output size.

The practical difference appears in editing headroom. JPEG files have less tonal and color information, so heavy edits show banding and blocking artifacts sooner. HEIF preserves more detail than JPEG at the same size, but because it is still lossy, it cannot match RAW for extreme recovery.

RAW is the only format of the three that keeps the full capture data. That is why your editing software can adjust exposure by several stops with less noise and artifact punishment. If you are shooting high-contrast scenes or plan to push shadows, RAW is the safe choice.

If you want a balance of quality and file efficiency, HEIF is the most modern option. It is the only one of the three that supports HDR stills with wide color. This is increasingly relevant, as more phones and cameras can display and share HDR content.

Device compatibility and workflow

JPEG remains the most widely supported format. You can send it to anyone, open it in any editor, and upload it to every platform. If your work flows through many different devices and programs, JPEG is the least likely to cause problems.

RAW is compatible with camera maker apps and most serious editors, but not with every viewer. When you share RAW files, you are sharing unprocessed data, which can look flat and dark until opened in editing software. That can confuse non-photographer recipients.

HEIF has the narrowest compatibility. It works out of the box on recent Apple devices and on Android devices with the right codecs. But many Windows systems, older photo kiosks, and some web services refuse HEIF. If your workflow crosses platforms, convert HEIF to JPEG before sharing.

A common approach is to capture RAW and HEIF simultaneously. That way you store a small, high-quality file for everyday use and preserve the raw capture for edits. Check whether your camera supports dual capture; it is a growing feature in many mirrorless cameras.

HEIF and video: a side note

The same compression technology behind HEIF stills is also used for video in the HEVC codec. That is not a coincidence: HEIF was designed by the MPEG group to work with the same video pipeline. For cameras that shoot both photo and video, using HEIF can keep your file formats consistent and your storage needs lower.

If you also shoot video, the choice of codec matters. HEVC gives you high-quality video at lower bitrates than older H.264, but compatibility varies. Cameras that offer HEVC also tend to offer HEIF for stills, so the decision is often tied together. See the camera-format-comparison article for more on HDR video.

How to choose what to shoot

There is no single best format. The right choice depends on how you use your photos and what devices you use. The table below matches common situations to a format.

If your photos are only for social media, JPEG is the simple, compatible choice. If you edit on your computer and want the most control, RAW is worth the extra storage. If you view and share mostly on Apple devices, HEIF saves space without sacrificing much quality.

What to pick for your use

If youPickBuying guide
You share photos straight from the camera and never editJPEGBest Compact Cameras in 2026: 12 Picks Compared on Specs
You edit photos on your computer and want maximum controlRAWBest Mirrorless Cameras in 2026: 15 Picks Compared on Specs
You shoot on Apple devices and value file sizeHEIFBest 4K Cameras in 2026: 15 Picks Compared on Specs
You shoot both photos and video and want format consistencyHEIF plus HEVC videoBest 8K Cameras in 2026: 12 Picks Compared on Specs
You want flexible editing without giving up shareabilityRAW plus JPEG or HEIFBest Full-Frame Cameras in 2026: 15 Picks Compared on Specs
You print large or sell imagesRAWBest 30 to 49 MP Cameras in 2026: 15 Picks Compared

Questions

Why would I shoot HEIF instead of JPEG?

HEIF gives you similar quality at smaller file sizes and supports HDR. The main reason to avoid it is compatibility: not all devices and apps can open HEIF files.

Is RAW always better than JPEG?

RAW holds more data, so it is better for editing. But it requires processing and larger storage, so for direct sharing it is less convenient than JPEG.

Can I shoot RAW and HEIF at the same time?

Many recent cameras let you store a RAW file and a JPEG or HEIF simultaneously. That gives you a shareable file and an original for editing, at the cost of more storage.

Will HEIF become the new standard?

HEIF is growing in use because it is efficient and supports HDR, but JPEG remains the most universally compatible format. Support will likely continue to broaden.

Do I need RAW for good prints?

A properly exposed JPEG can produce good prints, especially at moderate sizes. RAW helps if you need to edit tones, recover highlights, or print very large.

Change log

  • : First published.

Sources

Related buying guides