A NEF file is a raw image format created by Nikon cameras
NEF stands for Nikon Electronic Format. When you take a photo on a Nikon camera and choose to save it as raw rather than JPEG, the camera writes a NEF file. Raw means the file contains the unprocessed sensor data directly from the camera — every bit of information the sensor captured, before any sharpening, color correction, or compression happens.
The main difference between NEF and JPEG is that JPEG applies processing inside the camera and throws away data to make the file smaller. A NEF file keeps everything, which means it takes up much more space on your memory card but gives you far more control later when you edit the photo on your computer.
You cannot open a NEF file in most standard image viewers. You need software that understands the format — Nikon's own ViewNX-i, Adobe Lightroom, Adobe Photoshop, or free tools like RawTherapee or Darktable. If you try to open a NEF file in Windows Photos or a basic image viewer, it will not recognize it.
Key Takeaways
- NEF is Nikon's raw image format, containing unprocessed sensor data that gives you more editing control than JPEG.
- NEF files are much larger than JPEG files from the same photo, typically 20 to 50 megabytes depending on your camera model.
- You need specialized software to open and edit NEF files — standard image viewers and web browsers cannot read them.
- Converting a NEF to JPEG or PNG happens during editing, not automatically, so you must choose when and how to save a finished version.
Why photographers choose NEF over JPEG
Raw files like NEF preserve detail in shadows and highlights that JPEG compression loses. If you shoot a photo where the sky is very bright and the ground is very dark, a JPEG forces the camera to choose: keep the sky detail and lose the ground, or keep the ground and blow out the sky. A NEF file keeps both, and you decide during editing which to emphasize.
Raw also gives you control over white balance after the shot. With JPEG, the camera decides whether the photo looks warm or cool, and you can only adjust it slightly in editing. With NEF, you can shift the color temperature dramatically without losing quality, because the raw data contains the information the camera used to make that decision.
The trade-off is workflow. Shooting NEF means every photo needs editing before it is ready to share. You cannot take a NEF straight from the camera and post it online. You must open it in editing software, make adjustments, and export it as JPEG or PNG. For casual snapshots, this is extra work. For professional photography or serious hobbyists, the control is worth it.
File size and storage considerations
A single NEF file from a modern Nikon camera typically ranges from 20 to 50 megabytes, depending on the camera model and resolution. A JPEG from the same camera is usually 5 to 15 megabytes. This means a 64-gigabyte memory card that holds 4,000 JPEG photos might hold only 1,000 to 1,500 NEF files.
If you shoot NEF regularly, you will need larger memory cards and more storage on your computer. Many photographers keep NEF files on external hard drives or cloud storage after editing, since storing every raw file forever uses space quickly. Some keep only the NEF files for photos they edited and liked, and delete the rest.
How to open and convert NEF files
Nikon's free software ViewNX-i can open NEF files and do basic adjustments, but it is limited compared to professional editing tools. Adobe Lightroom and Photoshop both handle NEF natively — you can open them, adjust exposure and color, and export as JPEG or PNG. If you do not have Adobe software, RawTherapee and Darktable are free alternatives that work well with NEF.
To convert a NEF to a format you can share, you open it in one of these programs, make any edits you want, and then export or save as JPEG, PNG, or TIFF. The original NEF file stays unchanged — exporting creates a new file. This is different from JPEG, where editing and saving overwrites the original.
Some online tools claim to convert NEF files, but uploading raw camera files to a website carries privacy and security risks. It is safer to convert on your own computer using desktop software.
NEF compared to other raw formats
Every camera brand has its own raw format. Canon uses CR2, Sony uses ARW, Fujifilm uses RAF. They all work the same way — they store unprocessed sensor data — but they are not interchangeable. A NEF file will not open in software designed only for Canon raw files.
Some editing software supports multiple raw formats, which makes switching cameras easier. Adobe Lightroom and Photoshop support NEF, CR2, ARW, and many others in the same program. Specialized tools like RawTherapee support dozens of formats. If you ever think you might switch camera brands, choosing software that handles multiple formats saves you from relearning a new workflow.
When you might encounter NEF files
If you own a Nikon camera and shoot in raw mode, you create NEF files. If someone sends you a NEF file, they are likely a photographer sharing their raw work for you to edit or review. Professional photographers sometimes deliver NEF files to clients who want to do their own editing, though this is less common than delivering finished JPEG or PNG.
You might also find NEF files in old Nikon camera archives or backups. If you inherited a Nikon camera or found one at a thrift store with memory cards inside, any raw photos on those cards will be NEF files.
Frequently Asked Questions
Can I open a NEF file on my phone?
Most phone photo apps do not recognize NEF. Some Android apps like Snapseed or Lightroom Mobile can open NEF files if you transfer them to your phone, but editing is limited compared to desktop software. iPhone does not natively support NEF in the Photos app.
Is NEF the same as RAW?
NEF is Nikon's version of raw. Raw is the general category — the unprocessed sensor data. NEF is the specific file format Nikon uses. Other brands call their raw formats CR2, ARW, or RAF, but they all serve the same purpose.
Do I have to shoot NEF, or can I stick with JPEG?
You choose. Most Nikon cameras let you shoot JPEG only, NEF only, or both at the same time. JPEG is fine for casual photography and sharing. NEF is worth learning if you want more control over how your photos look or if you shoot in difficult lighting.
What happens if I delete a NEF file?
It is gone unless you have a backup. Unlike JPEG, there is no way to recover the original sensor data once you delete the NEF. Always back up important NEF files to a second drive or cloud storage before deleting anything from your camera or memory card.
Can I edit a NEF file without special software?
No. Standard image editors like Paint or Preview cannot open NEF. You need software that understands the format. Free options include RawTherapee and Darktable. Paid options include Adobe Lightroom and Photoshop. Nikon's ViewNX-i is free but has fewer editing features.