NIfTI to JPG Converter, Any Slice, In Browser | MiConvert

Convert NIfTI to JPG, One Slice at a Time

Load a .nii or .nii.gz file, scroll to the slice you want, set the contrast, and save that slice as a JPG. Each export is a single 8-bit grayscale image, not the whole volume.

🔒 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
NIFTI → JPG

What a NIfTI to JPG export gives you

NIfTI is the volume format of neuroimaging research. A single .nii file, or its gzip-compressed .nii.gz form, holds an entire 3D or 4D MRI acquisition, usually written by tools such as FSL, SPM, AFNI or dcm2niix. Photo viewers, slide software and chat apps can't open it, so a scan that looks fine in FSLeyes or ITK-SNAP can't be dropped into an email or a lab-meeting deck.

This converter runs in your browser. The page reads your file with the open-source nifti-reader-js library, and the pako library unpacks .nii.gz files. The volume opens on its middle slice, with a slider to move along the third axis of the image grid. Brightness is set automatically from the 1st to 99th percentile of the slice's values, and window and level sliders let you change it before you export. The JPG is written at quality 0.92 from exactly what is on screen.

What survives is the picture: the slice's full pixel grid and the contrast you chose. Everything that makes NIfTI useful for analysis is dropped. The original intensities, whether 16-bit integers or floating point, are squeezed into 256 gray levels. The other slices are left behind, and so is the header with voxel size, orientation and the affine transform. Pixels are drawn one per voxel, so scans with non-square in-plane voxels can look stretched. The image may also appear rotated or mirrored compared with a neuroimaging viewer. JPEG compression adds its own small artifacts on top.

That makes the result right for showing, not measuring. Typical uses are a figure draft, a slide for a journal club, a quick image for a collaborator, or a sanity check of a file someone shared. It is not a diagnostic image. If you were really looking to turn NIfTI into DICOM, or DICOM into NIfTI, this page does not do that; the FAQ below points to tools that do.

How to export a NIfTI slice as JPG

  1. Check the file: it should be a single .nii or .nii.gz under 200 MB. If your data is an Analyze .hdr/.img pair or a DICOM folder, convert it to NIfTI first.
  2. Open the converter and choose the file. The page recognizes NIfTI from the .nii or .nii.gz extension and reads it in your browser, decompressing gzip files there.
  3. Use the slice slider to find the slice you want. It starts in the middle of the volume.
  4. Adjust window and level if the default contrast washes out the anatomy you care about, for example to separate gray and white matter more clearly.
  5. Choose JPG as the output and download it. Repeat the slider and download steps for every additional slice you need.

What the NIfTI to JPG tool does

  • Reads uncompressed .nii and gzip-compressed .nii.gz files with NIfTI-1 or NIfTI-2 headers.
  • A slice slider covers the whole volume, starting from the middle slice.
  • Contrast is set automatically from the 1st to 99th percentile. Manual controls set the level from -2,000 to 4,000 and the width from 1 to 8,000.
  • JPEG output at quality 0.92, at the slice's native pixel dimensions with no upscaling or cropping.
  • The file's contents are processed in your browser tab and are never uploaded to MiConvert.
  • One file of up to 200 MB at a time, with the same limit for every visitor.

Video Tutorial

Detailed guide on how to convert NIFTI 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 on

NIfTI to JPG questions

Can I convert a whole NIfTI volume to JPG images at once?

No. Each download is the one slice currently shown, and the tool takes one file at a time. For a few slices, move the slider and export each one. For every slice of a volume, or for many subjects, a short Python script is quicker: nibabel loads the file, and Pillow or matplotlib can save each slice as a JPG.

How do I convert NIfTI to DICOM?

Not here. This tool only produces flat images (JPG, PNG or PDF), and a JPG cannot carry the header a DICOM file needs. 3D Slicer, or Python libraries such as nibabel together with pydicom, are the usual routes. Expect to fill in patient and study fields yourself, because NIfTI does not store them.

How do I convert DICOM to NIfTI?

That is also outside what this page does. The widely used free tool for it is dcm2niix. It turns a DICOM series into .nii or .nii.gz and runs on the command line or inside MRIcroGL. From Python, dicom2nifti or SimpleITK can do the same.

Will the JPG keep my scan's original quality?

Visually, the slice is exported at its native resolution with light compression. Numerically, no. Intensities are windowed down to 8-bit grayscale, and JPEG compression is lossy, so the file cannot be used for measurements and is not suitable for diagnosis. Choose PNG on the same screen to avoid compression artifacts, and keep the original .nii for any quantitative work.

The image looks squashed or upside down. Why?

The export draws one pixel per voxel and ignores the spacing and orientation stored in the NIfTI header. If your voxels are not square in-plane, or the axes are stored differently from how your usual viewer displays them, the JPG will look different. Rotating or resizing the JPG afterwards in an image editor is the practical fix.

Can I export a specific time point from a 4D fMRI file?

A 4D file can be loaded, but the slider moves through slices only. There is no control for choosing a time point. If you need a particular volume, extract it first, for example with fslroi in FSL, then open the result here.

I got 'NIfTI library (nifti-reader-js) not loaded'. What now?

The page could not fetch its NIfTI reader from the jsDelivr CDN. Hard-refresh the page to drop any old cached script. Then check that an ad blocker, firewall or restricted network isn't blocking cdn.jsdelivr.net. 'Medical converter engine not loaded' has the same cause and fix. 'Not a valid NIfTI file' means the header could not be read; re-save the file from the software that created it.

Is my scan uploaded anywhere?

The scan itself stays in your browser. It is read, drawn and exported as a JPG on your computer, and its contents are never sent to MiConvert, so there is no server copy to store or delete. A few details do leave the page: - The imaging libraries download from the jsDelivr CDN, which sees your IP address. - If Google Analytics is loaded, it receives the file's name, size and detected format. - If a file over 200 MB is rejected, its name, size and format are reported to our server. If your file names include subject IDs, rename the files before opening them.