← All articles 9 min read

Convert NEF to JPG: 5 Free Methods for Nikon RAW Files

NEF — Nikon Electronic Format — is Nikon's proprietary RAW file format. Every Nikon DSLR and mirrorless camera writes NEF files when you shoot in RAW mode. The files contain the full, unprocessed sensor data: no sharpening, no white balance baked in, no compression artifacts. That gives you maximum editing flexibility, but it also means NEF files are large (typically 20–50 MB each), unshareable, and unreadable by browsers, email clients, and most social platforms.

JPG fixes all of that. It's universally supported, typically 80–90% smaller than the NEF original, and good enough for web, social media, and print at reasonable quality settings. The tradeoff — losing some editing latitude — is worth it when you need to actually use the photo.

This guide covers five free methods to convert NEF to JPG, from Nikon's own official software to a single terminal command. For a broader overview covering all camera brands, see our complete RAW to JPG conversion guide. If you're unfamiliar with RAW formats in general, our RAW image explainer covers the fundamentals.


Methods at a Glance

Method OS Batch License Best For
Nikon NX Studio 1.6 Windows, macOS Yes Proprietary (free) Nikon shooters wanting official color science
darktable 4.6 Windows, macOS, Linux Yes GPL v3 Full editing + export workflow
RawTherapee 5.10 Windows, macOS, Linux Yes GPL v3 Advanced processing with fine control
dcraw 9.28 CLI Windows, macOS, Linux Yes Public domain Scripting and automation
ImageMagick 7.1 Windows, macOS, Linux Yes Apache 2.0 Build pipeline integration

Method 1 — Nikon NX Studio 1.6

License: Proprietary (free, no registration required) Platforms: Windows 10+, macOS 12+

NX Studio is Nikon's official RAW processor, released in 2021 to replace both ViewNX-i and Capture NX-D. It reads NEF files using Nikon's own color science — the same processing pipeline that produces the in-camera JPGs — so what you see in NX Studio closely matches what your Nikon would have produced in JPG mode.

Install: Download NX Studio 1.6 from Nikon's download center. It is free and does not require a Nikon account.

Convert a single NEF:

  1. Open NX Studio and navigate to the folder containing your NEF files.
  2. Select the image you want to convert.
  3. Go to File → Convert Files (or press Ctrl+Shift+S on Windows / Cmd+Shift+S on macOS).
  4. Set File Format to JPEG and choose a quality level (Fine, Normal, or Basic — Fine is roughly equivalent to JPG quality 92).
  5. Choose the output folder and click Start Conversion.

Batch convert: Select multiple files in the filmstrip (Ctrl+click or Shift+click), then follow the same File → Convert Files workflow. NX Studio processes them sequentially using Nikon's rendering engine.

When to use NX Studio: You want the official Nikon rendering and you shoot Nikon exclusively. The downside: it is slower than open-source alternatives, Windows/macOS only, and Nikon updates it on their own schedule.


Method 2 — darktable 4.6

License: GPL v3 (free, open source) Platforms: Windows 10+, macOS 13+, Linux

darktable is a non-destructive RAW processor comparable to Adobe Lightroom. It supports NEF files from virtually every Nikon body, and its export pipeline handles batch conversion with precise quality and size control.

Install darktable 4.6:

Convert NEF to JPG:

  1. Open darktable and switch to the lighttable view.
  2. Import your NEF files via Import → Add to Library.
  3. Select one or more images.
  4. In the Export panel (bottom right), set:
    • Target storage: File on disk
    • File format: JPEG
    • Quality: 92 (a good balance of size and fidelity — see our lossy vs lossless compression guide for why)
    • Output directory: Choose your destination folder.
  5. Click Export.

darktable applies its default processing (base curve, white balance from EXIF) automatically. If your NEFs look flat or oversaturated, you can adjust the base curve module in the darkroom view before exporting.

Batch convert: Select all images in lighttable (Ctrl+A), configure export settings once, and click Export. darktable processes them in parallel using available CPU cores.


Method 3 — RawTherapee 5.10

License: GPL v3 (free, open source) Platforms: Windows 10+, macOS 12+, Linux

RawTherapee takes a more granular approach than darktable — more sliders, more control, and a processing pipeline aimed at photographers who want to fine-tune demosaicing algorithms and noise reduction at the pixel level.

Install RawTherapee 5.10:

Convert NEF to JPG:

  1. Open RawTherapee and use the File Browser tab to navigate to your NEF folder.
  2. Select the image(s) you want to convert.
  3. Click the Queue tab (or press Ctrl+B to add selected images to the batch queue).
  4. In queue settings, set:
    • File format: JPEG
    • Quality: 92
    • Output directory: Your destination folder
  5. Click Start Processing.

Batch convert: Add multiple NEFs to the queue, apply a processing profile to all (right-click → Apply Profile → Neutral), and process the entire batch. RawTherapee generates each JPG independently — if one fails, the rest continue.

RawTherapee's Neutral profile produces output closest to the camera's own rendering. The Auto-Matched Curve profile applies a film-like tone curve that many photographers prefer for direct-to-JPG export.


Method 4 — dcraw 9.28 (CLI)

License: Public domain Platforms: Windows, macOS, Linux

dcraw is the foundational RAW decoder. Written by Dave Coffin, it is a single C file that reads virtually every RAW format ever produced — including NEF files from Nikon cameras dating back to the D1 (1999). It has no GUI. You run it from the terminal.

