Installing dcm2niix on Ubuntu

Find the latest release:

Download the and install the latest binaries:

Reload shell or open a new terminal and run:


Update: Thanks @layerfmri. If one has AFNI installed, dcm2niix_afni should do the same. However, check the changelog to not miss any critical updates.

2 thoughts on “Installing dcm2niix on Ubuntu

  1. I love dcm2niix, even isisconv is looking like choirboy next to it.
    How do you apply it? like this? dcm2niix -z y -f S_%p_%t_%s -o ../ ./

    Is dcm2niix_afni literally the same? This would mean that I don’t even need to run the four steps you describe.


    1. If you want it isisconv like, then I would call it like: dcm2niix -ba y -z y -o ${output_dir} -f S%s_%d_e%e ${input_dir} , the main difference being, the echo-time is not in the filename, its in the .json file that’s created. Regarding dcm2niix_afni, its a slightly older binary (v1.0.20181125 in AFNI version AFNI_20.0.18 ‘Galba’) than the one available in the dcm2niix Github (v1.0.20190902). Since the changelog does not reflect critical updates, so you should be okay with dcm2niix_afni.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with
Get started
%d bloggers like this: