NIfTI MRI and Brain Scan Viewer
Open NIfTI files from MRI research, neuroimaging pipelines or a downloaded dataset and look through them in three linked views. Adjust window and level, step through 4D volumes, lay a mask, atlas or statistics map on top, measure lengths in millimetres and save PNG slices or an axial montage. For viewing only.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open the volume
Drop a .nii or .nii.gz file, or both the .hdr and .img of a pair.
- 2Navigate
Tap or drag in any view to move the crosshair; use the sliders or plus and minus for slices.
- 3Set the window
Use Auto window, type centre and width, or drag with the Window/level tool.
- 4Add an overlay
Load a mask, atlas or map on the same grid and set threshold, colours and opacity.
- 5Measure
Choose Measure and tap two points to get a length in millimetres.
- 6Export
Save a PNG of any view or an axial montage.
About this tool
NIfTI is the standard file format of neuroimaging research. Tools such as FSL, SPM, AFNI, FreeSurfer, ANTs and dcm2niix write .nii or compressed .nii.gz files, and open datasets on OpenNeuro and similar archives are shared this way. A NIfTI file is a 348-byte (NIfTI-1) or 540-byte (NIfTI-2) header followed by the voxel values; the header holds the grid size, the voxel size in millimetres, the data type, a scaling slope and intercept and an affine transform that tells which way the head faces. This viewer reads all of that in your browser. It uses the sform or qform transform to show the axial, coronal and sagittal views the right way round, with the left side of the head on the left of the screen in neurological convention or on the right in radiological convention. Tap or drag in any view to move the green crosshair; the other two views follow. Drag with the window tool to change brightness and contrast, or use Auto window, which clips the darkest and brightest one percent. For 4D files such as fMRI or diffusion series a slider steps through the volumes. Add a second file on the same grid, such as a brain mask, a tissue segmentation, an atlas or a statistical map, and set its threshold, colours and opacity.
What is read
NIfTI-1 (.nii, .nii.gz and .hdr with .img) and NIfTI-2, little or big endian, with unsigned and signed 8, 16, 32 and 64-bit integers, 32 and 64-bit floats and RGB, scaled by scl_slope and scl_inter. The header table lists dim, pixdim, data type, transforms and the description. Old Analyze 7.5 files without the NIfTI magic are not read, because their orientation is undefined.
Measuring
Choose Measure, tap two points in one view and the length is shown in the unit from the header, normally millimetres, using the voxel size of that plane. Measurements are listed, can be revisited and undone.
Limits
This is a research and teaching viewer. It is not a medical device, it is not for diagnosis and it does not interpret anything. Clinical scans from a hospital are usually DICOM and should be read by a radiologist; ask your doctor about your images. Resampling between different grids, surface rendering, oblique reslicing and DICOM conversion are not included.
Worked example
A student downloads sub-01_T1w.nii.gz from an open dataset: 176 by 240 by 256 voxels of 1.0 mm, int16, orientation RAS. The axial, coronal and sagittal views open at the centre. She sets window 600 and level 350 to separate grey and white matter, then adds the matching brain mask from a skull-stripping step as a green overlay at 40 percent opacity to check that no cortex was cut. In the sagittal view she measures the corpus callosum from front to back: 71.4 mm. She exports the coronal slice 128 as PNG and an axial montage of 24 slices for her methods poster.
Quick facts
- Category: Health & Fitness
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: NIfTI-1 and NIfTI-2 data formats, NIfTI Data Format Working Group; a file viewer, not for diagnosis
Frequently asked questions
Can I use this to read my own MRI?
It can display the pictures, but it cannot tell you what they mean, and hospital scans usually come as DICOM rather than NIfTI. Reading a scan needs a radiologist with the full series and your history. Use the written report and talk to your doctor.
Why is the left side of the brain on the right?
You have the radiological convention switched on, as used on hospital screens, where you look at the patient from the feet. Untick it for the neurological convention, where left is on the left.
My image looks squashed or rotated. Why?
The header may have no valid sform or qform transform, in which case the voxel order is shown as stored. Files converted with dcm2niix or processed with FSL or SPM normally have correct transforms.
Why does the overlay fail to load?
The overlay must be on exactly the same grid as the main image. A mask from another space must first be resampled, for example with FSL flirt or ANTs.
How large a file can it open?
Typical anatomical scans of 10 to 50 MB open quickly. Large 4D files of several hundred megabytes need a computer with plenty of memory; each volume is decoded when you move to it.
Is my data uploaded?
No. The file is read and decompressed in your browser and never leaves your device.
