Convert NII to PDF: One Scan Slice on a Printable Page
Open a .nii or .nii.gz file, choose the slice and contrast, and download a one-page A4 PDF with that slice centered on it. The PDF holds only the image: no scan header and no other slices.
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
Why put a NII slice into a PDF
.nii is the file extension of NIfTI, the format MRI research data is usually stored in once it has been converted from the scanner's DICOM output. A .nii.gz is the same file compressed with gzip. Opening either one takes neuroimaging software, which a colleague, a print shop, a course portal or a document system probably doesn't have. A PDF opens in any PDF reader and prints predictably.
The converter does its work inside your browser tab. It decodes the NII volume, decompressing .nii.gz on the fly, and shows the center slice with a slider for the others. Contrast is set automatically from the spread of the slice's values, from the 1st to the 99th percentile. Once the window and level look right, the jsPDF library builds a single A4 page. The page is portrait or landscape to suit the slice's shape, with 10 mm margins and the slice embedded as a PNG image.
The slice is embedded in the PDF losslessly, but it is the displayed 8-bit grayscale version, not the scan's original intensity values. Only the current slice is included, and each export is one page. Nothing from the NIfTI header, such as voxel size, orientation or description fields, appears on the page. Because spacing isn't applied, slices with rectangular voxels may print with the wrong proportions, and the orientation may not match your analysis software. There is no automatic caption, scale bar or label; add those in a PDF editor if you need them.
This suits course handouts, printed reference sheets, attachments to a progress report or grant document, and sending an example image to someone who will never install FSL. It is not a radiology report, and the output must not be used for diagnosis. Several searches that lead here are really about turning .nii into .nii.gz or into DICOM; the FAQ answers those too.
How to turn a NII file into a PDF
- Make sure you have one .nii or .nii.gz file of 200 MB or less. If it came inside a zip from a data repository, extract it first.
- Select the file in the converter. Your browser reads it; nothing is uploaded.
- Move the slice slider to the image you want on the page. The viewer opens at the volume's midpoint.
- Set window and level so the structures you want to show are clearly visible. The PDF shows exactly this contrast.
- Choose PDF and download the one-page file. For a multi-slice document, export several and combine them with any PDF merge tool.
NII to PDF features
- One A4 page per export, in portrait or landscape to match the slice.
- The slice is centered with 10 mm margins and embedded as a lossless PNG inside the PDF.
- Reads .nii and .nii.gz files with NIfTI-1 or NIfTI-2 headers.
- Slice slider plus automatic and manual window and level, so the page shows the view you chose.
- Runs in the browser with no upload; one file at a time, up to 200 MB.
- The same slice can be saved as a PNG or JPG instead when you need an image file.
Video Tutorial
Changing a NII file to PDF 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/nii-to-pdf?utm_sour
NII to PDF FAQ
How do I convert .nii to .nii.gz?
A .nii.gz is just a .nii compressed with gzip, so any gzip tool does it. On macOS or Linux, run gzip file.nii. On Windows, use 7-Zip with the gzip format. Most neuroimaging tools read both forms. This page accepts either one but only outputs PNG, JPG or PDF.
Can the PDF contain every slice of the scan?
No. Each export is a single page with the current slice. Export the slices you need one by one and merge the PDFs. Or script it in Python with nibabel and matplotlib, whose PdfPages backend writes many pages into one file.
Does the PDF include the scan's metadata or patient details?
No. The PDF contains the slice image only; nothing from the NIfTI header, including its free-text description field, is written into it. The tool does not anonymize anything, though. Whatever is in the pixels stays, and the file you share still carries whatever name you give it.
How do I convert NII to DICOM?
This page can't create DICOM files, because a PDF or image has no place for the tags DICOM requires. Researchers usually do it with 3D Slicer, which can export a loaded volume as a DICOM series, or with Python packages such as nibabel and pydicom. For the opposite direction, dcm2niix converts DICOM to NII.
Is the image in the PDF good enough to print?
The page holds the slice at its native pixel resolution, embedded without compression loss. MRI slices are often only a few hundred pixels across, so fine detail is limited by the scan itself, not by the PDF. The result works for handouts and illustrations, not for diagnostic review.
Why does the slice look stretched or turned compared with my viewer?
The PDF shows the voxel grid exactly as stored, one image pixel per voxel. Spacing and orientation from the header are not applied. Rectangular voxels therefore distort proportions, and the anatomy may face a different way than in FSLeyes or MRIcroGL. If that matters, export a PNG, correct it in an image editor, and make the PDF from the corrected image.
What do the error messages mean?
'Not a valid NIfTI file' points to a damaged or mislabeled header; re-save the volume from your analysis software. 'NIfTI library (nifti-reader-js) not loaded' and 'Medical converter engine not loaded' mean the page could not load its scripts from cdn.jsdelivr.net. The usual causes are a blocker, a strict network or an old cached copy; allow the domain and reload. A file over 200 MB is refused with a size message.
Where is my NII file processed, and what is shared?
Scripts running in your tab decode the NII file and assemble the PDF, and the download is generated locally. The voxel data is not uploaded, so no copy of the scan is kept on our side. Some details can still leave the page: - The file's name, size and format can reach Google Analytics when it is active. - The same details reach MiConvert if the file is refused for exceeding 200 MB. - The jsDelivr CDN that serves the page's libraries sees your IP address. The page also needs that CDN connection, so it won't work offline.