.NEF

NEF File

Nikon Electronic Format (Nikon camera raw image)
Ask a question
QUICK ANSWER

A NEF file is a raw image from a Nikon camera - the unprocessed sensor data, like a digital negative. On Windows, install the free Raw Image Extension from the Microsoft Store to see thumbnails; use Nikon's free NX Studio to edit. To share, convert to JPG; to archive, convert to DNG.

Developer: Nikon Category: Camera Raw Files MIME: image/x-nikon-nef
OPENS ON Windows macOS Linux
Related: .CR2 · .ARW · .RW2 · .RAF

On this page

19k+ extensions indexed
Last reviewed Aug 4, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the NEF file format?

.nef is a raw image file that stores data exactly as it was captured by the camera's sensor. .nef is a proprietary format developed by Nikon, built on a TIFF-based container - most files begin with the little-endian TIFF header (49 49 2A 00) at offset 0, with Nikon-specific MakerNote tags embedded inside. While Nikon's own software, Nikon NX Studio, offers the deepest integration, many third-party tools such as Adobe Lightroom, darktable, and RawTherapee also support it.

.nef files tend to be large, but Nikon cameras aimed at non-professionals use compression to keep file sizes manageable. Professional and semi-professional models allow users to choose between uncompressed, lossless-compressed, and lossy-compressed output - the lossy mode only slightly reduces image quality.

.nef files store not only raw sensor image data but also metadata and complete information about the device with which the image was taken, including the author, copyrights, GPS data, and image parameters that can be adjusted non-destructively:

  • Exposure,
  • ISO,
  • Contrast,
  • Tone,
  • White balance,
  • Hue and saturation.

.nef files also retain a history of all changes applied during editing, letting users revert any modification at any time. An embedded JPEG preview - a thumbnail and often a full-resolution preview - is included for quick browsing without loading a raw processor. Editing raw images is often compared to developing analog photos, which is why RAW formats like .nef are sometimes called digital negatives. Once finished, images can be saved back as .nef, exported to another format, or converted to the more universal .DNG container for broader compatibility. Compact Nikon cameras instead produce .NRW files, a simplified variant of the same TIFF-based container.

Security & safety

RISK: LOW

NEF is a passive image data file - sensor data and metadata, not executable code, so opening one is safe. The practical cautions are non-malware: NEF is large and proprietary, so keep originals backed up and consider archiving to open DNG for longevity; and remember EXIF/MakerNote metadata (camera, lens, timestamps, sometimes GPS) travels with the file - strip it before publishing if privacy matters. Editing in raw developers is non-destructive, so the original NEF is preserved. Beware fake "NEF viewer/converter" download sites bundling adware; use Nikon NX Studio or the Microsoft Store Raw Image Extension instead.

Format details

in a nutshell
FULL NAMENikon Electronic Format (Nikon camera raw image)
DEVELOPERNikonsince circa 1999 (Nikon D1); still in use on current Nikon bodies
MIME TYPEimage/x-nikon-nef
TYPETIFF-based proprietary camera raw image (binary)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
49492A00
ASCII
II*·
NEF is built on the TIFF/EP container. Most files start with the little-endian TIFF signature 49 49 2A 00 ("II*\0") at offset 0; some older/early variants used big-endian "MM" (4D 4D 00 2A). It is distinguished from a generic TIFF by Nikon-specific MakerNote tags and the "NIKON" string in the EXIF, not by a unique offset-0 marker. (Compact cameras use the closely related NRW variant.)

Programs that open NEF files

Windows7 apps
darktable Open-source Free Lightroom-style raw developer; import the NEF to edit non-destructively and export JPG/TIFF.
RawTherapee Open-source Free, powerful raw processor with strong Nikon support; open the NEF and export.
Nikon NX Studio Free Nikon's free official editor; open the NEF to develop it with model-accurate colour and Picture Control, then export JPG/TIFF.
Raw Image Extension (Microsoft Store) Free Install from the Microsoft Store to show NEF thumbnails/previews in File Explorer and the Photos app.
Adobe Lightroom / Photoshop (Camera Raw) Paid Import the NEF; Camera Raw develops it. Industry standard but subscription-based.
IrfanView (+ RAW plugin) Free Fast free viewer; with its RAW plugin it displays NEF and batch-converts to JPG.
XnView MP Free Free image viewer/converter that reads NEF (embedded preview) and batch-exports to JPG/PNG.
macOS3 apps
darktable Open-source Free raw developer for Mac; import and edit the NEF, export to JPG/TIFF.
Apple Photos / Preview Built-in macOS has built-in Nikon raw support; double-click to preview, or import into Photos to view/edit NEF.
Nikon NX Studio Free Nikon's free editor for Mac; develop NEF with model-accurate colour.
Linux3 apps
darktable Open-source The go-to free raw developer on Linux; import NEF, edit, export.
RawTherapee Open-source Open the NEF to develop with fine-grained control; export JPG/TIFF.
GIMP (+ darktable/RawTherapee plugin) Open-source GIMP opens NEF via its darktable/RawTherapee raw loader, then edits as a normal image.

