NII to JPG Converter, Pick Slice and Contrast | MiConvert

Convert NII (NIfTI) to JPG

Open a .nii or .nii.gz file, move to the slice you want and save it as a JPG. The scan is read in your browser, not uploaded. Each download holds one 8-bit grayscale slice, so export again for every slice you need.

🔒 Zero-Upload — Your files never leave your device
🏥

Drop your file here

DICOM (.dcm, single files or a whole series), NIfTI (.nii, .nii.gz), NRRD (.nrrd), MHA (.mha), MHD (.mhd + .raw)

Select File

Up to 1 GB per file • Processed locally

Zero Upload 100% Browser Processing No Sign Up 100% Free
NII → JPG

What changes when a NIfTI volume becomes a JPG

A .nii file stores a whole brain or body scan as one three-dimensional, sometimes four-dimensional, grid of voxels. Its header records the voxel size and how the grid sits in scanner space. NIfTI is the working format of neuroimaging research, read by FSL, SPM, AFNI, FreeSurfer and viewers such as FSLeyes and ITK-SNAP. Photo apps, slide software and chat apps cannot open it. A volume is also not a picture: before it can become a JPG, someone has to choose one slice and decide how its intensities map to shades of gray.

This page does both steps with JavaScript running in the tab, so the scan's contents are not uploaded to MiConvert. A .nii.gz file is decompressed first. The volume opens on its middle slice, and a slider steps through the rest of the stack. Contrast starts from an automatic window based on the 1st to 99th percentile of the slice, which keeps a few extreme voxels from flattening everything else. Window and level sliders let you take over from there. The JPG you download is the slice shown on screen, saved at JPEG quality 0.92.

What survives is the slice's pixel grid at native size, one image pixel per voxel, together with the contrast you set. The original intensity values do not survive: 16-bit or floating-point data becomes 8-bit gray. Every other slice and the whole header are also left behind. Voxel spacing and orientation are not applied, so a slice with non-square voxels can look stretched, and it may appear flipped or rotated compared with FSLeyes. For 4D files such as fMRI runs, the slider moves through slices only, with no control for time points.

Typical uses are a single slice for a lab-meeting slide, a poster draft or a thesis figure, or an email to someone with no neuroimaging software. The JPG shows a picture of the data, not the data itself. It cannot be used for measurements, analysis or clinical decisions, so keep the original .nii alongside it.

Saving a NIfTI slice as JPG

  1. Check your file. This page takes .nii and .nii.gz files, one at a time, up to 200 MB. If your scan is still a folder of DICOM files from the scanner, convert it to NIfTI first with a tool such as dcm2niix.
  2. Choose the file. The header is read and the middle slice appears in the preview.
  3. Drag the slice slider until the anatomy or activation you want is on screen.
  4. If the slice looks washed out or too dark, adjust the window and level sliders. The automatic setting is only a starting point.
  5. Select JPG and download. For more slices, move the slider and download again; each export is a separate image.

What the NIfTI to JPG tool gives you

  • Reads NIfTI-1 and NIfTI-2 files, both plain .nii and gzip-compressed .nii.gz
  • A slice slider that covers the volume's third dimension and opens at the middle slice
  • Automatic contrast from the slice's 1st to 99th percentile, plus manual window and level controls
  • Decoding in the browser tab; the scan's contents are not sent to MiConvert servers
  • JPG export at quality 0.92 with one pixel per voxel, plus PNG or a single-page A4 PDF from the same view
  • One file up to 200 MB, the same limit on every plan

Video Tutorial

Detailed guide on how to convert NII files to JPG quickly, for free, and without losing original quality. Perfect if you need to process file formats, reduce size, or upload files to systems that only

NII to JPG questions

How do I convert a .nii file to JPG?

Open the file on this page and use the slider to reach the slice you want. Adjust window and level if needed, then choose JPG and download. Nothing has to be installed, but the page needs an internet connection to load its imaging libraries.

Can I export all slices or convert several NII files at once?

No. Each download is the one slice on screen, and files open one at a time. If you need every slice as an image, a short script is the practical route. For example, Python with nibabel can read the volume, and Pillow or matplotlib can save each slice.

Can you convert NIfTI to DICOM, or DICOM (.dcm) to NII?

No. This page cannot turn a NIfTI file into DICOM or a DICOM file into NIfTI. From a NIfTI file it only makes PNG, JPG or PDF images. For DICOM to NIfTI, dcm2niix is the standard free tool. For NIfTI to DICOM, research software such as 3D Slicer can export a volume as a DICOM series.

How do I convert .nii to .nii.gz?

A .nii.gz file is the same .nii compressed with gzip, so any gzip tool works, for example gzip -k scan.nii on macOS or Linux. You don't need to do this before exporting a JPG, because this page reads both forms.

Why does my JPG look sideways, squashed or very small?

The export ignores the orientation and voxel spacing in the header. A slice can therefore come out rotated, mirrored or stretched compared with your neuroimaging viewer. Its width and height in pixels match the slice's voxel counts, so a 64×64 slice becomes a 64×64-pixel image. Rotate, flip or enlarge it in any image editor. If you plan to edit the image further, export PNG to avoid stacking JPEG artifacts.

I get an error saying the NIfTI library or the converter engine is not loaded. What should I do?

The imaging scripts load from cdn.jsdelivr.net, and an ad blocker, an institutional firewall or a dropped connection can stop them. Allow that domain and hard-refresh the page (Ctrl+Shift+R, or Cmd+Shift+R on a Mac); a hard refresh also clears an older cached version of the page. If the message is Not a valid NIfTI file instead, the header is damaged or the file is not NIfTI. Check that it opens in FSLeyes or ITK-SNAP, then export it again.

Is my scan uploaded, and what information leaves my computer?

The file is read and converted inside your browser tab. Its contents never reach MiConvert, so there is nothing on our servers to delete. Some details do leave your computer. The libraries come from jsDelivr, which sees your IP address. When Google Analytics is loaded, the file name, size and format are sent with usage events. A file over 200 MB is reported to our server by name, size and format. If the file name contains a subject or patient ID, rename the file before opening it.

Is the JPG accurate enough for diagnosis or measurements?

No. It is an 8-bit grayscale picture of one slice with the contrast you chose, without the header, spacing or original intensities. Use it for illustration, and do any reading or analysis on the original NIfTI file.