Canon Raw CIFF (.crw)
Camera StandardCanon 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:
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 52ASCII REPRESENTATION: II....HEAPCCDR
Standardization: Camera Image File Format (CIFF)
Technical Specifications
| Container Architecture | CIFF (Camera Image File Format) structured binary record heap |
| Compression | Lossless modified JPEG Huffman encoding |
| Byte Endianness | Little-Endian (Intel byte order) |
| Color Spaces | Camera Sensor RGB, sRGB tone curve |
| Channels & Structure | 1 channel Bayer mosaic (RGGB) |
| Max Dimensions | Up to 3072 x 2048 (6.3 MP Canon EOS 10D / Digital Rebel 300D) |
| Transparency | None |
| Streaming & Progressive | Non-streamable heap structure with tail record index directory |
Technical Comparison Matrix: CRW vs Competitors
| Technical Attribute | CRW (Current) | CR2 | NEF | DNG |
|---|---|---|---|---|
| Container Spec | CIFF record heap | TIFF/EP structured IFD | TIFF/EP structured IFD | TIFF/EP open specification |
| Header Magic | II....HEAPCCDR | II*.....CR | MM\0* | II*\0 |
| Active Era | 1998 - 2004 | 2004 - 2018 | 2001 - Present | 2004 - Present |
| Bit Depth | 10-bit to 12-bit linear | 14-bit linear | 12-bit to 14-bit linear | Up 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
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.