File types · Explainer

The CR2 file (.cr2)

A CR2 file is a Canon raw photo: the unprocessed sensor data from a Canon EOS camera, in the TIFF-based format Canon used from 2004 until CR3 took over. This guide explains what's inside one, why it looks different from the camera's JPEG, and how to open, edit and convert it on any computer.

At a glance

Full name
Canon RAW version 2 (Canon Raw 2)
Extensions
.cr2
MIME type
None registered; image/x-canon-cr2 is used by ExifTool and libopenraw
Kind
Binary camera raw image, TIFF-based, with JPEG previews; raw data compressed losslessly
Standard or owner
Canon. Proprietary and unpublished; what's known comes from reverse engineering
In use
From 2004 (cameras such as the EOS 20D and EOS 350D) until Canon moved to CR3, starting with the EOS M50 in 2018
Bit depth
12 or 14 bits per pixel, depending on the camera
Magic number
49 49 2A 00 10 00 00 00 43 52 02 00: a TIFF header, then CR and version 2.0 at byte 8
Opens with
Canon Digital Photo Professional, Lightroom, Photoshop, Capture One, darktable, RawTherapee, macOS Photos and Preview, Windows Photos with the Raw Image Extension

The basics

What is a CR2 file?

CR2 is the raw format of a generation of Canon EOS cameras. It replaced Canon's first raw format, CRW, in cameras such as the EOS 20D and EOS 350D (Digital Rebel XT), from 2004. In 2018, starting with the EOS M50, Canon began replacing it with CR3. So most Canon DSLR photos shot in RAW from the mid-2000s to the late 2010s are CR2 files.

Unlike CRW, CR2 is built on TIFF. That made it easier for other software to read the previews and metadata, but the raw image itself still needs a decoder that knows Canon's way of storing it, and a raw converter needs colour data for each camera model.

A CR2 is a working file, not a finished photo. To share a picture, develop it and export a JPG.

Anatomy

What's inside a CR2 file

Camera raw files can't be generated without the camera, and Canon has never published the CR2 specification. This outline is based on reverse-engineered descriptions: PRONOM's format signature, libopenraw's CR2 notes and ExifTool's Canon tag documentation. Only the first 16 bytes have fixed values; the rest is found through offsets, as in any TIFF. No real file is shown.

photo.cr2 (structure outline)
photo.cr2: layout of a Canon RAW 2 file (no real file shown)

offset  bytes                       part
0       49 49 2A 00                 "II", 42: a little-endian TIFF header
4       10 00 00 00                 IFD 0 starts at byte 16
8       43 52                       "CR": Canon raw marker
10      02 00                       version 2.0
12      xx xx xx xx                 offset of IFD 3, the raw image
16      IFD 0                       full-size JPEG preview
          → Exif IFD                camera settings, date, lens
              → MakerNote           Canon's own tags (undocumented)
          → GPS IFD                 only if location was recorded
        IFD 1                       small JPEG thumbnail
        IFD 2                       small uncompressed image
        IFD 3                       the raw sensor data
          C640 (3 values)           how the raw data is cut into slices
        image data                  the JPEGs, the small image and the
                                    lossless-JPEG raw data, which is
                                    most of the file
  1. 149 49 2A 00 10 00 00 00

    A normal TIFF header

    II (little-endian), 42, and the offset of the first image directory. Because of this, TIFF tools and many file browsers can read a CR2's directories and show its preview.

  2. 243 52 02 00

    The CR marker

    Bytes 8 and 9 spell CR; bytes 10 and 11 are the version, 2.0. The first IFD starts after this, at byte 16, instead of the usual byte 8. TIFF allows gaps like this, so the extra header doesn't break TIFF readers. This is how software tells a CR2 apart from a plain TIFF.

  3. 3xx xx xx xx (byte 12)

    Shortcut to the raw data

    The offset of the fourth image directory, which describes the raw image, so a decoder can jump straight to it.

  4. 4IFD 0

    Full-size JPEG preview

    A JPEG of the whole picture, processed with the camera's settings. It's what the camera's screen and most thumbnailers show. IFD 0 also points to the Exif data.

  5. 5MakerNote

    Canon's private tags

    Inside the Exif block, a Canon directory holds hundreds of settings: picture style, autofocus points, lens model, serial numbers, the white balance options. The tags are undocumented; ExifTool's names for them come from years of testing.

  6. 6IFD 1, IFD 2

    Thumbnail and small image

    A small JPEG thumbnail and a small uncompressed image, for quick display.

  7. 7IFD 3

    The raw image

    The sensor data, compressed with lossless JPEG, an old mode of the JPEG standard that DNG uses too. Some cameras cut the image into vertical slices, described by tag C640, so decoders have to stitch the columns back together.

