What is the DNG file format?
.dng (Digital Negative) is a file format used for archiving RAW image files, developed by Adobe Systems in 2004. Also known as the Adobe Digital Negative format, .dng files store raw photographic data along with metadata, color profiles, and optional preview images in a single self-contained file.
DNG as an open standard
Unlike proprietary camera raw formats, .dng is a publicly documented, open standard - not to be confused with open-source software. It was created in direct response to the fragmented landscape of proprietary raw files, and its structure is based on the TIFF/EP standard (ISO 12234-2). A .dng file begins with the standard TIFF little-endian signature (49 49 2A 00) and is identified internally by the DNGVersion tag (tag ID 50706). Many image editing applications support .dng, and some camera manufacturers - including Leica and Hasselblad - save RAW images natively in this format. It is also used as a universal archival target for proprietary raws such as .cr2 or .nef files.
Raw and processed data
.dng supports both raw (sensor-level) image data and processed images. A raw .dng file can also embed a full-resolution or reduced-size JPEG preview alongside the original sensor data, giving software fast access to a displayable image without full raw decoding.
Advantages of DNG files
.dng is widely used due to its high compatibility across software and support for a wide spectrum of features. Files are often smaller than equivalent proprietary raw files when lossless compression is applied (.dng supports both lossless and uncompressed storage). Because metadata edits and XMP data can be embedded directly into the file, all modifications are preserved in a single file without requiring a separate sidecar.
Security & safety
RISK: LOWDNG is passive image data (sensor data + metadata), not executable, so opening one is safe. The cautions are non-malware: EXIF metadata (camera, timestamps, sometimes GPS) travels with the file - strip it before publishing if privacy matters; DNGs are large, so back up originals; and editing is non-destructive (your DNG master is preserved while edits live in sidecars/catalogs). Beware fake 'DNG viewer' downloads bundled with adware - use darktable/RawTherapee/Adobe or the Microsoft Raw Image Extension.
Format details
in a nutshellPrograms that open DNG files
Technical details
deep spec| Container structure | Built on TIFF/EP (ISO 12234-2); structurally a valid TIFF file extended with DNG-specific private tags |
| MIME type | image/x-adobe-dng |
| Magic bytes | 49 49 2A 00 (little-endian) or 4D 4D 00 2A (big-endian) at offset 0; standard TIFF/EP file signature |
| Identifying TIFF tag | DNGVersion (tag ID 50706) is present in every .dng and distinguishes it from a plain .tiff |
| Color filter array encoding | Sensor CFA data stored in linear light with Bayer or X-Trans pattern; described by CFAPattern and CFALayout tags |
| Bit depth | 8, 16, or 32-bit per channel; 32-bit float supported from DNG 1.4 for HDR and floating-point raw captures |
| Compression modes | Uncompressed, lossless JPEG (Huffman-based), lossless JPEG-2000 style; lossy JPEG compression added in DNG 1.4 |
| Embedded previews | Full-size JPEG preview and reduced thumbnail can be embedded in a SubIFD alongside the raw sensor data |
| Metadata embedding | EXIF, IPTC, and XMP written directly into the file; no external .xmp sidecar is required |
| Lens correction opcodes | OpcodeList1/2/3 tags (DNG 1.3+) encode lens distortion, vignetting, and chromatic aberration correction |
| Noise model | NoiseProfile tag stores a per-channel (signal-variance, read-noise) model for improved demosaicing and denoising |
| Camera color calibration | ForwardMatrix and ColorMatrix1/2 tags embed camera-specific color transforms keyed to standard illuminants (e.g., D65, A) |
| Transparency support | AlphaMasked subfile type allows an alpha/transparency channel for masked compositing workflows |
| Multiple image representations | IFD chain can hold several image versions in one file - raw data, standard-size preview, and reduced thumbnail |
| Released | 2004 (Adobe DNG 1.0); DNG 1.7 (2023); basis of ISO 12234-2/TIFF-EP |
| Open standard | Yes · royalty-free |
| Specification | helpx.adobe.com |
DNG conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about DNG files.