Convert NEF to WebP

Converting NEF to WebP produces the web-ready file a site actually wants: typically a quarter to a third fewer bytes than the equivalent JPG, at whatever maximum width you set. The picture comes from the JPEG your Nikon embedded at capture, and the one thing to watch is colour space, because the conversion writes no profile into the WebP.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebP cannot hold everything an NEF can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing This extracts the preview your camera wrote when it took the photograph, at full resolution on almost every camera. It is the camera’s own rendering, so its picture style is baked in and the extra highlight and shadow latitude that is the reason to shoot raw is not in it. Perfect for viewing, sending or uploading; not a substitute for developing the file.

Up to 100 files at once. Mixed formats are fine.

The Adobe RGB trap between a Nikon body and a WebP file

Nikon bodies carry a colour space setting in the shooting menu, and plenty of them are left on Adobe RGB because somebody once said it was better. Adobe RGB describes a wider range of colours than sRGB, and it does it by assigning different meanings to the same numbers — which is fine as long as every step of the chain knows which space it is working in.

This conversion does not carry a colour profile into the output. Browsers treat untagged images as sRGB. So an Adobe RGB preview converted here arrives on the web page with its numbers reinterpreted, and the result is exactly the complaint people describe: flat, slightly desaturated, greens and reds noticeably weaker than what they saw on the camera. The fix is upstream — set the camera to sRGB for web work — or in an image editor that can convert the profile properly before the file gets here.

Why a web team asks for WebP rather than JPEG

Bytes, and the metric they are measured on. WebP typically delivers the same visible quality in a quarter to a third fewer bytes, and on an image-led page the Largest Contentful Paint is an image, so that saving lands directly on the number somebody is being held to.

It is also safe now in a way it was not a decade ago. WebP is supported in every current browser and standardised as RFC 9649, so serving it needs no fallback chain and no discussion about old Safari versions.

Delivering NEF conversions at the widths the brief names

Set the maximum width to the largest size the site will serve and convert once per size if several are required. A responsive image set typically wants something like 800, 1,600 and 2,400 pixels; producing those three from the NEF each time is better than producing the largest and scaling it down elsewhere, because each scaling step is another re-encode.

Resist the temptation to deliver the full 8,256-pixel preview and let the CMS handle it. Some do this well; many store the original and serve it unchanged to a phone, and then the page weight the brief was about arrives anyway.

What is actually being extracted from the NEF

No raw development happens here. Your Nikon writes a finished JPEG inside the NEF at the moment of capture, and the converter finds it, keeps the largest one above 640 by 480, and re-encodes that as WebP. The Picture Control the camera was set to is baked into it.

For a delivery job this is usually acceptable and occasionally not. If the client has approved a graded look, the grading has to be done from the NEF in a raw developer and exported before it comes anywhere near this page. If the brief is "the pictures from the shoot, on the website, by Friday", the camera’s rendering is what everyone has already seen and agreed to.

Two lossy passes on the way from Nikon to the web

The camera compressed the preview once; converting to WebP decodes and compresses it again. Two passes is one more than ideal and considerably fewer than most delivery pipelines actually run, where an image is exported, uploaded, re-encoded by the CMS and re-encoded again by a CDN.

The practical rule is to convert from the NEF every time. Converting from a WebP you delivered last month, or from a JPG somebody emailed back, adds a pass for nothing. At the default quality of 82 and at web dimensions the second pass is invisible; the fifth is not.

What the WebP will not carry out of the Nikon file

The re-encode drops the metadata: no EXIF, no lens or exposure data, no capture time, no GPS coordinate, no copyright field. For public web images most of that is a benefit — a photographer with a GPS-equipped body should not be publishing coordinates by accident.

The exception is attribution. If the delivery agreement says the files carry a copyright notice, that has to be written into the WebP afterwards with a metadata tool, because nothing in this conversion will put it there.

File naming when a folder of NEFs becomes a folder of WebPs

The output keeps the source name, so DSC_4102.NEF becomes DSC_4102.webp. That is helpful for reconciling a delivery against the originals and unhelpful on a live site, where a descriptive filename is one of the few things a search engine can read about an image.

Renaming is a step for whoever owns the site rather than part of the conversion, but it is worth flagging in the handover. A delivered set of DSC_ filenames tends to go online exactly as delivered.

Batching a Nikon shoot into a web delivery

Drop the whole selection and take the finished set as a ZIP. Each file extracts and encodes separately with its own progress, and because the work runs on your machine there is no queue and no per-file cost — a hundred frames is a matter of minutes rather than a plan upgrade.

