Written and maintained by CASRAI Editorial Board
Published
On this page
Neurodata Without Borders (NWB) is an open-source data standard and software ecosystem designed to store, share, and analyze cellular neurophysiology data across electrophysiology, optical imaging, and behavioral experiments. Built on Hierarchical Data Format 5 (HDF5) and cloud-ready Zarr backends, NWB integrates raw instrument streams, processed analytical derivations, and rich metadata into self-describing containers that enable reproducible research, cross-platform tool interoperability, and long-term public archiving on the DANDI Archive.
What is Neurodata Without Borders (NWB)?
Neurodata Without Borders (NWB) is a standardized data format and software stack developed to unify neurophysiology data across global research laboratories. Contemporary neurobiology experiments generate massive, heterogeneous datasets—ranging from multi-channel extracellular probe recordings and patch-clamp electrophysiology to two-photon calcium imaging and high-speed video tracking. Historically, laboratories used proprietary, ad-hoc file formats, producing data silos and impeding collaborative computational analysis. Within modern experimental neuroscience (see our guide on what is neuroscience for an overview of disciplinary methods and funding frameworks), cellular electrophysiology and optical imaging produce multi-gigabyte data streams that demand standardized architectures.
NWB solves this fragmentation by packaging raw sensor recordings, processed signals, experimental protocols, and subject metadata into a single self-describing container. At its computational foundation, NWB utilizes the Hierarchical Data Modeling Framework (HDMF), which decouples abstract schema specification from physical binary storage. Through HDMF, NWB supports both local disk storage via HDF5 and cloud-native streaming via Zarr (HDMF-Zarr). This architecture ensures that neurophysiological datasets adhere to Findable, Accessible, Interoperable, and Reusable (FAIR) data principles across computational environments.
Rather than managing disconnected arrays and text headers, an NWB file encapsulates an entire experimental session with standardized containers for continuous time series, irregular event timestamps, multi-dimensional image stacks, and anatomical vocabularies. This ensures analysis scripts written for one laboratory dataset execute reliably on data collected by another without manual restructuring.
Who runs it and what it covers
Neurodata Without Borders is maintained as an open-source partnership between neuroscience institutes, high-performance computing centers, and software engineers. Core development is led by Lawrence Berkeley National Laboratory (LBNL), the Allen Institute for Brain Science, and CatalystNeuro, in active coordination with academic investigators. NWB is formally endorsed as a global standard by the International Neuroinformatics Coordinating Facility (INCF).
The ecosystem is supported by major grant funding lines, primarily from the National Institutes of Health (NIH) through the BRAIN Initiative (including awards U24EY034180 and R24MH117295) and the Kavli Foundation. These investments ensure core software libraries, schema specifications, and documentation remain open-source and continuously maintained.
NWB spans a broad spectrum of cellular-level and circuit-level neurophysiology experimental modalities:
- Extracellular Electrophysiology: Continuous local field potentials (LFPs), raw multi-channel voltage traces, and spike-sorted unit activity recorded from tetrodes, multi-electrode arrays (MEAs), and high-density silicon probes such as Neuropixels. Data structures record channel mapping, physical electrode geometry, tissue coordinates, and impedance.
- Intracellular Electrophysiology: Whole-cell patch-clamp current-clamp and voltage-clamp sweeps, membrane potential fluctuations, injected stimulus waveforms, seal resistance, series resistance compensation, and bridge balance metadata.
- Optical Physiology: Two-photon and multi-photon microscopy, planar imaging, and calcium indicator recordings. NWB stores raw imaging frames, optical channels, excitation wavelengths, emission filters, motion-correction offsets, region-of-interest (ROI) spatial masks, and extracted fluorescence signals (raw and ΔF/F).
- Behavioral Tracking: Animal position coordinates (SpatialSeries), compass orientation, head angle, pupil diameter, lickometer contacts, accelerometer traces, and timestamped behavioral epochs.
- Experimental Stimuli: Precise delivery timestamps, stimulus templates, visual drifting gratings, acoustic pulses, and optogenetic light stimulation waveforms.
The NWB format and PyNWB software architecture
The technical implementation of the nwb format maps experimental concepts directly to software objects. In Python, pynwb is the official reference library, providing a high-level API to construct, read, and validate NWB files without low-level HDF5 calls. An equivalent MATLAB library, MatNWB, ensures full read and write interoperability across programming languages.
The root container is the NWBFile object, which encapsulates session metadata: identifier, session start time, experiment description, institution, lab, and experimenters. It also houses structured Subject metadata, capturing species (mapped to NCBITaxon identifiers), genotype, sex, age, and individual identifiers. Beneath the root container, data is organized into standardized functional modules:
- Acquisition (
acquisition): Houses raw continuous data streams digitized from hardware, such as extracellular voltage traces and raw imaging frames. - Processing Modules (
processing): Groups distinct analytical pipelines, such asecephysfor spike sorting,ophysfor calcium ROI extraction, andbehaviorfor spatial kinematics. - Stimulus (
stimulus): Stores presented sensory stimuli and abstract templates delivered during the session. - Analysis (
analysis): Houses custom or study-specific analytical derivations.
The foundational primitive for temporal data is the TimeSeries class, which couples numerical data arrays with regular sampling rates (start time and rate in Hertz) or explicit irregular timestamps. Subclasses inherit standardized fields for measurement units, conversion multipliers, and data resolution, including ElectricalSeries for voltage traces, PatchClampSeries for intracellular sweeps, and SpatialSeries for coordinates. For tabular data, NWB provides the DynamicTable abstraction, supporting column-based storage with schema validation, notably in the ElectrodeTable for channel coordinates and the UnitsTable for sorted spike clusters.
How to convert data to NWB format: step-by-step workflow
Converting proprietary neurophysiology files to NWB requires extracting raw signals, populating standardized metadata, and validating schema compliance before submission. Researchers can execute this workflow using the no-code NWB GUIDE desktop application or programmatic Python pipelines using NeuroConv and PyNWB:
- Select the Conversion Interface: Choose between the graphical desktop application (NWB GUIDE) for visual, interactive data entry or scripted Python pipelines for automated high-throughput batch processing.
- Configure Modality Data Interfaces: Use the
neuroconvlibrary to automatically read proprietary formats. NeuroConv maintains interfaces for over 40 acquisition systems, including SpikeGLX, Open Ephys, Intan, Blackrock, Plexon, Thorlabs, Bruker, and ScanImage, extracting acquisition rates and device settings from source headers. - Initialize the NWBFile Container: Instantiate
NWBFilewith mandatory metadata:session_description, a unique UUIDidentifier, timezone-awaresession_start_time, experimenters, lab, and institution. Concurrently, define theSubjectobject with species, sex, and age. - Construct Hardware and Anatomical Tables: Define physical acquisition hardware by creating
Deviceobjects and building anElectrodeGroupwith target brain structures. Populate theElectrodeTablewith channel coordinates and anatomical labels, or defineImagingPlaneandOpticalChannelparameters for optical setups. - Map Signals to TimeSeries Containers: Package continuous arrays into appropriate
TimeSeriesinstances. Wrap extracellular voltages inElectricalSeriesreferencing the electrode table rows, link calcium traces intoRoiResponseSeries, and place coordinates intoSpatialSeries. Register acquisitions vianwbfile.add_acquisition(). - Validate Schema Compliance with NWB Inspector: Run the automated NWB Inspector tool (
nwbinspector) via command line or Python API. It verifies schema groups, checks array measurement units, confirms timestamp monotonicity, flags uncompressed datasets, and enforces DANDI submission requirements. - Package and Publish on the DANDI Archive: Register a Dandiset on the DANDI Archive (dandiarchive.org). Using the
dandiCLI, organize validated files, compute checksums, and synchronize data to the cloud repository, where a persistent Digital Object Identifier is minted (see our explainer on Crossref DOIs for scholarly registration).
Strengths and practical limits of the NWB ecosystem
The NWB data standard delivers significant technical capabilities for neuroscience research, balanced by practical operational considerations:
Key strengths include:
- Multimodal Synchronization: NWB natively co-registers high-bandwidth electrophysiology, multi-photon imaging, and continuous behavioral kinematics on a shared, microsecond-accurate timeline.
- Scalable and Chunked I/O: Utilizing HDF5 and Zarr storage engines, software can stream slices of data across gigabyte-scale datasets without loading entire files into system RAM.
- FAIR Data Compliance: Direct embedding of formal schemas, provenance tracking, and standardized ontologies satisfies funder data-sharing mandates.
- Cross-Language Interoperability: Mature reference APIs in Python (PyNWB) and MATLAB (MatNWB) facilitate collaborative cross-platform software development.
Practical operational limitations include:
- Software Learning Curve: Mastering the nested object-oriented architecture of PyNWB and HDMF requires dedicated programming effort compared to flat NumPy arrays or simple MAT-files.
- Extension Overhead for Custom Modalities: Experiments incorporating unconventional sensor streams require authoring custom Neurodata Extensions (NDX) using YAML and HDMF schema tools.
- Storage Overhead on Small Datasets: For brief single-channel recordings, hierarchical metadata structures and group definitions introduce file overhead compared to unformatted binary files.
Alternatives and complementary neurodata standards
Neurodata Without Borders operates alongside complementary data standards across the neuroinformatics landscape:
In macroscopic neuroimaging, the Brain Imaging Data Structure (BIDS) standardizes human MRI, MEG, and scalp EEG data using file-system hierarchies with NIfTI images and TSV/JSON sidecars. While NWB handles cellular-level neurophysiology, BIDS serves whole-brain imaging deposited in archives like OpenNeuro (see our guide on OpenNeuro and BIDS neuroimaging data sharing). Such datasets are routinely analyzed with tools like Statistical Parametric Mapping (see our guide on Statistical Parametric Mapping).
In computational electrophysiology, Neo provides an in-memory Python object representation for signal processing, whereas NWB serves as a persistent, on-disk archival container. Similarly, SpikeInterface bridges acquisition systems and NWB by reading raw traces from ElectricalSeries and writing sorted spike clusters back into UnitsTable containers.
The table below summarizes the technical specifications across these complementary neuroscience data formats:
| Standard Name | Primary Modality Scope | Underlying Architecture | Target Scale | Standard Archival Repository |
|---|---|---|---|---|
| Neurodata Without Borders (NWB) | Cellular neurophysiology (ephys, calcium imaging, behavior) | Hierarchical HDF5 and Zarr containers | Cellular and circuit-level | DANDI Archive |
| Brain Imaging Data Structure (BIDS) | Macroscopic neuroimaging (fMRI, structural MRI, MEG, scalp EEG) | File-system hierarchy with NIfTI and TSV/JSON | Whole-brain and system-level | OpenNeuro |
| Neo Object Model | Electrophysiological spike trains and analog signals | In-memory Python object hierarchy | Algorithmic representation | GIN / Zenodo |
| SpikeInterface Framework | Extracellular probe recording and spike sorting | Modular Python extractors with binary cache | Electrode arrays and probes | DANDI Archive / Zenodo |
| Proprietary Vendor Formats | Instrument-specific acquisition (Plexon, Intan, Blackrock) | Proprietary binary and header files | Hardware acquisition | Institutional servers |
The comparative dataset rendered below summarizes the structural and functional specifications across these leading neuroscience data standards.
Frequently asked questions
What is Neurodata Without Borders (NWB)?
Neurodata Without Borders (NWB) is an open-source data standard and software ecosystem developed to provide neuroscientists with a common standard to share, archive, use, and build analysis tools for neurophysiology data. It defines formal schemas for intracellular electrophysiology, extracellular electrophysiology, optical imaging, behavioral tracking, and stimulus presentations. By packaging raw sensor measurements, processed results, and experimental metadata into self-describing HDF5 and Zarr files, NWB ensures cellular neuroscience data can be shared openly and analyzed reproducibly.
What types of data does NWB support?
NWB supports a wide array of neurophysiological and behavioral experimental modalities. These include extracellular electrophysiology (raw local field potentials, multi-channel probe voltage traces, and sorted single-unit spike events), intracellular electrophysiology (patch-clamp membrane potentials, voltage-clamp currents, and current injections), and optical physiology (two-photon microscopy stacks, planar fluorescence imaging, motion-corrected image series, and extracted ROI calcium activity). In addition, NWB supports continuous spatial tracking of animal kinematics, compass orientations, eye tracking, and precise timestamps for sensory and optogenetic stimuli.
Why is NWB important in neuroscience?
NWB is essential in neuroscience because it eliminates reliance on isolated, proprietary file formats that historically prevented data sharing and tool interoperability between laboratories. By providing a standardized, machine-readable data language, NWB enables researchers to combine datasets across labs, re-analyze historical experiments with novel computational models, and fulfill FAIR data sharing mandates imposed by funding agencies like the NIH BRAIN Initiative. Furthermore, it allows software developers to create analysis tools and visualization platforms that operate out-of-the-box across diverse experimental datasets.
How do you convert data to NWB format?
Researchers can convert proprietary experimental data into NWB format using either no-code desktop applications or scripted programmatic pipelines. The NWB GUIDE desktop application offers a no-code graphical user interface that guides users through file selection, metadata entry, and format conversion. For programmatic workflows, the NeuroConv Python package automates the conversion of over 40 proprietary data formats (such as SpikeGLX, Open Ephys, Intan, and ScanImage) into NWB. Alternatively, developers can write customized scripts using the PyNWB (Python) or MatNWB (MATLAB) reference APIs to instantiate NWBFile objects and map signals into standardized containers.
Where are NWB data files typically stored or published?
NWB data files are primarily published and archived on the DANDI Archive (dandiarchive.org), the national neuroscience repository funded by the NIH BRAIN Initiative. On DANDI, datasets are organized into citable packages called Dandisets, which receive persistent Digital Object Identifiers (DOIs). Researchers can also store NWB files on institutional high-performance computing clusters or cloud object storage systems, where chunked HDF5 and Zarr backends support high-speed remote data streaming without requiring full-file downloads.
Sources
- The NWB Software Ecosystem – Neurodata Without Borders, checked 2026-11-21
- NWB Software Overview — NWB Overview 0.1 documentation, checked 2026-11-21
- Converting neurophysiology data to NWB — NWB Overview 0.1 documentation, checked 2026-11-21
- Glossary of Core NWB Tools — NWB Overview 0.1 documentation, checked 2026-11-21
- NWB for Python — PyNWB 4.2.0 documentation, checked 2026-11-21
- NWB File Basics — PyNWB 4.2.0 documentation, checked 2026-11-21
- GitHub – NeurodataWithoutBorders/pynwb: A Python API for working with Neurodata stored in the NWB Format · GitHub, checked 2026-11-21
- GitHub – NeurodataWithoutBorders/nwb-schema: Data format specification schema for the NWB neurophysiology data format · GitHub, checked 2026-11-21
- DANDI Archive, checked 2026-11-21
Data: Comparative Specifications of Open Neuroscience Research Data Formats
A comparative benchmark of open research data standards across cellular neurophysiology and macroscopic neuroimaging, detailing modality scope, storage containers, reference APIs, validation tooling, and primary open archives.
Period covered: 2024/2026. Coverage: Global.
| Standard Format | Experimental Modality | Storage Architecture | Reference API | Validation Tool | Primary Archive |
|---|---|---|---|---|---|
| Neurodata Without Borders (NWB) | Cellular neurophysiology (ephys, calcium imaging, behavior) | Hierarchical Data Format (HDF5) and Zarr | PyNWB (Python) and MatNWB (MATLAB) | NWB Inspector (nwbinspector) and HDMF Validator | DANDI Archive |
| Brain Imaging Data Structure (BIDS) | Macroscopic neuroimaging (fMRI, structural MRI, MEG, EEG) | Directory hierarchy with NIfTI and TSV/JSON sidecars | PyBIDS (Python) and bids-matlab (MATLAB) | bids-validator (CLI and web application) | OpenNeuro |
| Neo Object Model | Electrophysiological spike trains and analog signals | In-memory Python object hierarchy with multi-format I/O | Neo Python library (scipy/numpy stack) | Built-in Python unit test suite and type checking | GIN / Zenodo |
| SpikeInterface | Extracellular probe recordings and spike sorting pipelines | Modular Python extractors with binary and Zarr caching | SpikeInterface Python framework | Internal extractor validation and probe interface checks | DANDI Archive / Zenodo |
| MNE-Python Data Format | Human electrophysiology (MEG, EEG, sEEG, ECoG) | Functional Imaging File (FIF) format and HDF5 | MNE-Python library | mne.io automated file verification routines | OpenNeuro / OSF |
Sources
- The NWB Software Ecosystem - Neurodata Without Borders (accessed 2026-11-21)
- NWB Software Overview — NWB Overview 0.1 documentation (accessed 2026-11-21)
- DANDI Archive (accessed 2026-11-21)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







