The basics
What is a DNG file?
DNG is a raw photo format, like Canon's CR3 or Nikon's NEF, with one big difference: it isn't tied to a camera maker. Adobe published the specification in September 2004 as an open, documented alternative to the growing number of proprietary raw formats, and has updated it ever since; version 1.7.1.0 (September 2023) is current. In March 2026 it also became an international standard, ISO 12234-4, part of the same series as TIFF/EP (ISO 12234-2), on which DNG is built.
DNG files come from two places:
- Cameras and phones that write DNG themselves. Adobe lists Leica, Pentax, Ricoh, Casio and Samsung among camera makers with direct DNG support. iPhone Pro models save Apple ProRAW as DNG, and Android's camera API has had a class for writing DNG files (
DngCreator) since Android 5.0, so many Android camera apps offer DNG. - Conversion. Adobe's free DNG Converter for Windows and macOS turns the raw files of hundreds of camera models into DNG. Lightroom can do the same on import, and other tools can export DNG too.
Like any raw file, a DNG holds what the sensor recorded, before the camera decided on white balance, contrast, sharpening and colour. It needs to be developed in raw software, which is why it looks flatter or different from the JPEG the camera or phone would have made.
In short
DNG is the one raw format any software maker can support from a public specification. It's a working file for editing; to share a finished photo, export a JPG.
Anatomy
What's inside a DNG file
A DNG is a TIFF file with extra tags. The first image directory (IFD 0) usually holds a small preview plus the DNG tags that describe the camera; the raw sensor image sits in a SubIFD that IFD 0 points to. Unlike the camera makers' formats, every tag is documented in Adobe's DNG specification. Below is the whole layout of a 2,352-byte DNG we made for this page with Python's tifffile, so that the bytes are real: a 32 × 24 Bayer raw image and an 8 × 6 preview. LibRaw opens and develops it. It isn't offered for download, and a real camera file is the same shape with much bigger images and many more tags.
tiny.dng: 32 × 24 Bayer raw + 8 × 6 RGB preview, 2,352 bytes
offset bytes / tag part
000000 49 49 2A 00 "II", 42: a little-endian TIFF
000004 08 00 00 00 IFD 0 starts at byte 8
000008 17 00 IFD 0: 23 entries
00FE NewSubfileType 1 a reduced-resolution image
0100 ImageWidth 8 the preview: 8 × 6, RGB,
0103 Compression 1 uncompressed
010F Make "Example"
0110 Model "Tiny DNG"
014A SubIFDs 0x250 → the raw image
C612 DNGVersion 01 04 00 00
C613 DNGBackwardVersion 01 01 00 00
C614 UniqueCameraModel "Tiny Example"
C621 ColorMatrix1 3 × 3 XYZ to camera colour
C628 AsShotNeutral 0.5 1 0.667 white balance at capture
C65A CalibrationIlluminant1 21 D65 daylight
… BitsPerSample, StripOffsets, resolution and 6 more
00011E 00 00 00 00 no further top-level IFD
000122 values too big for their entries: strings, rationals, the matrix
0001C0 144 bytes preview pixels (8 × 6 × 3)
000250 10 00 SubIFD: 16 entries
00FE NewSubfileType 0 the full-resolution image
0100 ImageWidth 32
0101 ImageLength 24
0102 BitsPerSample 16
0106 Photometric 0x8023 32803 = colour filter array
828D CFARepeatPatternDim 2 2
828E CFAPattern 00 01 01 02 red, green / green, blue
C61D WhiteLevel 4095 12-bit data in 16-bit samples
… Compression 1, StripOffsets 0x330 and 6 more
000330 1,536 bytes raw sensor values, one per pixel
000930 end of file- 1
49 49 2A 00 08 00 00 00A TIFF header
IIfor little-endian, the number 42, and the offset of the first IFD, exactly as in any TIFF. That's why a DNG renamed to.tifstill opens as a TIFF in many programs, showing the preview. - 2
00FE NewSubfileType 1IFD 0: the preview
A value of 1 marks a reduced-resolution image. Cameras and converters normally put a preview here (often a larger JPEG one in another SubIFD too), so file browsers can show a picture without developing the raw data.
- 3
C612 DNGVersion 01 04 00 00DNG version
The four bytes of the specification version the file follows, here 1.4.0.0. Its presence in IFD 0 is what makes a TIFF a DNG: PRONOM's signature for DNG is a TIFF header plus this tag.
- 4
C613 DNGBackwardVersion 01 01 00 00Oldest reader that can cope
The lowest DNG version a reader must support to read this file. A file using a newer feature, such as JPEG XL compression, sets it higher, and older software should refuse it rather than show garbage.
- 5
C614 UniqueCameraModelWhich camera
A name for the camera model, used by raw software to pick a matching profile. Make and Model are the usual TIFF tags.
- 6
C621 ColorMatrix1, C628 AsShotNeutralColour calibration
Proprietary raw formats leave colour handling to each converter's own knowledge of the camera. DNG carries it in the file: matrices that convert between the sensor's colours and standard XYZ colour for a stated light source (
C65A: 21 is D65 daylight), and the white balance the camera chose. - 7
014A SubIFDs 0x250Pointer to the raw image
The full-size sensor data lives in a SubIFD at byte 592. Files can have several: the raw image, a full-size preview, or a transparency mask.
- 8
0106 Photometric 0x8023, 828E CFAPatternColour filter array
PhotometricInterpretation 32803 means each pixel holds one colour, as recorded through the sensor's filter. The 2 × 2 pattern
00 01 01 02reads red, green, green, blue (RGGB). A linear DNG uses 34892 (LinearRaw) instead: three colours per pixel, already demosaiced. - 9
C61D WhiteLevel 4095Bit depth in practice
Samples are stored in 16 bits, but the white level says the sensor saturates at 4,095, so it's 12-bit data. Cameras commonly record 12 or 14 bits per pixel.
- 10
000330: 1,536 bytesThe raw data
32 × 24 values of 2 bytes, uncompressed. A camera DNG would normally store this in tiles compressed with lossless JPEG, or with lossy JPEG or JPEG XL if a smaller file was chosen.
Raw data
What "raw" means, and why a DNG looks flat
Nearly all camera sensors see in one colour per pixel. A grid of coloured filters, usually red, green and blue in a 2 × 2 Bayer pattern, sits on top of the sensor. A raw file stores those single-colour values, typically at 12 or 14 bits per pixel: 4,096 or 16,384 levels, against 256 in an ordinary JPEG.
To turn that into a photo, raw software has to demosaic (estimate the two missing colours for every pixel), apply the white balance, convert the camera's colours into a standard colour space, and apply a tone curve. Each program does these steps its own way, so the same DNG can look different in Lightroom, darktable and Apple Photos. A raw image shown with a neutral starting point looks flat and dull next to the camera's JPEG, which has contrast and saturation added.
What DNG adds is a way to carry the information needed for those steps in the file itself: colour matrices and camera profiles, the white balance at capture, the black and white levels, lens corrections stored as opcodes (small processing instructions such as distortion or vignetting correction), and the camera maker's private data, preserved as a block. A reader that has never heard of the camera can still develop the image.
Variants
DNG versions and compression: lossless, lossy, linear, JPEG XL
| Version | Notable additions |
|---|---|
| 1.0 (September 2004) | The first public specification |
| 1.4 (2012) | Lossy compression (JPEG-based, compression value 34892) |
| 1.6 | Semantic masks, gain table maps, triple-illuminant camera profiles; features used by Apple ProRAW |
| 1.7.0 (May 2023), 1.7.1 (September 2023) | JPEG XL compression (value 52546), plus tags such as ImageSequenceInfo and ImageStats |
- Lossless (the usual kind). The raw data compressed with lossless JPEG, the same old JPEG mode many camera formats use. Converting a camera's raw file to lossless DNG keeps every value.
- Lossy DNG. Since version 1.4, a DNG can store raw data with lossy compression. The files are much smaller and still hold high-bit-depth, unprocessed data, but some fine detail is discarded and can't be recovered.
- JPEG XL. DNG 1.7 added JPEG XL, a newer codec that can compress either losslessly or lossily. Software that predates DNG 1.7 can't decode these files.
- Linear DNG. The data has already been demosaiced into three colours per pixel (PhotometricInterpretation 34892). It's still high-bit-depth data without white balance or a tone curve applied, but the demosaicing can no longer be redone with a better method, and with three values per pixel instead of one the files are larger.
When a camera's own raw format is converted, the DNG can also embed the original raw file inside itself, so it can be extracted again later, at the cost of adding the original's full size.
Comparison
DNG vs proprietary raw, JPEG and HEIF
| DNG | CR3, NEF, ARW… | JPG / HEIC | |
|---|---|---|---|
| Specification | Public (Adobe), ISO 12234-4 | Private; decoders are reverse-engineered | Public standards |
| Data | Raw sensor values (or linear) | Raw sensor values | A finished picture |
| Bits per pixel | Usually 12 to 16 | Usually 12 or 14 | 8 (JPEG), 8 or 10 (HEIC) |
| Colour calibration | In the file | In each converter's camera database | Already applied |
| New camera support | Any DNG reader | Needs a software update | Universal |
| Size | Large (smaller with lossy or JPEG XL) | Large | Small |
Arguments for converting to DNG: long-term access without depending on one company's raw decoder, colour data carried in the file, and the option of lossy compression. Arguments against: the camera maker's own software, such as Canon's Digital Photo Professional, usually reads only the maker's own formats, some maker-specific details are kept only as private data that other tools ignore, and the conversion is one more step. Many photographers keep the originals and use DNG only where it helps.
How to
How to open, edit and convert a DNG file
- Edit: Adobe Lightroom, Lightroom Classic, Camera Raw (in Photoshop), Capture One, darktable, RawTherapee, DxO PhotoLab and Affinity Photo all develop DNG.
- Just look: on a Mac, Photos and Preview open DNG; Apple's systems include basic DNG support for cameras not on their raw list. On Windows, install Microsoft's free Raw Image Extension (built on LibRaw) for thumbnails in File Explorer and viewing in Photos. iPhones and Android phones open DNG in their gallery apps.
- Make one: run Adobe DNG Converter on a folder of camera raw files. It's free for Windows and macOS and has a command-line mode for batch jobs.
- Export a JPEG: develop the image in any of the editors above, then export. On the command line,
darktable-cli photo.dng photo.jpgorrawtherapee-cli -o photo.jpg -c photo.dng. - Inspect:
exiftool -a -G1 photo.dnglists every tag, including the DNG version and compression.
"This DNG can't be opened"
DNG is open, but readers still have to support the version and features a file uses. A JPEG XL-compressed DNG (version 1.7) or one with newer ProRAW features can fail in an older app, or show only the embedded preview. Update the software, or ask for a copy saved with an older compatibility setting (Adobe DNG Converter has one).
Troubleshooting
Why a DNG looks different, or won't open
- It looks flat, dark or less colourful than the JPEG. Normal for raw: the camera's or phone's picture style isn't applied. Apply a profile or auto-tone in your editor.
- It changes after a second. The viewer showed the embedded preview first, then rendered the raw data with its own settings. The second version is the raw file as your software develops it.
- A ProRAW photo looks different outside Apple Photos. Apple notes that apps that support DNG can open ProRAW files, but the images may look different. Each app develops the data with its own processing.
- It's huge. Raw files are large; Apple quotes about 25 MB for a 12-megapixel ProRAW photo and about 75 MB at 48 megapixels. Lossy or JPEG XL compression makes DNGs much smaller.
- A converted DNG doesn't open in the camera maker's software. Expected: most makers' apps read only their own raw format. Keep the originals if you need those tools.
Privacy
Privacy: what a DNG says about you
A DNG holds the same kinds of metadata as a camera JPEG, often more:
- GPS location, especially in DNGs from phones with location switched on.
- Serial numbers. DNG has a CameraSerialNumber tag, and makers' private data can include lens and body serial numbers that link photos to one camera.
- Names and edits. Artist and copyright fields, and XMP metadata with keywords, ratings and the full list of Lightroom adjustments.
- An embedded original. If the original raw file was embedded, all of its metadata is in there too.
To share a photo, export a JPEG without location data rather than sending the DNG. exiftool -gps:all= photo.dng removes GPS from a DNG if you must send the raw file.
Sample files
There are no sample DNG files on this page. To get one, take a RAW photo with an Android camera app or an iPhone Pro (ProRAW), or convert any camera's raw file with the free Adobe DNG Converter.
Put it online
Have a DNG file? Give it a link.
Drop a DNG on 99helpers and it gets its own web address, handy for sending a raw file to an editor or retoucher. Browsers can't display raw files, so the file downloads when the link is opened; add a JPG if people just need to see the picture.
Questions
DNG files, frequently asked
What is a DNG file?
A Digital Negative: an openly documented raw photo format from Adobe, based on TIFF. Some cameras and phones write it directly, and other cameras' raw files can be converted into it.
How do I open a DNG file?
Photos or Preview on a Mac; Windows Photos with Microsoft's free Raw Image Extension; or any raw editor such as Lightroom, Photoshop, darktable, RawTherapee or Capture One.
Is DNG better than RAW?
DNG is a raw format. Compared with a camera maker's own format it's documented and readable by any DNG software, but the maker's own app may not open it. The image data is the same when converted losslessly.
Is DNG lossless?
Usually. Most DNGs use lossless JPEG compression. Since DNG 1.4 a file can also use lossy compression, and since 1.7 JPEG XL, which can be lossy or lossless.
How do I convert DNG to JPG?
Open it in a raw editor (Lightroom, Photos, darktable, RawTherapee) and export as JPEG. The editor develops the raw data first, so adjust exposure and colour before exporting.
Why is my iPhone photo a DNG?
Apple ProRAW is switched on in the Camera settings. ProRAW photos are saved as DNG files, much larger than HEIF or JPEG; turn RAW off in the Camera app for normal photos.
Is DNG an ISO standard?
Yes. ISO 12234-4, "Digital negative format", was published in March 2026. Adobe still publishes the DNG specification itself.
Should I convert my raw files to DNG?
It's optional. DNG helps with long-term access and older software that doesn't know a new camera. Keep the originals if you use the camera maker's software, which usually can't read DNG.
Related formats
Other file types explained
Keep going
Related
Sources
- Adobe: Digital Negative (DNG) specification and DNG Converter
- ISO 12234-4:2026, Digital imaging, Image storage, Part 4: Digital negative format
- Library of Congress: Digital Negative (DNG) 1.6
- PRONOM fmt/1943: Digital Negative Format (DNG) 1.7
- Apple: About Apple ProRAW
- Microsoft Store: Raw Image Extension
Last reviewed 27 October 2026.