Input files are accepted up to 100 MB on the free tier, comfortably above even an uncompressed D850 NEF at around 90 MB. WebP itself tops out at 16,383 pixels on a side, which no Nikon body approaches unless you have stitched a panorama first.

Keeping an unpublished Nikon shoot off other people’s servers

The conversion is JavaScript and a WebAssembly encoder running in your browser. The NEF files stay on your disk and the WebP files are written on your disk. Nothing is transmitted, and you can confirm that in the network tab rather than taking it on trust.

For work under embargo, under a client agreement, or simply not yet announced, that is the difference between a conversion tool and a disclosure. It also means the job runs at full speed on a bad hotel connection.

How to deliver WebP files from Nikon NEF originals

  1. Drop your NEF files onto this page, or click to choose them.
  2. Set the maximum width the site needs, and check the camera was on sRGB.
  3. Download the WebP files, or take the delivery as a single ZIP.

NEF vs WebP: an 80 MB capture against a delivery format

NEF compared with WebP
NEFWebP
Full nameNikon Electronic FormatWebP Image
File extension.nef.webp
Media typeimage/x-nikon-nefimage/webp
CompressionLossless — nothing is discardedEither, depending on the setting
First published19992010
Published byNikonGoogle
SpecificationRFC 9649
LicensingProprietaryOpen standard
Standing todayCurrentCurrent
Bit depth148
Colour it can describeRGBRGB, YCbCr
Largest image16,383 px per side
Opens in a browserNo browserEvery browser
Considered insteadDNG, TIFF, JPGAVIF, JPG, PNG

What is lost

WebP has nowhere to put the GPS coordinates, so that goes no further than the NEF. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

NEF carries up to 14 bits per channel and WebP stores 8. The extra precision is what survives heavy correction without banding, so the conversion is best made after the editing rather than before it.

What the target format adds

WebP supports transparency and NEF does not. That is room the result has and the original never used — converting does not create a transparent background, it only makes one possible afterwards.

Opening the result

WebP opens in every current browser. NEF has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

NEF is a vendor format; WebP is a published specification (RFC 9649). That matters for anything meant to still open in ten years, when the program that wrote the original may not be around.

The usual programs do not overlap: NEF opens in Adobe Lightroom, Nikon NX Studio and darktable, WebP in Adobe Photoshop, GIMP and Squoosh — so whoever receives the result needs something from the second list.

What each format is for

The two are aimed at different work: NEF at photography and editing, WebP at the web and handing a finished file over. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

NEF is Nikon's format, published in 1999. It comes out of Nikon digital SLRs and Z-series mirrorless bodies. Underneath it is TIFF, which is why a program that has never heard of NEF can sometimes still open one.

WebP comes from Google and dates from 2010, specified as RFC 9649. Adobe Photoshop, GIMP and Squoosh all read it.

NEF to WebP: questions from people delivering to a web team

Are my NEF files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is a raw preview extractor, which pulls the JPEG the camera already embedded rather than developing the sensor data; your browser fetches it once and caches it.

Why do my converted images look flat or washed out in the browser?

Almost certainly a colour space mismatch. If the camera was set to Adobe RGB, the embedded preview is Adobe RGB, and the conversion writes no colour profile into the WebP — so the browser interprets those numbers as sRGB and the colours come out desaturated. Set the camera to sRGB for anything destined for the web, or convert the profile in an image editor before publishing.

How much smaller is WebP than JPEG here?

Usually a quarter to a third fewer bytes at comparable visible quality. On a page with thirty images that is the saving the web team asked for.

What width should I deliver?

Whatever the brief names, and set it as the maximum width when converting rather than resizing afterwards. A Nikon preview is the full sensor dimensions — 8,256 pixels across on a D850 — and no web page displays that. Reducing the pixel count saves far more than any quality setting.

Is the picture compressed twice?

Yes. The converter extracts the JPEG the camera embedded at capture, decodes it and encodes it again as WebP, so there are two lossy passes. At the default quality of 82 and at delivery sizes it is not visible, but always convert from the NEF rather than from an earlier export, so the chain does not grow.

Will the WebP carry copyright or camera information?

No. The re-encode drops the metadata entirely, so there is no EXIF, no GPS and no embedded copyright field. If attribution has to travel with the file, it must be written back in after conversion.

Are the originals uploaded anywhere?

No. The NEF files are read and converted in your browser, on your machine, which matters when the shoot has not been published yet.

More about these formats

Where these figures come from

The claims this page makes about NEF and WebP are checkable, and these are the documents that settle them.