DCM NIFTI
File conversion

Convert DCM to NIFTI

QUICK ANSWER
Is it possible to convert DCM to NIFTI?
Yes - DCM converts to NIFTI.

Point dcm2niix at the folder containing all .dcm slices and it outputs a .nii.gz file plus a JSON sidecar with acquisition parameters. No image quality is lost. If you prefer a GUI, 3D Slicer and MRIcroGL both include dcm2niix integration.

Also to NIFTI: DICOM

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert DCM to NIFTI?

DICOM stores each MRI or CT slice as a separate .dcm file, while neuroimaging analysis tools such as FSL, SPM, FreeSurfer, and ANTs expect a single NIfTI volume per scan. Converting packs the entire 3D series into one .nii or .nii.gz file, simplifying pipeline management and making the data immediately usable for brain segmentation, fMRI analysis, and voxel-based morphometry.

How to convert DCM to NIFTI

dcm2niix OPEN-SOURCE

Run dcm2niix -o /output -f %p_%s /dicom_folder in a terminal; it sorts slices, writes one .nii.gz per series, and produces a BIDS-compatible JSON sidecar automatically.

3D Slicer OPEN-SOURCE

Import the DICOM series via the DICOM module, load the desired series, then use File > Save and select the NIfTI .nii.gz format.

MRIcroGL FREE

Go to Import > Convert DICOM to NIfTI, select the input DICOM folder and output folder, then click Convert - MRIcroGL runs dcm2niix internally.

About these formats

Quality & what to watch

  • dcm2niix automatically processes multiple series in one folder and names each output file separately - no manual sorting is required.
  • For uncompressed NIfTI output instead of .nii.gz, add -z n to the dcm2niix command.
  • Verify orientation and coverage of the output volume in FSLeyes or MRIcroGL before passing it to an analysis pipeline.

Frequently asked questions

Why is NIfTI preferred over DICOM for neuroimaging research?
NIfTI packs the full 3D volume into a single file, which is easier to manage than hundreds of .dcm slices; every major neuroimaging tool reads it natively.
Is any image quality lost in the conversion?
No - dcm2niix performs a lossless conversion, preserving the original voxel values and spatial orientation.
What is the JSON sidecar that dcm2niix produces?
A BIDS-compatible metadata file recording acquisition parameters such as TR, TE, and flip angle - required by many neuroimaging pipelines for quality control.