Health and Fitness

How to Open EDF Files of EEG and Sleep Recordings

Open EDF and EDF+ recordings in the browser: page through EEG and sleep channels, change montage and filters, jump to annotations and export a section.

Saizul Amin
Saizul Amin19 Nov 2026 · 4 min read
How to Open EDF Files of EEG and Sleep Recordings

How to Open EDF Files of EEG and Sleep Recordings

EDF files turn up in many places: an EEG system exports one, a sleep study package saves the night as one, a home recorder writes them to a card, and public datasets on PhysioNet and elsewhere share thousands of them. Without the software that made them, they are hard to open. The free EDF EEG and Sleep Recording Viewer reads them in the browser and draws the signals.

It is important to say what this is not. The viewer does not score sleep, find seizures, count breathing events or interpret any trace, and it is not a medical device. Clinical recordings must be read by trained staff, and questions about a recording made for you belong with the clinic that made it.

The format in brief

The European Data Format was published in 1992 for sleep and EEG data, and EDF+ followed in 2003 with support for annotations and interrupted recordings. A file begins with a header: patient and recording fields, start date and time, the number of data records and their duration, and for each signal its label, transducer, physical unit, physical and digital minimum and maximum, filter notes and number of samples per record. The data follow as 16-bit integers, which the viewer converts back to physical values such as microvolts using the ranges in the header.

Signals in one file can have different sample rates. A sleep recording might have EEG at 256 Hz, airflow at 32 Hz and oxygen saturation at 1 Hz. The viewer handles each at its own rate.

Paging through a recording

After you open a file, the summary line shows the type (EDF, EDF+C or EDF+D), the start, the length, the number of signals and annotations. The traces appear one per row. Choose the page length: 10 seconds is usual for reading EEG, 30 seconds matches the epoch used in sleep scoring, and longer pages help with slow signals such as respiration. Turn pages with the buttons, the arrow keys or Page Up and Page Down, hold Shift for half pages, or drag the position slider.

Sensitivity is the number of microvolts that fills half a row. Lower numbers make small signals larger. Channels in other units, such as airflow or oxygen saturation, are scaled automatically to fit their row.

Montages

As recorded shows each channel the way it was stored, often each electrode against a common reference. Average reference subtracts the mean of all EEG channels at each moment. The longitudinal bipolar montage, nicknamed the double banana, shows chains of neighbouring electrode differences such as Fp1-F7, F7-T3, T3-T5 and T5-O1, and the transverse montage runs across the head. These are built from standard 10-20 names; the viewer understands both old names such as T3 and new ones such as T7. If your channels have other names, define your own pairs under Custom pairs.

Filters

The high-pass filter removes slow drift, the low-pass removes fast noise such as muscle activity and the notch removes 50 or 60 Hz mains interference. Common display settings for EEG are 0.5 Hz and 35 Hz. Filters only affect what you see and the CSV export; the file stays untouched.

Annotations and marks

EDF+ files carry annotations: sleep stages, lights off, events, technician comments. They appear as green bands with their text and in a list on the side, where tapping the time jumps there. Add your own marks with a short text at the current position or at the start of a selection. Marks are kept with Undo and Redo, and all annotations can be saved as CSV.

Exporting a section

Drag across the traces to select a stretch. Section CSV writes time and every displayed channel in physical units with the current montage and filters. Section EDF writes a new EDF file with the original signals for that stretch and blank patient fields, which is handy for sharing an example without personal details. PNG saves the current page.

Limits

24-bit BDF files are not read, and gaps in discontinuous EDF+ files are not drawn as gaps. Large files need enough memory to load, although only the current page is decoded. For looking at research data, checking an export or teaching what signals look like, the viewer gives a clear, private view in any browser.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages