Tutorials

How to anonymise an EDF file

Where a recording can hold personal details, what EEG TraceLab clears, and what to check yourself.

4 min readUpdated December 2026

What an EDF file can hold about a person

The header of an EDF or BDF file has a patient field and a recording field of 80 characters each, and the start date and time. In plain EDF both fields are free text. EDF+ gives them a structure: the patient field holds a hospital code, sex, birth date and name, and the recording field the start date, an investigation code, the technician and the equipment.

Each channel’s 16-character label and its 80-character transducer and prefiltering fields are free text too, and so are EDF+ and BDF+ annotations, which can name the person, the staff or the place. The file name may hold a name or a hospital number as well.

Make the copy in your browser

  1. Open the file in the Online EEG Reviewer, as in How to open an EDF file. The Reviewer never reads the patient and recording fields or the start date and time, so they never reach the page.

    Online EEG Reviewer: the Recording page’s note that identification is not read
  2. Open Annotations and read the list. Edit or delete any annotation that names someone: your edits stay in that tab and go into the copy. Text that looks identifying already shows as [redacted].

    Online EEG Reviewer: editing an annotation on the Annotations page
  3. Under Keep your annotations, click Annotated EDF+ copy (Pro and Max). It downloads as eeg-tracelab-annotated-copy.edf, or .bdf for a BDF file.

    Online EEG Reviewer: Annotated EDF+ copy under Keep your annotations

The copy is de-identified as the app does it. Its patient field becomes X X X X and its recording field Startdate X X X X, the values EDF+ uses when they are unknown, and the start date and time become 01.01.85 and 00.00.00. Channel labels are written as the Reviewer shows them: a leading “EEG” is dropped, and a label that looks identifying becomes Channel and its number. Transducer and prefiltering text that looks identifying is cleared, and annotation text you added or edited is checked the same way. Every signal sample is copied unchanged and every record keeps its time.

For part of a recording, use Export a segment on the Recording page, also Pro and Max: a time range of the channels you choose, de-identified in the same way.

On iPhone, iPad and Mac

The app de-identifies every recording in the same way when you import it, on every plan, and keeps only the de-identified copy.

Name This Recording warns when a name looks like it may contain identifying information. On iPhone the name starts as the file’s own name, so change it if that holds a person’s name.

With Pro or Max, Recording Files exports a De-identified EDF Copy (De-identified EDF+ on iPhone): the file as imported, de-identified again. The Annotated EDF+ Copy and Export Segment are de-identified in the same way, and exports are named by the recording’s anonymous ID (ETL-…), never by its name. To send a copy outside your group, turn on Remove all annotation text in the De-identified EDF Copy: every annotation is left out, with its time.

Download on the App StoreDownload on the Mac App Store

Check before you share

The automatic check looks for dates written in numbers, long numbers such as hospital numbers, and words such as patient, hospital, ward or date of birth. It cannot recognise every name, so look yourself:

  • Annotation text: read the whole list, the annotations you added included.
  • Channel labels: read each one.
  • File names: if you rename a copy, keep names and hospital numbers out of it, and out of the message you send it with.

Common problems

Is the original file changed?

No. The Online EEG Reviewer writes a new file, and the app works on its own copy.

Why does the copy say 01.01.85?

The header must hold a date and a time, so the copy holds these in place of the real ones. Times inside the file count from the start of the recording.

Where are my annotation types?

EDF+ has no field for the type, so the Reviewer puts the types in events.tsv, which you can save beside the copy from Keep your annotations.

A name is in the copy I made

Delete that copy, edit or delete the annotation, and export again. The original file still holds the name, so share only the new copy.