Skip to content

NEF File Format (.nef)

A NEF file holds the unprocessed readout from a Nikon camera's sensor inside a TIFF-based container, together with a JPEG preview and the Nikon maker note that records how the camera was set when the shutter fired.

.nefImage Files

NEF at a glance#

Full nameNikon Digital SLR Camera Raw Image File
File extension.nef
CategoryImage Files
DeveloperNikon Corporation
First released1999
MIME typesimage/x-nikon-nef
CompressionLossy or lossless, depending on how the file was written
FileFlip supportFileFlip reads this format but does not write it

What a .nef file can hold#

These are the things a NEF file either supports or does not, and they are what decides whether a conversion keeps everything or quietly drops something.

Lossless compressionYes
Embedded metadataYes
Colour profilesYes

Strengths and limitations of NEF#

What NEF does well

  • Records 12-bit or 14-bit data per channel, against 8 bits in the JPEG the same camera would have written
  • Keeps white balance, Picture Control and sharpening as instructions rather than applying them to the pixels, so they can be reset later without a second copy of the file
  • The camera offers a lossless compressed option that shrinks the file with nothing discarded, and recent Z-series bodies add Nikon's High Efficiency compression on top of it
  • Every Nikon DSLR since the D1 and every Z-series body writes NEF, so a raw workflow built for one Nikon camera carries to the next

Where NEF falls short

  • Nikon has not published the NEF specification, so everything outside Nikon's own software reads the format through reverse-engineered decoders such as LibRaw and ExifTool
  • Parts of the Nikon maker note are encrypted, including the lens data written by cameras from the mid-2000s onward, so some shooting information only reads back fully in Nikon's software
  • Nikon applies noise processing to the sensor data before writing the file, which astrophotographers have objected to for years because they want the untouched readout
  • Each new camera body writes its own variant, so a NEF from a just-released Nikon often will not open until the software you use adds that model

Shoot NEF when exposure, white balance or highlight recovery may need to change after the fact, because the camera's JPEG has already discarded the data those edits draw on.

Convert NEF to JPEG once the editing is finished and the picture has to go somewhere ordinary such as a web upload or a print lab, or to DNG when the goal is an archive that does not depend on Nikon's format staying supported.

How to open a .nef file#

A .nef file opens in the programs below, grouped by the platform you are on. If you would rather not install anything, FileFlip converts NEF into a format your machine already opens, and it does it in the browser tab rather than on a server.

PlatformPrograms that open it
WindowsNikon NX Studio, Adobe Lightroom Classic, Adobe Photoshop, Capture One, RawTherapee, darktable
macOSNikon NX Studio, Photos, Preview, Adobe Lightroom Classic, Adobe Photoshop, Capture One
Linuxdarktable, RawTherapee, digiKam
iOSAdobe Lightroom, Photos
AndroidAdobe Lightroom
WebFileFlip

NEF questions people ask#

What software opens NEF files?

NEF files open in Nikon's own NX Studio, which is a free download and reads NEF and NRW but no other raw format. Adobe Camera Raw, Lightroom Classic and Photoshop read NEF, as do Capture One and the open-source processors RawTherapee and darktable, and macOS shows NEF previews in Photos and Preview without extra software.

Does converting NEF to DNG lose quality?

Converting a NEF to DNG carries the sensor data across unchanged, because the conversion rewrites the container instead of re-rendering the image. What goes away is Nikon's own software: NX Studio opens NEF and NRW but not DNG, so the camera's Picture Control rendering is no longer on offer for that file, and Adobe's DNG Converter has to already support the camera model before it will convert at all.

Why does Nikon use NEF instead of DNG?

Nikon has never offered DNG as an in-camera setting, and NEF carries Nikon-specific data that Nikon's software depends on, including Picture Control instruction sets and maker note sections the camera encrypts. Anyone who wants DNG converts after the fact with Adobe's DNG Converter, which Nikon plays no part in.

What is the difference between NEF and NRW files?

NEF is what Nikon's DSLRs and Z-series mirrorless cameras write, while NRW is the raw format a small set of Coolpix compact and bridge cameras write, starting with the P6000 in 2008. Both sit in the same TIFF-based structure, but NRW signs its white balance block differently, drops the linearization table NEF carries, and keeps a JPEG-compressed image in the file's first directory, which is how tools such as ExifTool tell the two apart.

Converting NEF files#

FileFlip does not write .nef files, so nothing on the site converts into this format. It works as a source only.

Every conversion runs inside your browser. The file is read from your disk, the work happens on your own machine, and nothing is uploaded. How FileFlip works names the engine behind each family and how to verify that for yourself.