# Possibility to export multiple labels in one nifti file?

**URL:** <https://discourse.slicer.org/t/possibility-to-export-multiple-labels-in-one-nifti-file/27246>\
**Category:** Support\
**Created:** [January 15, 2023, 10:39am UTC](https://discourse.slicer.org/t/possibility-to-export-multiple-labels-in-one-nifti-file/27246 "2023-01-15T10:39:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.mohseni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@a.mohseni](https://discourse.slicer.org/u/a.mohseni)\
**Post date:** [January 15, 2023, 10:39am UTC](https://discourse.slicer.org/t/possibility-to-export-multiple-labels-in-one-nifti-file/27246/1 "2023-01-15T10:39:17Z")

</div>

Is it possible to export multiple labels in one nii.gz file? I’m cautious on trying this as I’m afraid the labels might go missing.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 17, 2023, 5:55am UTC](https://discourse.slicer.org/t/possibility-to-export-multiple-labels-in-one-nifti-file/27246/2 "2023-01-17T05:55:26Z")

</div>

The most common use case is to export all non-overlapping segments of an image into a single file. Therefore, you don’t need to worry about saving many labels into a single file.

However, NIFTI files have many issues, mostly due to that you can store the image geometry (origin, spacing, axis directions) in ambiguous ways. You may find that the labels that you write using one software cannot be read correctly by another software. Therefore, I would recommend using NRRD file format instead.