Raw data

What's raw about a CR2, and why it looks flat

A Canon sensor records one colour per pixel through a grid of red, green and blue filters. A CR2 keeps those single-colour values at 12 or 14 bits each, before the camera has filled in the missing colours (demosaicing), set the white balance, applied the picture style and tone curve, sharpened and reduced noise. All of that happens later, in raw software, and can be changed at any time without losing quality.

  • It looks flat or different. Raw software starts from its own neutral rendering, not Canon's picture style. Canon's Digital Photo Professional is the one app that reproduces the camera's styles exactly; others use profiles that imitate them.
  • It looks fine, then changes. Many viewers first show the embedded JPEG preview, then replace it with their own rendering of the raw data.
  • More room to edit. Highlights and shadows that a JPEG would have clipped are often still there, and white balance can be changed freely.

Variants

RAW, mRAW and sRAW

Many CR2 cameras offered smaller raw options besides full-size RAW, called M-RAW and S-RAW (also mRAW and sRAW). They are still .cr2 files, but they hold fewer pixels, and the data isn't stored as one colour per pixel: it's already partly processed, stored as brightness and colour (YCbCr) values.

OptionResolutionWhat's storedLossless?
RAWFullRaw sensor values, one colour per pixelYes
M-RAW, S-RAWReducedDemosaiced, then stored as YCbCrNo: resolution and some data are reduced

Some raw converters and older tools handle M-RAW and S-RAW less well than full RAW. If you want to keep everything the sensor recorded, use full-size RAW. CR3 cameras offer C-RAW instead, a smaller raw option that keeps the full resolution.

Comparison

CR2 vs CR3, DNG and JPEG

CR2CR3DNGJPG
ContainerTIFF-basedISO base media file (like MP4)TIFF-basedJPEG
Raw compressionLossless JPEGCanon's CRX codec: lossless or lossy (C-RAW)Lossless, lossy or JPEG XLNot raw
SpecificationUnpublishedUnpublishedPublic, ISO 12234-4Public
CamerasCanon, 2004 to late 2010sCanon, from 2018Leica, Pentax, phones, convertersAll

Converting CR2 to DNG with Adobe's free DNG Converter keeps the raw data and makes the file readable by any DNG-capable software. Canon's own software won't open the DNG, though, so keep the originals if you use Digital Photo Professional.

How to

How to open, edit and convert a CR2 file

  • Canon's own software: Digital Photo Professional (DPP) is free for Canon owners from Canon's support site, for Windows and macOS. It reproduces the camera's picture styles and lens corrections.
  • Other editors: Lightroom, Photoshop (Camera Raw), Capture One, DxO PhotoLab, Affinity Photo, and the free darktable and RawTherapee all read CR2.
  • Mac: Photos and Preview open CR2 files from the Canon models on Apple's supported RAW list, which includes many EOS cameras.
  • Windows: install Microsoft's free Raw Image Extension from the Microsoft Store. It's built on the open-source LibRaw library and adds CR2 thumbnails in File Explorer and viewing in Photos.
  • Phones: Lightroom mobile and other raw editors open CR2 on iOS and Android; iPhones and iPads also open supported Canon models in Photos.