Technical details

deep spec
Container formatTIFF/EP-based binary; uses IFD (Image File Directory) chain structure shared with standard TIFF
Magic bytes49 49 2A 00 (little-endian TIFF signature) at offset 0; some early variants use big-endian 4D 4D 00 2A
MIME typeimage/x-nikon-nef
Raw bit depth12-bit or 14-bit per channel depending on camera model and user setting
Bayer CFA dataStores raw Bayer-pattern sensor data; full demosaicing is performed by the raw-processing application, not in-camera
Compression optionsUncompressed, lossless compressed, and lossy compressed - selectable per camera model
Embedded previewIncludes a JPEG thumbnail and a full-resolution JPEG preview for quick display in file browsers
Metadata standardEXIF 2.x with a Nikon-proprietary MakerNote IFD for camera-specific shooting data
Non-destructive editingAdjustments stored as metadata inside the file or in a sidecar .xmp file; original pixel data is never overwritten
Compact camera variant.nrw - used by Nikon COOLPIX compact cameras; simplified NEF container, same TIFF base
DNG conversionCan be losslessly converted to .dng via Adobe DNG Converter for universal raw-processor compatibility
White balanceShot white balance recorded as EXIF metadata; freely re-adjustable in any supported raw processor
Typical file size15-50 MB per image, varying with sensor resolution (e.g. 24 MP vs. 45 MP) and compression setting
GPS dataOptional GPS coordinates embedded as EXIF GPSInfo IFD when camera body or paired device logs location
Releasedcirca 1999 (Nikon D1); still in use on current Nikon bodies
Specificationwww.nikonusa.com

NEF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with NEF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about NEF files.

Frequently asked questions

How do I open a NEF file on Windows?
Use Nikon's free NX Studio to open and edit it. To just see thumbnails/previews in File Explorer and Photos, install the free Raw Image Extension from the Microsoft Store. Free darktable and RawTherapee also open NEF.
What free program opens NEF files?
Nikon NX Studio (the official free editor), darktable and RawTherapee (free, open source) all open and develop NEF. On Mac, Photos and Preview support Nikon raw natively.
How do I convert a NEF to JPG?
Open the NEF in NX Studio, darktable, RawTherapee or IrfanView, adjust as needed, then Export/Save As JPEG. These tools also batch-convert whole folders of NEF to JPG.
Why can't I see my NEF photos in Windows?
Windows doesn't decode Nikon raw out of the box. Install the free Raw Image Extension from the Microsoft Store and the thumbnails/previews will appear in Explorer and Photos.
What's the difference between NEF and NRW?
Both are Nikon raw formats. NEF comes from Nikon's DSLR and mirrorless cameras; NRW is the variant used by some Nikon Coolpix compact cameras. The same software (NX Studio, darktable) opens both.
Should I convert NEF to DNG?
DNG is an open, documented raw format good for long-term archiving and broad app support. Converting (with the free Adobe DNG Converter) is optional - many photographers keep the original NEF as the master and use DNG only for archiving.
Is NEF better than JPEG?
For editing, yes - NEF keeps the full unprocessed sensor data, giving far more latitude to recover highlights/shadows and adjust white balance. JPEG is smaller and ready to share but already processed and compressed. Shoot raw, then export JPEG.

References

1Nikon - NX Studio (official free software)downloadcenter.nikonimglib.com
2Microsoft Store - Raw Image Extensionapps.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.BINCD/DVD Disc Image (BIN/CUE)
4.PARTPartial Download File
5.DATProgram Data File (generic)
6.EXEWindows Executable (Portable Executable)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.TMPTemporary File
10.TXTPlain Text File

Related extensions

.CR2Canon RAW 2 (Canon digital camera raw image, version 2)
.ARWSony Alpha Raw (Sony digital camera raw image)
.RW2Panasonic Lumix RAW Image (version 2)
.RAFFujifilm RAW Image (RAF)
.DNGDigital Negative (Adobe DNG)
.RAWRaw Camera Image

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z