A raw file is the nearest thing digital photography has to a negative, and it is written in a format its maker has rarely documented. Keeping it readable for decades takes a policy.
A raw file is the least processed record a digital camera can produce: the data from the sensor, before it has been turned into a finished picture. Photographers keep raw files for the same reason their predecessors kept negatives. The trouble is that a negative can be read by holding it up to a window, while a raw file can only be read by software that understands how one manufacturer, and often one camera model, chose to write it. The Library of Congress, in its long-running survey of digital formats, sums up the position in a sentence: there is very little disclosure of raw format specifications by manufacturers.
That is the born-digital problem in miniature. The original is precious and its format is somebody else's secret.
What is a raw file, and why does it matter to an archive?
A digital sensor records brightness through a mosaic of coloured filters. Turning that mosaic into a full-colour image involves decisions about white balance, tone, sharpening and colour that the camera makes for a JPEG and defers for a raw file. The raw file therefore holds more tonal information than any finished image made from it, along with the freedom to make those decisions again with better software.
For an archive, three things follow.
- The raw file is the original. Anything rendered from it is a derivative, however good.
- The raw file is not a picture. Two programs will render the same raw file differently, and the same program may render it differently after an update. If the photographer's own interpretation matters, it has to be preserved separately, as a rendered file or as saved settings.
- The raw file is dependent. It needs a decoder, and decoders are written and maintained by companies with their own priorities.
Why are NEF and other camera raw formats a preservation risk?
NEF is Nikon's raw format. Canon, Sony, Fuji, Phase One and others each have their own, and the Library of Congress groups them in a single description, "Camera Raw Formats", precisely because they share the same weaknesses. Its assessment makes four points that an archive should take seriously.
- The formats are proprietary and not usually openly documented. Third-party software reads them largely through reverse engineering.
- Long-term support is uncertain, particularly if a manufacturer goes out of business.
- In at least one instance, data elements in a raw format were encrypted, so that the maker's own software was needed to process the files.
- Raw files often lack support for standard descriptive metadata such as IPTC, so captions and credits cannot be relied on to live inside them.
None of this means NEF files are about to become unreadable. Raw files from widely sold cameras are read by a broad range of current software. The risk is slow and specific: an obscure model, an early firmware version, a file that a future release quietly stops decoding. It is the kind of risk that is cheap to insure against now and expensive to discover later.
What does DNG offer, and what are its limits?
Adobe released the Digital Negative format, DNG, in 2004 as a common container for raw data. The Library of Congress records it as fully documented and as a subtype of TIFF 6.0, with the specification published by Adobe together with a patent licence for anyone who writes software to read or write it. That openness is the whole argument for DNG: the instructions for reading the file are public, so reading it does not depend on any one company continuing to exist.
Its second useful property is less well known. A DNG file can carry the complete original raw file inside it, byte for byte, in a tag designed for the purpose. Conversion with embedding gives an open wrapper and the camera original in one file, at the cost of a considerably larger file.
The limits are equally real. DNG is still one company's format, although an open one. A conversion without embedding discards the original structure of the camera file, including any maker-specific data the converter did not understand. And the Library of Congress itself has stated no preference between raw and DNG; its staff have described DNG as "somewhat normalized", sitting between camera raw, which is "too raw", and uncompressed TIFF, which is "too cooked".
What do national institutions recommend?
The Library of Congress Recommended Formats Statement ranks formats for photographs it would wish to receive in digital form.
| Tier | Formats, in the Library's order |
|---|---|
| Preferred | TIFF; JPEG 2000; PNG; JPEG |
| Acceptable | Photoshop PSD; JPEG 2000 Part 2; Digital Negative (DNG); proprietary camera raw formats, including NEF; GIF |
Two things stand out. The preferred formats are all finished, documented image formats, with TIFF first. And raw formats are acceptable but not preferred: the Library will take them, and would rather have something it can be sure of opening. That is a statement about what a collecting institution wants delivered. It is not an instruction to delete raw files, and no preservation body gives one.
For an archive deciding on its own masters, the reasoning behind each format is set out in the comparison of TIFF, DNG and JPEG 2000.
What is a workable policy for raw files?
A policy for born-digital photographs can fit on a page.
- Keep the camera original, unaltered. Never edit, re-save or "optimise" it. Record a SHA-256 checksum on the day it enters the archive, using a bulk tool or, for single files, the image hash generator. The Digital Preservation Coalition describes a checksum as a digital fingerprint, and it is the only proof that an original is still original.
- Keep the sidecar. If edits, ratings and captions live in a companion file, it stays with the raw file and shares its name.
- Make a documented rendering. For photographs that matter, export a TIFF and note the software and version used. This is the photograph as a picture, readable by almost anything.
- Decide on DNG deliberately. Either convert with the original embedded, keep DNG beside the raw file, or do neither and rely on steps 1 and 3. Write down which and why.
- Embed rights and descriptive metadata in the rendered copies. Creator, copyright notice and credit line can be written into JPEGs with the tool to add copyright metadata, and checked with the EXIF viewer, which reads the camera data already present in a file.
- Store everything under a 3-2-1 scheme and verify it on a schedule, as described in the guide to the 3-2-1 backup rule with checksums.
- Test old files. Every few years, open a sample from every camera model in the archive with current software. A format that has stopped opening is a migration project, and it is far better found by sampling than by accident.
Keeping originals has a use beyond preservation. An unbroken line from camera file to published image is the strongest evidence of authorship a digital photograph can have, and it is among the things buyers ask about provenance.
A working example: NEF, TIFF and JPEG side by side
The Robert Harper Photograph Library is a mixed case of the usual kind. Its inventory, published in full at /archive-inventory/, records the digital files as Nikon NEF raw files, TIFFs and JPEGs: originals, finished renderings and delivery copies, as a working studio produced them. The inventory counts 95,487 unique photographs and 177,143 frames including duplicates and variants, figures to which its 503 lines add up exactly, though they have not been checked frame by frame against the physical material. The film side, mainly 6 x 7 colour transparency, is largely unscanned and raises the opposite question, since those originals are physical.
The archive also publishes a dataset card describing the holdings for technical readers. Archivists, preservation specialists and prospective partners who would like to discuss the born-digital holdings are welcome to make contact through professional access.
Frequently asked questions
Are raw files safe for long-term archiving?
They are worth keeping and risky to rely on alone. The Library of Congress notes that manufacturers disclose very little about their raw formats and that long-term support is a risk, especially if a maker stops trading. Keep the raw file as the original, and keep a rendering in a documented format beside it so that the photograph stays usable whatever happens to the software.
Should I convert NEF files to DNG?
Converting gives you a file in a publicly documented format, which reduces dependence on one manufacturer. It also changes the original. A common compromise is to convert while embedding the complete NEF inside the DNG, or to keep both files. The Library of Congress accepts both DNG and proprietary raw formats for photographs and expresses no preference between them.
What is the difference between a raw file and a TIFF?
A raw file records the sensor's data before the picture has been fully processed, so white balance, tone and colour can still be decided afterwards. A TIFF is a finished image: the decisions have been made and written into the pixels. Raw keeps the most information; TIFF is the most widely readable. Archives often keep both for that reason.
Will software still open my raw files in twenty years?
Nobody can promise that. Support depends on software makers continuing to decode each camera's format, and the formats are mostly undocumented. The practical protections are to keep files in more than one form, to record which software and version rendered each image, and to test a sample of old files every few years so that a problem is found while it can still be fixed.
Do raw files hold captions and copyright metadata?
Not reliably. The Library of Congress notes that raw files often lack support for standard IPTC descriptive metadata. Raw workflows usually store captions and edits in a separate sidecar file, which must be kept with the image and named to match. Rendered TIFF and JPEG copies can carry embedded creator, copyright and caption fields that travel with the file.
Sources
- Library of Congress, Sustainability of Digital Formats: Camera Raw Formats (group description)
- Library of Congress, Sustainability of Digital Formats: Adobe Digital Negative (DNG), Version 1.1
- Library of Congress: Recommended Formats Statement, still image works
- Digital Preservation Coalition Handbook: Fixity and checksums
Published by Archive.London. Corrections are welcome under our editorial policy.