terminal
# CR2 to JPEG with darktable or RawTherapee
darktable-cli IMG_0001.CR2 IMG_0001.jpg
rawtherapee-cli -o IMG_0001.jpg -c IMG_0001.CR2

# just pull out the camera's full-size JPEG preview, no processing
exiftool -b -PreviewImage IMG_0001.CR2 > IMG_0001_preview.jpg

Extracting the preview is quick and gives exactly what the camera showed, but it's an 8-bit JPEG with the camera's settings baked in; you lose the raw latitude.

Troubleshooting

Why a CR2 file won't open

  • The software is older than the camera. Raw converters need specific support for each camera model, even within one format. A CR2 from a camera released after your version of Lightroom, Photoshop or an older Photos app may not open. Update the software, or convert the files with the latest free Adobe DNG Converter and open the DNGs instead.
  • Only a small or blurry picture appears. The viewer can't decode the raw data and is showing the embedded thumbnail or preview.
  • It opened in DPP but not elsewhere after editing. Canon's software stores its edits inside the CR2, and some other programs have reportedly failed to read files changed this way. Keep an untouched copy of the originals.
  • The file is corrupt. Raw files copied from a failing card often show coloured bands or a half-grey image. Try copying again with a card reader; the embedded JPEG preview may still be extractable with exiftool -b -PreviewImage.

Privacy

Privacy: serial numbers, names and location

A CR2 carries everything a camera JPEG does, plus Canon's maker notes:

  • Camera and lens serial numbers, which link every photo to the same body and lens.
  • Owner name, artist and copyright, if set in the camera menu.
  • GPS location, when the camera has a GPS unit or receiver attached, or takes location from a paired phone.
  • Date, time and all settings, including the autofocus points used.

When sharing photos publicly, share an exported JPEG with metadata removed, not the CR2. exiftool -a -G1 IMG_0001.CR2 shows what's in a file.

Sample files

There are no sample CR2 files on this page. Raw files come straight from the camera, so the simplest test file is one shot in RAW on a Canon EOS camera from before the CR3 generation.

Put it online

Have a CR2 file? Give it a link.

Drop a CR2 on 99helpers and it gets its own web address, so you can send a raw photo to an editor or client without an attachment limit. Browsers can't display raw files, so the file downloads when the link is opened.

Questions

CR2 files, frequently asked

What is a CR2 file?

A Canon raw photo from an EOS camera of roughly 2004 to 2018: the unprocessed sensor data in a TIFF-based file, with a JPEG preview inside.

How do I open a CR2 file?

Use Canon's free Digital Photo Professional, Lightroom, Photoshop, darktable or RawTherapee. On a Mac, Photos and Preview open most CR2 files; on Windows, install Microsoft's Raw Image Extension for the Photos app.

How do I convert CR2 to JPG?

Open it in a raw editor (DPP, Lightroom, Photos, darktable, RawTherapee) and export as JPEG. To get the camera's own JPEG preview without processing, run exiftool -b -PreviewImage file.CR2 > preview.jpg.

Is CR2 lossless?

Full-size RAW is: the sensor data is compressed with lossless JPEG. The smaller M-RAW and S-RAW options reduce resolution and store processed data.

What's the difference between CR2 and CR3?

CR2 is TIFF-based with lossless compression. CR3, introduced in 2018, uses the ISO base media file format (the structure of MP4) and a new codec, with a smaller lossy option called C-RAW.

Why won't Photoshop open my CR2 files?

Your version of Camera Raw is probably older than the camera. Update it, or convert the files to DNG with the free Adobe DNG Converter and open those.

Should I convert CR2 to DNG?

Only if it helps you: DNG works in software that doesn't know your camera and is openly documented. Canon's software can't open DNG, so keep the CR2 originals if you use it.

Related formats

Other file types explained

Keep going

Related

Sources

Last reviewed 27 October 2026.