Tutorials

EDF vs BDF

What the extra 8 bits change, and when they matter.

4 min readUpdated December 2026

What is different

EDF, the European Data Format of 1992, is a widely used file format for EEG. BDF is BioSemi’s version of it: the same header and data records, with larger samples. A BDF file starts with the byte 255 and the word BIOSEMI, where an EDF file starts with the character 0.

The two formats in numbers
EDF and EDF+BDF and BDF+
Sample size16 bits (2 bytes)24 bits (3 bytes)
Levels per sample65,536, from −32,768 to 32,76716,777,216, from −8,388,608 to 8,388,607
Size of the same recordingSmallerAbout 1.5 times as big
AnnotationsEDF+, from 2003BDF+
Recordings with gapsEDF+DBDF+D
Written byMany EEG systems and programsBioSemi systems, mainly in research

What the ranges mean for the smallest step

Each channel’s header gives a physical range, such as −3,276.8 to 3,276.7 µV, and a digital range, such as −32,768 to 32,767. The smallest step the channel can store is the physical range divided by the steps in the digital range: 6,553.5 µV ÷ 65,535 = 0.1 µV, the step of the website’s EDF sample. A value is stored to within half a step.

Spread over BDF’s 16,777,215 steps, the same range gives steps of about 0.0004 µV. Put the other way, at a step of 0.1 µV an EDF channel covers about ±3.3 mV and a BDF channel about ±839 mV: 24 bits keep small steps over a much wider range.

Which to choose

  • Keep the format your system wrote. Saving 24-bit data as 16-bit EDF needs coarser steps or a narrower range, which loses fine detail or cuts off large values.
  • Keep 16-bit data as EDF. Saved as BDF it only grows, as the samples below show.
  • Choose 24 bits for a signal computed from a recording, such as a filtered or cleaned copy: its values fall between the original steps.

What EEG TraceLab reads and writes

The app on iPhone, iPad and Mac and the Online EEG Reviewer read EDF, EDF+, BDF and BDF+ files, continuous or with gaps, and EDF files named .rec. BDF samples keep their full 24 bits and are never rounded to 16. What they write:

  • An annotated copy or a segment: EDF+ from an EDF recording, 24-bit BDF+ from a BDF recording; at the original rate every sample is copied unchanged.
  • The app’s De-identified EDF Copy: the file as imported, de-identified again, so EDF stays EDF and BDF stays BDF.
  • A converted CSV: 16-bit EDF+, or 24-bit BDF+ when 16 bits would round its values.
  • A cleaned recording from Preprocess Signal in the app (Export BDF+…): 24-bit BDF+, whatever the source.

Exports are part of Pro and Max; opening and converting files is on every plan.

Download on the App StoreDownload on the Mac App Store

Compare the two samples

eeg-tracelab-sample.edfEDF+C | 5 minutes | 10-20 EEG with ECG | synthetic, no real person’s data
Open in the Online EEG ReviewerDownload
eeg-tracelab-sample.bdfBDF+C | 5 minutes | 10-20 EEG with ECG | synthetic, no real person’s data
Open in the Online EEG ReviewerDownload

The two files are the same recording: the BDF was written from the EDF, each 16-bit value saved as a 24-bit value over the same physical range. The BDF is 4.7 MB and the EDF 3.1 MB, yet the BDF’s values are still 0.1 µV apart, each within 0.0002 µV of the EDF’s.

Open both in the Online EEG Reviewer and go to the same time: Recording shows EDF+C and BDF+C (24-bit), and the traces are the same.

Common problems

How big will my file be?

About channels × samples a second × seconds × bytes per sample, plus the header: one hour of 64 channels at 2,048 Hz is about 0.9 GB as EDF and 1.4 GB as BDF. The Online EEG Reviewer reads a large file in slices and never loads it whole.

The traces look stepped

The steps are coarse for the signal. They come from the header’s physical range: a 16-bit channel whose range is ±100 mV has steps of about 3 µV. A narrower range, or 24 bits, gives finer steps.

Why does my BDF file have a Status channel?

BioSemi keeps its trigger inputs and its system status there. The Reviewer turns the trigger codes into events: see How to open a BDF file.

Does 24-bit mean a better recording?

Not by itself. The bits set the smallest step the file can store, not how much noise the recording holds.