Camera File Formats and Codecs: JPEG, RAW, HEIF, MP4, and More
Short answer: Cameras save stills as JPEG, RAW, or HEIF, and video as MP4 with H.264, HEVC, or raw codecs. JPEG is ready to share but discards data; RAW keeps the most detail for editing; HEIF compresses more efficiently with modern hardware. For video, H.264 works everywhere, HEVC reduces file size, and raw codecs like R3D give maximum grading freedom. Choose the format that matches your editing plans and storage.
Still image formats: JPEG, RAW, and HEIF
When you press the shutter, your camera processes light data into a file. The three common still formats are JPEG, RAW, and HEIF. Each makes different trade-offs between quality, file size, and editing flexibility. Understanding these differences helps you pick the right mode for the situation.
JPEG is the most universal format: it compresses the image, discarding data you usually never notice. The result is a small file that is ready to share or print. The catch is that compression is lossy, and later edits can quickly degrade the image. For casual shooting and simple snapshots, JPEG is a solid choice. It works on every device, and most phones open it instantly.
RAW captures all the data from the sensor without lossy compression. It gives you far more latitude to adjust exposure, white balance, and color in post-processing. The files are larger and need a RAW converter, but you can recover highlights and shadows that JPEG cannot. If you plan to edit, RAW is the way to go. High-resolution sensors produce even larger RAW files, so consider your storage and editing hardware before committing.
HEIF is a newer format that uses modern compression to store high-quality images in a smaller footprint than JPEG. It also supports HDR and transparency. The trade-off is compatibility: older software and devices may not open HEIF files. Check your workflow before committing. For a deeper look, see HEIF vs RAW. Many newer cameras offer HEIF as a menu option, but you might need to enable it.
Your sensor size and megapixel count also affect file sizes. A full-frame camera with 50 megapixels produces far larger RAW files than a Micro Four Thirds model. If you mostly share online, a large sensor and RAW might be overkill. Conversely, for large prints or heavy cropping, RAW becomes essential. Visit the megapixels explained guide to see how resolution relates to file output.
Video codecs: H.264, HEVC, and raw video
Video files depend on codecs that compress frames for storage. The most common codec is H.264, used in MP4 containers. It balances quality and file size well and plays on virtually every device. For 4K and beyond, many cameras also offer HEVC (H.265), which compresses more efficiently but requires newer hardware to decode.
For maximum quality in post, some cameras record raw video, such as RED's R3D format. Raw video keeps the full sensor output and gives you the most control for color grading. Unsurprisingly, files are enormous and editing demands powerful hardware. If you are a professional or create complex projects, raw video is a worthwhile investment. It is also worth noting that some cinema cameras can record uncompressed or visually lossless codecs that sit between raw and H.264.
Bitrate and chroma subsampling also matter. Higher bitrates preserve more detail; higher chroma subsampling keeps more color information. These factors influence sharpness and editing flexibility. Learn more about video bitrate and all-intra vs long-GOP. All-intra codecs store every frame independently, which makes editing smoother but produces larger files. Long-GOP codecs store only changes between frames, saving space but requiring more processing power to decode.
When shooting slow motion or high frame rates, the codec and bitrate become even more important. A high-speed recording needs enough bitrate to avoid compression artifacts. Cameras like the ones in the best 5K or 6K cameras guide often use HEVC to keep file sizes manageable at high resolutions. Check the camera's spec sheet to see which codecs it supports and at what bitrate.
Choosing the right format for your workflow
Your choice should depend on how you will use the files. If you just share on social media or make family albums, JPEG or HEVC will save storage and time. If you spend hours in an editing suite, RAW stills and raw video give you the most creative freedom. There is no one-size-fits-all answer, so think about your typical output.
Consider your computer. High-resolution stills and 4K or 8K video demand fast storage and memory. A camera that shoots these resolutions will produce larger files than a Full HD model. Pair it with a fast memory card and a capable editing system. If your machine struggles with HEVC or raw video, you might prefer H.264 or a lower-bitrate codec.
Also think about archiving. RAW files preserve the original data, but their size means you need a robust backup strategy. Lossy formats are easier to store but they are not the original. For long-term preservation, many photographers keep the RAW files and export JPEGs for sharing. For video, you might keep the source files and create H.264 proxies for editing.
Some cameras let you shoot RAW and JPEG simultaneously, giving you a backup and a ready-to-use file. This is handy for events or travel where you want to share quickly but also have the RAW for later. Video cameras sometimes allow dual recording to two cards, one with a proxy and one with the main high-quality file. These features can ease your workflow.
Storage and compatibility considerations
Larger file formats require faster memory cards. For example, CFexpress type B cards have become common in high-end cameras because they can handle the data rate of 4K and raw video. Check your camera's manual before buying a card, and see the memory card guide for more. SD cards with V90 rating also work for many cameras, but they are slower than CFexpress.
HEIF and HEVC may not be readable on older operating systems or software. If you share files with clients or collaborators, verify they can open the format. In contrast, JPEG and H.264 are safe bets. For personal use, you can always convert HEIF to JPEG in your computer's photo app.
When you choose a camera, think about what formats it supports. Some cameras encode video in multiple codecs, giving you a choice between efficiency and compatibility. You can change these settings in the menu, but the underlying processing power matters. If you plan to record raw video, check whether the camera offers that option and what the resulting file size is.
Cloud storage is another consideration. RAW files can be large, and uploading them over a slow connection is painful. Many cloud services support JPEG and MP4 natively. If you rely on cloud backup, you might want to convert before uploading. For archival, consider an external hard drive or NAS. The Library of Congress offers guidance on preserving photographic materials, but their advice focuses on physical prints; digital files require their own backup strategy. For long-term digital preservation, keep multiple copies in different locations.
What to pick for your use
| If you | Pick | Buying guide |
|---|---|---|
| You edit stills in post-production | RAW | Best 30 to 49 MP Cameras in 2026: 15 Picks Compared |
| You share videos online | H.264/MP4 | Best 4K Cameras in 2026: 15 Picks Compared on Specs |
| You want maximum video grading flexibility | Raw video | Best Video Cameras in 2026: 14 Picks Compared on Specs |
| You need a compact, lightweight camera | JPEG/HEIF | Best Compact Cameras in 2026: 12 Picks Compared on Specs |
| You shoot 8K video | HEVC or RAW | Best 8K Cameras in 2026: 12 Picks Compared on Specs |
| You are a professional videographer | Raw or all-intra | Best 5K or 6K Cameras in 2026: 13 Picks for Video |
Questions
What is the difference between JPEG and RAW?
JPEG is a compressed, lossy format that is ready to share. RAW is uncompressed or losslessly compressed sensor data that gives you more editing headroom but requires a converter. RAW files are larger and take longer to write to the card.
Why would I use HEIF over JPEG?
HEIF uses more efficient compression, so files are smaller at the same quality, and it supports HDR and transparency. However, not all software and devices can open HEIF files. Check compatibility before switching.
Which video codec should I use for 4K?
H.264 is the most compatible choice for 4K. If you need smaller files and your editing hardware supports it, HEVC compresses more efficiently. Raw video offers the most grading flexibility but produces very large files that require powerful computers.
Do I need an expensive memory card for RAW video?
Yes, raw video generates high data rates. A fast card like CFexpress type B is often required. Check your camera's specifications and the card's write speed before recording. For standard H.264, a UHS-I card may suffice.
Can I convert RAW to JPEG after editing?
Absolutely. Most editing software lets you export a processed RAW file as a JPEG for sharing. This way you get the flexibility of RAW and the compatibility of JPEG. Some software also supports batch conversion.
What is chroma subsampling and why does it matter?
Chroma subsampling reduces color resolution to save space. A codec with 4:2:2 or 4:4:4 sampling preserves more color information than 4:2:0, which is common in consumer codecs. For color grading and keying, higher chroma subsampling is beneficial.
Change log
- : First published.