Canon Raw CIFF (.crw)

Camera Standard

Canon Raw CIFF (CRW) is Canon's first-generation RAW image format based on the Camera Image File Format (CIFF) heap specification, used on early digital SLRs and PowerShot prosumer cameras.

Convert CRW to JPG

Free in-browser CRW to JPG converter. Convert files instantly on your device.

Inspect & Metadata

Operating systems and file analyzers identify CRW files by inspecting the leading binary byte sequence:

Select or drop files here

100% private in-browser conversion - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify CRW files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

49 49 1A 00 00 00 48 45 41 50 43 43 44 52

ASCII REPRESENTATION: II....HEAPCCDR

Standardization: Camera Image File Format (CIFF)

Technical Specifications

Container ArchitectureCIFF (Camera Image File Format) structured binary record heap
CompressionLossless modified JPEG Huffman encoding
Byte EndiannessLittle-Endian (Intel byte order)
Color SpacesCamera Sensor RGB, sRGB tone curve
Channels & Structure1 channel Bayer mosaic (RGGB)
Max DimensionsUp to 3072 x 2048 (6.3 MP Canon EOS 10D / Digital Rebel 300D)
TransparencyNone
Streaming & ProgressiveNon-streamable heap structure with tail record index directory

Technical Comparison Matrix: CRW vs Competitors

Technical AttributeCRW (Current)CR2NEFDNG
Container SpecCIFF record heapTIFF/EP structured IFDTIFF/EP structured IFDTIFF/EP open specification
Header MagicII....HEAPCCDRII*.....CRMM\0*II*\0
Active Era1998 - 20042004 - 20182001 - Present2004 - Present
Bit Depth10-bit to 12-bit linear14-bit linear12-bit to 14-bit linearUp to 16-bit linear

Common Corruption Modes & Hex Recovery Guide

Software reports 'Invalid CIFF record table offset'.

Root Cause: Premature card removal leaving the trailing CIFF directory table truncated.

Recovery: Use exiftool to recover raw image heap or convert through dcraw -v broken.crw.

Security Analysis & Parser Attack Vectors

Legacy CIFF record parsers often lack boundary checks on record offsets pointing beyond file bounds.

Known Attack Vectors

  • Malformed CIFF record length causing integer underflow in record traversal loops.
  • Overlapping record offsets triggering heap corruption in obsolete raw image libraries.
  • Malformed JPEG thumbnail decompression buffer overflow.

Defensive Best Practices: Validate total CIFF record heap dimensions before allocating decompression buffers.

Historical Origins & Milestones

2004Replaced by the TIFF-based CR2 format with the launch of the EOS-1D Mark II and EOS 20D.
2003Powers the groundbreaking Canon EOS Digital Rebel (300D), the first sub-$1000 consumer DSLR.
1998Introduced by Canon in early digital cameras including the PowerShot Pro70 and EOS D30.

Key Advantages & Pros

  • Preserves original 10-bit and 12-bit sensor data from foundational digital cameras of the early 2000s.
  • CIFF heap architecture provides clean separation between image sensor blocks and camera settings.
  • Lightweight file sizes (typically 5 MB to 8 MB per image) suitable for early CompactFlash media.

Technical Limitations & Cons

  • Largely deprecated in modern software, often requiring legacy DNG conversion tools for ingest.
  • Stores certain camera settings in companion .THM (thumbnail) sidecar files rather than internally.
  • Primitive CIFF directory structure at the end of the file is vulnerable to incomplete file writes.

Interesting Technical Trivia

  • The 'HEAPCCDR' string in the header stands for 'Heap Canon Camera Digital Raw'.
  • Canon Digital Rebel 300D cameras shot millions of iconic early 2000s digital photographs in CRW.
  • CIFF was co-developed by Canon, Eastman Kodak, and Hewlett-Packard in the late 1990s.

Frequently Asked Technical Questions

Why is there a .THM file alongside my .CRW file?

Canon CRW cameras saved metadata and thumbnails in a companion .THM file, which is actually a standard JPEG file containing EXIF tags.

Can modern Lightroom versions still import CRW?

Yes, Adobe Camera Raw retains backwards compatibility for CRW files, though converting them to DNG is recommended for long-term archiving.

What cameras produced CRW files?

Cameras including the Canon EOS D30, D60, 10D, Digital Rebel (300D), and PowerShot G1, G2, G3, G5, and Pro1.