Read / write access to some common neuroimaging file formats

This package provides read +/- write access to some common medical and neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and later), GIFTI, NIfTI1, NIfTI2, MINC1, MINC2, MGH and ECAT as well as Philips PAR/REC. We can read and write Freesurfer geometry, and read Freesurfer morphometry and annotation files. There is some very limited support for DICOM. NiBabel is the successor of PyNIfTI.

The various image format classes give full or selective access to header (meta) information and access to the image data is made available via NumPy arrays.


Current documentation on nibabel can always be found at the NIPY nibabel website.

Mailing Lists

Please send any questions or suggestions to the neuroimaging mailing list.


You can find our sources and single-click downloads:


Nibabel is licensed under the terms of the MIT license. Some code included with nibabel is licensed under the BSD license. Please see the COPYING file in the nibabel distribution.


See also the Developer documentation page for development discussions, release procedure and more.

Authors and Contributors

The main authors of NiBabel are Matthew Brett, Michael Hanke and Stephan Gerhard. The authors are grateful to the following people who have contributed code and discussion (in rough order of appearance):

  • Yaroslav O. Halchenko
  • Chris Burns
  • Gaël Varoquaux
  • Ian Nimmo-Smith
  • Jarrod Millman
  • Bertrand Thirion
  • Thomas Ballinger
  • Cindee Madison
  • Valentin Haenel
  • Alexandre Gramfort
  • Christian Haselgrove
  • Krish Subramaniam
  • Yannick Schwartz
  • Bago Amirbekian
  • Brendan Moloney
  • Félix C. Morency
  • Chris Markiewicz
  • JB Poline
  • Nolan Nichols
  • Nguyen, Ly
  • Basile Pinsard
  • Kevin S. Hahn
  • Eric Larson
  • Nikolaas N. Oosterhof
  • ohinds
  • Michiel Cottaar
  • Satrajit Ghosh
  • Demian Wassermann
  • Philippe Gervais
  • Justin Lecher
  • Ben Cipollini
  • Clemens C. C. Bauer

License reprise

NiBabel is free-software (beer and speech) and covered by the MIT License. This applies to all source code, documentation, examples and snippets inside the source distribution (including this website). Please see the appendix of the manual for the copyright statement and the full text of the license.

Download and Installation

Please find detailed download and installation instructions in the manual.


If you have problems installing the software or questions about usage, documentation or anything else related to NiBabel, you can post to the NiPy mailing list.

Mailing [subscription, archive]

We recommend that anyone using NiBabel subscribes to the mailing list. The mailing list is the preferred way to announce changes and additions to the project. You can also search the mailing list archive using the mailing list archive search located in the sidebar of the NiBabel home page.