# Convert NRRD to DICOM

**URL:** <https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251>\
**Category:** Support\
**Tags:** dicom, nrrd\
**Created:** [April 22, 2021, 12:08pm UTC](https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251 "2021-04-22T12:08:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lily/32/10753_2.png) [@Lily](https://discourse.slicer.org/u/Lily)\
**Post date:** [April 22, 2021, 12:08pm UTC](https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251/1 "2021-04-22T12:08:07Z")

</div>

Hello there!

I’m new to 3D slicer and I was wondering if there’s an easy way to convert thousands of nrrd images to dicom, I have already tried create a dicom series module but for that I will have to select the input volume one by one for over a thousand time.

Thank you for your time

---

<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:** [April 22, 2021, 2:33pm UTC](https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251/2 "2021-04-22T14:33:51Z")

</div>

Yes, you can do that but you need to write a python script. It would be a pretty simple one.

---

<div class="post-metadata">

**Author:** ![Lily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lily/32/10753_2.png) [@Lily](https://discourse.slicer.org/u/Lily)\
**Post date:** [April 22, 2021, 6:01pm UTC](https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251/3 "2021-04-22T18:01:08Z")

</div>

Thank you! I was able to find how to load the images using python but I can’t find the function that converts them to dicom

---

<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:** [April 22, 2021, 7:45pm UTC](https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251/4 "2021-04-22T19:45:00Z")

</div>

The module to create a dicom series is a Command Line Interface (CLI) that you can run as described in the link below. You can provide the parameters as you would when using the GUI.

[https://slicer.readthedocs.io/en/latest/developer\_guide/python\_faq.html#how-to-run-a-cli-module-from-python](https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html#how-to-run-a-cli-module-from-python)

---

<div class="post-metadata">

**Author:** ![Lily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lily/32/10753_2.png) [@Lily](https://discourse.slicer.org/u/Lily)\
**Post date:** [April 22, 2021, 8:45pm UTC](https://discourse.slicer.org/t/convert-nrrd-to-dicom/17251/5 "2021-04-22T20:45:25Z")

</div>

Thank you very much, this has solved my problem! 😄
