NEF stands for Nikon Electronic Format, the raw format of Nikon cameras. Every Nikon DSLR since the D1 of 1999 and every mirrorless Z camera saves its raw photos as NEF, so a file with this extension comes from a Nikon D-series or Z-series body, or from someone's Lightroom or NX Studio archive. Nikon's compact Coolpix cameras with raw support use a close relative with the extension NRW.
Twenty-five years of NEF
Unlike Canon, Nikon never replaced its raw format with a new extension. The container stayed TIFF-based, and new features were added inside it. That is why a 1999 D1 file and a 2025 Z-series file share the same suffix but not the same decoder. In 2005 NEF made headlines when photographers found that the D2X and D2Hs encrypted the white balance information. Adobe could not read it without Nikon's permission, and after public criticism Nikon released a small SDK for third-party developers. The episode is one reason the debate about open raw formats such as DNG started.
Compression options and why file sizes differ
Depending on the model, a Nikon offers several NEF variants, and the choice affects which software can read the files:
- Uncompressed and lossless compressed: all sensor data kept, the lossless version is noticeably smaller.
- Compressed (lossy): Nikon thins out tonal values in the bright areas, where the eye cannot tell the difference. In extreme edits of the highlights it can show.
- 12 or 14 bits per pixel on most bodies. 14 bits gives smoother tonal transitions when you lift deep shadows.
- RAW size M and S on some bodies: smaller files that no longer contain the full raw data.
- High Efficiency and High Efficiency★ (since the Z 9 in 2021): a new codec based on TicoRAW from intoPIX. The files are much smaller, but older programs and many free raw developers cannot decode them.
Besides the raw data, a NEF contains EXIF, Nikon maker notes (lens, Picture Control, Active D-Lighting, focus point) and an embedded JPEG preview, on most models in full size.
How to open NEF files
- Nikon NX Studio (Windows, macOS) is free. Released in 2021, it merged the older ViewNX-i and Capture NX-D. It reads every NEF variant including High Efficiency and applies Picture Controls exactly as the camera does. It saves edits in a separate sidecar file next to the photo, the NEF itself stays untouched.
- Windows 10 and 11: the free Raw Image Extension from the Microsoft Store lets Photos open NEF and adds thumbnails in File Explorer.
- macOS, iPhone and iPad: Preview and Photos open NEF from supported cameras.
- Linux: darktable and RawTherapee, both free.
- Lightroom and Photoshop through Camera Raw, also in Lightroom mobile.
Common NEF problems
NEF not supported or "unknown camera"
The program is older than the camera. Update it, or convert the files to DNG with the free Adobe DNG Converter. With a Z camera, also check whether you shot High Efficiency RAW: many programs that read a normal NEF from the same body refuse HE files. Switching the camera to lossless compressed avoids the problem for future shots.
NEF looks dull or darker than on the camera
The camera preview has Picture Control and Active D-Lighting applied. Other raw editors ignore these settings and start neutral. Open the file in NX Studio to see the camera's rendering, or adjust contrast and shadows yourself.
NEF file is corrupted
Copy it again directly from the card with a card reader. If the raw data is damaged, the embedded preview often survives: exiftool -b -JpgFromRaw photo.NEF > photo.jpg.
Converting NEF
Most people convert NEF to JPG to share or print, or to TIFF for software without raw support. Our converter develops it with camera white balance, standard demosaicing, sRGB, 8 bits per channel, full resolution. Picture Control, Active D-Lighting, lens corrections and noise reduction are not applied, and full EXIF with maker notes is not copied. Our converter cannot read High Efficiency NEF files yet, and very new bodies may not be supported yet; for those, export JPG or TIFF from NX Studio. Step-by-step details are on NEF to JPG.
Other raw formats: CR2 (Canon), ARW (Sony), ORF (Olympus/OM System).
Quick facts
| Developer | Nikon |
|---|---|
| First used | 1999 (Nikon D1) |
| Current status | In use in all Nikon DSLR and Z cameras; NRW for Coolpix compacts |
| Type | Camera raw image, TIFF-based, proprietary |
| Compression | None, lossless, lossy, High Efficiency (TicoRAW) |
| Bit depth | 12 or 14 bits per pixel |
| Typical use | Raw photos from Nikon cameras |
Further reading: Camera raw formats at the Library of Congress, Nikon's announcement of NX Studio.