Neuroimaging Software

BIDS basics: organising neuroimaging data

The Brain Imaging Data Structure (BIDS) is a simple, widely adopted standard for naming and organising neuroimaging files. Following it makes your data easier to understand, share and process with automated tools. This article covers the structure, the key files and the validator.

Learning objectives

  • Read a BIDS folder tree and file name.
  • List the files every dataset needs.
  • Explain the role of JSON sidecars and TSV files.
  • Use the BIDS validator before sharing or processing.

A minimal dataset

my_study/
├── dataset_description.json
├── participants.tsv
├── README
└── sub-01/
    └── anat/
        ├── sub-01_T1w.nii.gz
        └── sub-01_T1w.json

Reading a file name

A BIDS file name is made of key-value pairs followed by a suffix: sub-01_ses-01_task-rest_bold.nii.gz means subject 01, session 01, the resting-state task, a BOLD functional image. The suffix (such as T1w, bold or dwi) tells you the type of data.

Data-type folders

FolderContents
anatAnatomical images such as T1w and T2w
funcFunctional MRI
dwiDiffusion MRI, with bval and bvec files
fmapField maps for distortion correction
perfPerfusion imaging, including ASL

Required and helpful files

  • dataset_description.json is required. It names the dataset and the BIDS version.
  • participants.tsv lists subjects and optional variables such as age or group.
  • JSON sidecars hold acquisition parameters for each image, such as repetition time.
  • README explains the study in plain language.

The validator

The BIDS validator checks that names, folders and metadata follow the specification, and reports errors and warnings. Run it before analysing or sharing, and fix problems at the source.

De-identification

BIDS file names should not contain names or other identifying details. Check headers and metadata too before sharing data outside your approved environment.

Key takeaways

  • BIDS names and folders follow a predictable pattern.
  • Every dataset needs dataset_description.json.
  • Sidecars carry acquisition metadata.
  • Validate early and often.

To convert scanner output, see From DICOM to BIDS with HeuDiConv. SpinLab can build scripts for BIDS-based pipelines.

Frequently asked questions

Does BIDS include ASL?

Yes. BIDS has a perfusion data type for ASL, with metadata for labelling parameters.

Is BIDS mandatory?

No, but many pipelines and repositories expect it.

References and further reading

  • Gorgolewski KJ, et al. The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments. Sci Data. 2016;3:160044.
  • BIDS specification: bids-specification.readthedocs.io

Related articles

Last reviewed: 4 November 2026. Educational overview. Commands are illustrative: options change between versions, so check the official documentation for the version you install. Do not process identifiable patient data outside approved systems.

MRISpin Team

MRISpin team combines decades of experience in MRI research, clinical practice, and science communication. Meet the people driving MRISpin’s mission.

Related Articles

Back to top button