# Is there have a solution to use the thirdpaty software to convert dicom files to nifti files?

**URL:** <https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875>\
**Category:** Development\
**Created:** [August 23, 2022, 2:47am UTC](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875 "2022-08-23T02:47:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [August 23, 2022, 2:47am UTC](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875/1 "2022-08-23T02:47:55Z")

</div>

I have tryed to use slicer it self to convert dicom files to nifti files,but it seems to have problems.  
is there have a thirty party software to use subprocess to convert dicom files to nifti files?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 23, 2022, 1:47pm UTC](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875/2 "2022-08-23T13:47:52Z")

</div>

There is a [dcm2nii](https://github.com/SlicerDMRI/SlicerDcm2nii) extension that is meant for diffusion MRI but it may also work for other acquisitions. Note that it’s not always possible to convert dicom to nifti and if dicom files don’t load as scalar volumes in Slicer they may not be compatible with nifti.

---

<div class="post-metadata">

**Author:** ![PaoloZaffino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paolozaffino/32/81052_2.png) [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Post date:** [August 23, 2022, 2:28pm UTC](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875/3 "2022-08-23T14:28:29Z")

</div>

Plastimatch is a good solution: [http://plastimatch.org/](http://plastimatch.org/)

---

<div class="post-metadata">

**Author:** ![dave3d](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dave3d/32/5003_2.png) [@dave3d](https://discourse.slicer.org/u/dave3d)\
**Post date:** [August 23, 2022, 3:55pm UTC](https://discourse.slicer.org/t/is-there-have-a-solution-to-use-the-thirdpaty-software-to-convert-dicom-files-to-nifti-files/24875/4 "2022-08-23T15:55:17Z")

</div>

You could use SimpleITK to convert DICOM to Nifti. Here’s an example showing how:

[https://simpleitk.readthedocs.io/en/master/link\_DicomSeriesReader\_docs.html](https://simpleitk.readthedocs.io/en/master/link_DicomSeriesReader_docs.html)

If you give an output file name with the “.nii” or “.nii.gz” it will write Nifti.
