A 24 megapixel Nikon camera set to 14bit records about 42 MB of raw sensor data per shot, before compression. That data is saved in a NEF file, which is the short answer to "what is NEF file format". It is a raw record of what the sensor caught, not a finished picture.
A JPG from the same shot is far smaller. The camera has already made the color choices and discarded detail to save space.
What is NEF file format and what does it store
NEF stands for Nikon Electronic Format. A NEF file holds what the sensor recorded plus details like the lens and the camera settings. Nikon describes this on its page about the NEF format.
The key idea is that a NEF file does not lock in your choices. White balance, tone and sharpening are saved as instructions, so you can change them as often as you like. The raw data itself never changes.
Depending on the camera, a NEF stores 12bit or 14bit data, while a JPG stores 8bit. That gives you more room to rescue a dark or bright shot.
Many Nikon cameras let you choose between no compression, lossless compression, and lossy compression. Lossless compression shrinks the file and keeps all the data.
NEF is based on TIFF. It is still a format owned by Nikon, so other programs must know how to read it.
A NEF also carries a small preview image. That is why some file managers show a thumbnail even when they cannot open the full photo.
Coolpix cameras from Nikon use a close cousin called NRW.
NEF photo file format compared with JPG and TIFF
A NEF is made for editing. A JPG is made for sharing. TIFF sits between them and is common for print and long term storage.
| Format | Type | Color depth | Best for |
|---|---|---|---|
| NEF | Raw | 12 or 14bit | Editing and keeping the original |
| JPG | Lossy | 8bit | Sharing and the web |
| TIFF | Usually lossless | 8 or 16bit | Print and long term storage |
Lossy means some detail is thrown away to make the file smaller. Raw means nothing has been decided yet.
Raw files are not meant for sharing. Most websites, email apps and phones cannot show a NEF. Each file is also large, so a memory card fills faster than it does with JPG.
Shoot NEF when you plan to edit the photo or the light is hard to judge, like a bright window behind a dark room. Shoot JPG when you need to share at once. Many cameras can save both files for each shot.
How to open NEF files on Windows, Mac, and phones
The most direct free option is NX Studio, the viewer and editor made by Nikon. It is built for NEF files from Nikon cameras.
Adobe Lightroom and Photoshop also open NEF files, and Photoshop uses its Camera Raw module for this. Both need an update when you buy a newer camera, because the software must know the new model.
Because Nikon owns the NEF photo file format, support varies from app to app. Windows may open NEF files in the Photos app once you install the Microsoft Raw Image Extension from the Microsoft Store. Preview on a Mac can show most NEF files without extra software.
Phone support depends on the app and your camera model. The simplest route is to convert the NEF to JPG first and send the JPG to your phone.
If a NEF will not open anywhere, the usual cause is a camera model your software does not know yet. Update the app first. If that does not help, try NX Studio, which Nikon updates for its own cameras.
To confirm a file is really a NEF, right click it on Windows and choose Properties. Check the Type of file line.
Do not rename a .nef file to .jpg. That changes the name only, and the file still holds raw data.
How to convert NEF to JPG
Three routes lead to a JPG. Use NX Studio or Lightroom when the photo matters, and use the camera or the online converter when you only need a quick copy.
In the camera
Many Nikon cameras can do it without a computer. Look for the NEF (RAW) processing option in the retouch menu, and the camera saves a JPG copy.
On a computer
You can export a NEF as JPG from NX Studio, Lightroom or Photoshop. These give you the most control, because you set white balance and exposure before saving.
Export at full size if you plan to print, and at a smaller size for email or the web.
Online
If you only need a JPG and do not want to install software, use the NEF to JPG converter. It turns the NEF into a JPG you can share.
Keep the NEF and share a copy
A JPG made any of these ways has one fixed look. The raw data is gone, so you cannot rebuild the NEF from it. Never delete the NEF after converting.
If the JPG is still too large for email or a website, the image compressor can make it smaller.
Other brands use their own raw formats. Canon cameras write CR2 files and Sony cameras write ARW files, while the DNG format from Adobe turns up on some cameras and phones. The CR2 to JPG, ARW to JPG, and DNG to JPG converters cover those files.
Next time you copy photos off a memory card, back up the NEF files first. Then convert only the shots you plan to send or post.