Install dcraw 9.28:

Convert a single NEF:

dcraw -c -w -T DSC_0001.NEF | convert - -quality 92 DSC_0001.jpg

This pipes dcraw's TIFF output (-T for TIFF, -w for camera white balance, -c for stdout) into ImageMagick's convert command to produce a JPG at quality 92.

If you want dcraw to produce a standalone PPM file instead:

dcraw -w DSC_0001.NEF

This writes DSC_0001.ppm in the same directory. You can then convert the PPM to JPG with ImageMagick or any image viewer.

Batch convert all NEFs in a folder:

for f in *.NEF; do
  dcraw -c -w "$f" | convert - -quality 92 "${f%.NEF}.jpg"
done

dcraw is fast, dependency-free, and scriptable. The tradeoff: no editing, no preview, no color management beyond basic white balance. It is a decoder, not an editor.


Method 5 — ImageMagick 7.1

License: Apache 2.0 Platforms: Windows, macOS, Linux

ImageMagick reads NEF files through its delegate system — it calls an external RAW decoder (typically dcraw or LibRaw) under the hood. This means you need both ImageMagick and a delegate installed.

Install ImageMagick 7.1 with RAW support:

Convert a single NEF:

magick DSC_0001.NEF -quality 92 DSC_0001.jpg

Batch convert:

magick mogrify -format jpg -quality 92 -path ./converted *.NEF

This converts every NEF in the current directory, writing JPGs to the ./converted subfolder. The originals remain untouched.

Resize during conversion:

magick DSC_0001.NEF -resize 2048x2048 -quality 92 DSC_0001.jpg

This constrains the output to fit within 2048x2048 pixels while preserving the aspect ratio — useful for web publishing where a 45-megapixel D850 file is overkill. After conversion, you can further compress your JPEGs to hit a specific file size target.


Nikon Camera Compatibility

NEF is used across the entire Nikon interchangeable-lens lineup:

All five methods in this guide support NEF files from every camera listed above. darktable and RawTherapee update their camera support databases regularly — if you have a brand-new Nikon body and conversion fails, update to the latest version first.

NRW files: Some Nikon Coolpix cameras (P950, P1000, A1000) write NRW instead of NEF. NRW is a simplified RAW variant. dcraw and ImageMagick handle NRW; NX Studio, darktable, and RawTherapee also support most NRW-producing models.


NEF File Sizes

NEF file sizes vary by sensor resolution and whether the camera uses lossless compressed, lossy compressed, or uncompressed RAW:

Camera Sensor Typical NEF Size
D3500 24 MP 20–25 MB
D7500 20.9 MP 18–24 MB
D750 24 MP 25–30 MB
D850 45.7 MP 45–55 MB
Z6 III 24.5 MP 25–32 MB
Z8 / Z9 45.7 MP 45–60 MB

Most Nikon cameras default to lossless compressed RAW, which reduces file size by roughly 20–40% compared to uncompressed NEF with no measurable quality loss. After converting to JPG at quality 92, expect file sizes of 3–8 MB depending on image content and resolution.

Choosing between JPG and PNG for your output? Our JPG vs PNG comparison breaks down when each format makes sense. For most photography conversions, JPG is the right choice.


Which Method Should You Pick?

For Canon shooters, see our CR2 to JPG guide. For Sony, the ARW to JPG guide covers the equivalent workflow.


FAQ

What does NEF stand for?

NEF stands for Nikon Electronic Format. It is Nikon's proprietary RAW image format, used since the Nikon D1 in 1999.

Can I convert NEF to JPG without losing quality?

There is always some quality reduction when converting from RAW to JPG because JPG uses lossy compression. Setting JPG quality to 92–95 minimizes visible loss while keeping file sizes reasonable. For more on how lossy compression works, see our lossy vs lossless compression guide.

Why are my converted JPGs darker or more saturated than the NEF preview?

Your camera embeds a processed JPG preview inside each NEF file. When you open the NEF in a RAW converter, you see the actual sensor data — which may look different from the camera's preview. NX Studio matches the camera preview most closely because it uses the same processing pipeline. darktable and RawTherapee apply their own default tone curves.

Can I batch convert hundreds of NEF files?

Yes. All five methods support batch conversion. darktable and RawTherapee offer the smoothest GUI-based batch workflow. dcraw and ImageMagick handle batch conversion via shell loops or glob patterns and can process thousands of files unattended.

Does converting NEF to JPG delete the original file?

No. Every method in this guide writes a new JPG file and leaves the original NEF untouched. The only exception is if you explicitly overwrite the source file, which none of these commands do by default.

What is the difference between NEF and NRW?

NEF is used by Nikon's interchangeable-lens cameras (DSLRs and Z mirrorless). NRW is a simplified RAW format used by some Nikon Coolpix compact cameras. Both contain raw sensor data, but NRW files are smaller and have fewer metadata fields. All five converters in this guide support NEF; NRW support varies by tool and camera model.

Should I keep my NEF files after converting?

Yes. NEF files are your digital negatives — they contain the full sensor data and give you maximum flexibility for future edits. JPGs are for sharing and publishing. Storage is cheap; re-shooting is not.

What JPG quality setting should I use?

92 is a strong default. Below 85, compression artifacts become visible in gradients and fine detail. Above 95, file sizes increase sharply with minimal perceptible improvement. Start at 92 and adjust based on your output needs.

Also try: Compress Images