What Is a NEF File? Nikon's RAW Format, Explained
A NEF file is Nikon Electronic Format — the RAW format Nikon has used since the DSLR era, and still writes on every current body. A NEF is not a finished picture. It holds the unprocessed readings from every photosite on the sensor at the moment you pressed the shutter, along with the camera's metadata and embedded JPEG previews, in one .NEF file. That makes it the digital negative: everything the camera saw, with every decision about the photograph still open.
The format's reach is unusually wide. Every Nikon DSLR writes NEF, and so does every Z-series mirrorless body — decades of cameras, one extension. The lone exception in the lineup is Nikon's advanced Coolpix compacts, which write NRW, a relative of NEF but not the same format. Here's what's inside a NEF, and how to work with it on a Mac.
NEF at a glance
| Full name | Nikon Electronic Format |
|---|---|
| Extension | .NEF |
| Introduced | In Nikon's DSLR era; the company's RAW format ever since |
| Written by | Every Nikon DSLR and every Z-series mirrorless body |
| What it holds | Unprocessed 12- or 14-bit sensor data, EXIF metadata, embedded JPEG previews |
| Structure | Built on TIFF, like most camera RAW formats |
| Typical size | Roughly 25–60 MB on 24–46 MP bodies at lossless settings; High Efficiency files run far smaller |
| Opens with | macOS Preview and Photos, and RAW editors such as RevelRaw, Lightroom or Capture One |
What's actually inside a NEF file
A camera sensor doesn't record a picture. Each photosite records how much light hit it through a single-color filter — red, green or blue — arranged in a mosaic. A NEF file stores those readings as they came off the sensor:
- The mosaic sensor data. One brightness value per photosite, at 12- or 14-bit precision. No white balance, no sharpening, no Picture Control has been applied yet. Turning this mosaic into a viewable photograph is the job of your RAW editor.
- Metadata. Camera body, lens, exposure settings, autofocus information, and the Picture Control you had dialed in. Editors read this to know how to interpret the data; nothing in it is baked into the pixels.
- Embedded JPEG previews. The camera develops previews with its own processing and tucks them inside the NEF. That's what you see on the camera's screen and in Finder thumbnails — which is why a RAW file can look one way as a thumbnail and another once an editor opens the real data.
NEF compression options, decoded
Modern Nikon bodies let you choose how the NEF gets compressed, and the menu wording matters more than it looks. Lossless Compressed is the usual sweet spot: smaller files with the full sensor data intact, readable by anything that reads NEF at all. Recent Z-series bodies add High Efficiency RAW — the HE and HE★ settings — which shrinks files far below lossless sizes using a newer compression scheme. The catch is on the software side: older apps may not decode High Efficiency files at all. If a NEF from a recent Z body refuses to open somewhere, that setting is the first suspect. The fixes are plain — update the software, or switch the camera back to Lossless Compressed for work that has to travel between apps.
How to open NEF files on a Mac
macOS ships with RAW support for most Nikon bodies, so the basics are already on your Mac: Preview opens a NEF with a double-click, and Photos imports it. Two caveats. Files from a just-released body can lag until Apple ships a RAW update for that camera — the file is fine; the software hasn't caught up yet. And Preview only shows you one develop of the RAW; it isn't an editor.
To actually develop the file — set your own white balance, recover highlights, work the color — you need a RAW editor. RevelRaw is built around Sony Alpha, but it opens Nikon NEF files all the same: drag one in or pick it from File > Open, and AI scene detection ranks 40+ presets against your photo, with the standard fine-tune controls on top. Everything runs on your Mac; no file ever leaves it. The big subscriptions — Lightroom, Capture One — read NEF as well.
How to convert NEF to JPEG
For a quick conversion with no editing, Preview can do it: open the NEF, then File > Export, choose JPEG, and set the quality. For a conversion that's actually developed — your exposure, your color — open the file in a RAW editor and export from there. RevelRaw exports JPEG, PNG, TIFF and HEIF, with platform presets for Instagram, print and web. Either way, keep the NEF afterwards: it's the negative, and every JPEG is just one interpretation of it.
FAQ
What does NEF stand for?
Nikon Electronic Format — Nikon's RAW format since the DSLR era. One file holds the unprocessed sensor data, the camera's metadata and embedded JPEG previews.
Which cameras write NEF files?
Every Nikon DSLR and every Z-series mirrorless body. Nikon's advanced Coolpix compacts are the exception — they write NRW, a related but different format.
How do I open a NEF file on a Mac?
Double-click it: Preview reads NEF from most bodies. Files from a just-released camera may need to wait for a macOS RAW update. To develop rather than just view the file, use a RAW editor such as RevelRaw.
Why won't my NEF file open?
From a recent Z body, check the RAW recording setting first: High Efficiency files (HE and HE★) use a newer compression that older software may not decode. Update the app, or shoot Lossless Compressed. A file from a brand-new body may also be waiting on a macOS RAW update.
Can RevelRaw open NEF files?
Yes. Drag a NEF in and it opens like any other RAW — presets, scene detection and fine-tune controls all work. Exports go out as JPEG, PNG, TIFF or HEIF.
See what's really in your NEF files. Download RevelRaw, drop one in, and watch it ranked against 40+ presets in seconds — with one full-quality export on the house. Get it on the Mac App Store.
Related reading: All RAW formats RevelRaw opens · NRW, Nikon's compact-camera RAW · What is an ARW file?