NRRD to PNG Converter
Open a .nrrd volume, scroll to the slice you need, and save it as a grayscale PNG. Only single-file NRRDs with raw or gzip encoding are read, so a detached .nhdr header has to be re-saved as one .nrrd first.
Drop your file here
DICOM (.dcm, single files or a whole series), NIfTI (.nii, .nii.gz), NRRD (.nrrd), MHA (.mha), MHD (.mhd + .raw)
Up to 1 GB per file • Processed locally
From an NRRD volume to a plain PNG image
NRRD (Nearly Raw Raster Data) is the native volume format of 3D Slicer and the Teem toolkit. It turns up wherever researchers pass CT, MRI or microscopy stacks between ITK-based tools. A short text header describes dimensions, data type, encoding and spatial directions, and the voxel data follows it. Image editors, slide software and web pages understand none of this, so dropping a slice into a report or a post means exporting it as an ordinary image.
This converter parses the header and voxel data with our own NRRD reader, running in your browser, and the volume is not sent to our server. It accepts a header attached to its data in one .nrrd file, with the data stored raw or gzip-compressed. The viewer starts on the middle slice and picks contrast from the 1st–99th percentile of that slice's values. It also gives you a slider for the other slices and controls for window and level.
The PNG you download is one slice at the volume's native pixel size, in 8-bit grayscale, exactly as windowed on screen. PNG compression loses nothing more after that point, but the windowing itself is a reduction: 16-bit or floating-point values become 256 gray levels. The header, spacing, origin and direction matrix are not written into the PNG. The image is fully opaque, with no transparent background.
Some NRRD variants are not decoded correctly. The reader treats ascii, hex and bzip2 encodings, and files marked endian: big, as raw data in the computer's native byte order. The result is noise or stripes instead of anatomy, often with no error message. If your slice looks like static, this is the likely reason. Re-saving the volume from 3D Slicer as a gzip-compressed .nrrd usually fixes it.
The typical users are researchers and students who need a slice for a poster, a lab notebook, a thesis figure or a bug report. The tool also helps anyone who has been sent a .nrrd file and wants to see what is inside without installing Slicer.
How to export a PNG slice from an NRRD file
- Make sure you have a single .nrrd file under 200 MB. If you have a .nhdr header with a separate .raw or .raw.gz file, open it in 3D Slicer and save it as .nrrd so the header and data are stored together.
- Load the .nrrd file. The reader parses the header and shows the middle slice of the volume.
- Move the slice slider to the structure you want to capture.
- Tune window and level: narrow the window for soft tissue, and widen it for bone or data with a large value range.
- Choose PNG and export. The image is generated on your device. Repeat for any other slice you need.
What the NRRD reader handles
- Single-file .nrrd volumes with raw or gzip-compressed data, decoded with no separate unzip step
- A slice slider covering the whole stack, starting from the middle slice
- Automatic percentile-based contrast, followed by manual window and level control
- A lossless PNG of the 8-bit windowed slice at the volume's own pixel dimensions
- JPG and one-page A4 PDF exports from the same screen
- Specific error messages when the header/data separator is missing or the dimensions are invalid
Video Tutorial
Changing a NRRD file to PNG has never been easier! Watch this detailed guide on how to do it completely free right in your web browser. 🔗 Visit MiConvert: https://miconvert.com/en/nrrd-to-png?utm_so
NRRD to PNG questions
How do I convert NRRD to DICOM?
This page cannot do that. It only writes PNG, JPG or PDF images of one slice. 3D Slicer can export a loaded NRRD volume as a DICOM series from its Data module. SimpleITK in Python can also write DICOM slices from an NRRD with a short script. NRRD carries no patient or study information, so you will need to supply those tags.
Can I convert NRRD to NIfTI here?
No. 3D Slicer saves any loaded volume as .nii or .nii.gz from its Save dialog. SimpleITK reads NRRD and writes NIfTI in a couple of lines of Python. Both keep the spacing and orientation, which a PNG cannot hold.
Why do I get "Invalid NRRD file: could not find header/data separator"?
The reader looks for the blank line that separates the text header from the data in the same file. A detached header has no data after it, and a file damaged in transfer can lose the separator. Re-save the volume as a single .nrrd and load that. If you see "NRRD file has invalid dimensions" instead, the sizes field in the header is missing or does not match the data, and a fresh export from the tool that created the file is the fix.
My PNG looks like noise or stripes. What went wrong?
The volume most likely uses an encoding or byte order the reader does not decode: ascii, hex or bzip2 data, or a header that says endian: big. These are read as raw bytes, which scrambles the image. Open the file in 3D Slicer or with pynrrd, save it again with gzip or raw encoding, and convert the new file.
Can I export every slice, or convert several NRRD files in one batch?
No. The tool takes one file at a time and exports the slice that is on screen. For a full stack of PNGs, a short script with pynrrd or SimpleITK plus Pillow will write every slice in one pass. In 3D Slicer, the Screen Capture module can sweep through the slices for you.
Does the PNG keep 16-bit values or a transparent background?
Neither. Values are windowed into 8-bit grayscale, and every pixel is fully opaque. Label maps are shown as shades of gray rather than colored labels, and RGB volumes are not supported, because rendering is grayscale only. If you need 16-bit PNGs, write them from Python, and keep the NRRD for any quantitative work.
Is my NRRD file uploaded or stored on your servers?
No. The volume is parsed and rendered in your browser tab, and the voxel data never reaches us, so nothing is stored. Some details do leave your computer: - The reader's helper libraries come from cdn.jsdelivr.net, which can see your IP address. - If Google Analytics is running, it receives the file name, size and format. - A file larger than 200 MB is reported to our server with those same details when it is rejected.
Is this PNG suitable for clinical or diagnostic use?
No. The PNG is a windowed 8-bit snapshot without spacing, orientation or original values, so it should only illustrate a dataset. The tool does not anonymize anything either: text burned into the pixels remains in the PNG.