# How to load nrrd file types in vtk.js

**URL:** https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118
**Category:** Web
**Tags:** file-formats
**Created:** [February 2, 2021, 12:16am UTC](https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118 "2021-02-02T00:16:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wasim92007](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wasim92007/32/2941_2.png) [@wasim92007](https://discourse.vtk.org/u/wasim92007)
#### Post date: [February 2, 2021, 12:16am UTC](https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118/1 "2021-02-02T00:16:32Z")

</div>

Hi I am a student in college trying to do a project using vtk.js to visualize datasets. The prof. has given me medical volume images and segementation in nrrd format, which vtk.js does not support. Is there any tool available that can convert from nrrd to vti format. If there are no such tools available how can I do it?

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [February 2, 2021, 2:32pm UTC](https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118/2 "2021-02-02T14:32:28Z")

</div>

Hi, you can use [itk-js](https://github.com/InsightSoftwareConsortium/itk-js/) to read in NRRD files, and then use [convertItkToVtkImage](https://github.com/Kitware/vtk-js/blob/master/Sources/Common/DataModel/ITKHelper/index.js#L32) to convert the resulting ITK image into a VTK image.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [February 2, 2021, 3:45pm UTC](https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118/3 "2021-02-02T15:45:53Z")

</div>

@Forrest is providing a good path forward, but you might also be able to use [ParaView](https://www.paraview.org/download/) to load and convert your data in various format.

[3D Slicer](https://www.slicer.org/) could also be another tool that is more medical oriented than ParaView.

---

<div class="post-metadata">

### Author: ![wasim92007](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wasim92007/32/2941_2.png) [@wasim92007](https://discourse.vtk.org/u/wasim92007)
#### Post date: [February 2, 2021, 6:31pm UTC](https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118/4 "2021-02-02T18:31:51Z")

</div>

Thanks @Forrest for the response. I will try it out and let you know.

---

<div class="post-metadata">

### Author: ![wasim92007](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wasim92007/32/2941_2.png) [@wasim92007](https://discourse.vtk.org/u/wasim92007)
#### Post date: [February 2, 2021, 6:33pm UTC](https://discourse.vtk.org/t/how-to-load-nrrd-file-types-in-vtk-js/5118/5 "2021-02-02T18:33:58Z")

</div>

Thanks @Sebastien_Jourdain. Yes I was able convert using the Paraview, however I think 3D Slicer only supports the legacy VTK format, as I did not find the vti or vtp format while trying to save the nrrd data in a different format.
