.EDF

EDF File

European Data Format (biosignal recording)
Ask a question
QUICK ANSWER

An EDF file is a European Data Format recording that stores biological time-series signals such as EEG (brain), ECG (heart), EMG (muscle), or overnight sleep studies. It is not a document or image - it holds digitized measurement samples. The free, open-source EDFbrowser opens EDF files on Windows, Mac, and Linux. Note: the same .edf extension is also used by the RF Online game and by ESRF synchrotron images, which need entirely different software.

Developer: Bob Kemp et al. (published 1992); EDF+ extension 2003 Category: Data Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jul 18, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the EDF file format?

.edf (European Data Format) is an open standard for exchanging and storing multichannel time-series biosignals - EEG, EMG, ECG, and polysomnography recordings. Developed by Bob Kemp and colleagues and first published in 1992, it was designed as a simple, application-independent way to share physiological recordings between hospitals and research groups worldwide.

Each .edf file has a header section that contains file metadata: patient identification, recording date and time, the number of signals, and per-channel information including physical and digital scaling ranges and sample rates. The second part of the file contains the biosignal data in binary format as 16-bit signed integers, organized in fixed-length data records. Files begin with the 8-byte ASCII field "0 " (the digit zero followed by seven spaces) - the format's identifying magic signature.

EDF is an open, non-proprietary format with its specification published freely. An updated version, EDF+, adds some new features - annotations, event markers, and discontinuous recordings - but still uses the same .edf extension. The related BDF format is a 24-bit variant used by BioSemi amplifiers, while GDF (General Data Format) extends EDF with a richer header.

The format is widely supported in clinical and research software including EDFbrowser, MNE-Python, EEGLAB, and FieldTrip. Some files, particularly from older polysomnography recorders, carry the .rec extension instead.

Security & safety

RISK: LOW

An .edf is passive measurement data and cannot execute, so it's safe to open in a viewer. The real concern is privacy: clinical EDF/EDF+ headers can contain patient name, ID, and recording date - treat medical recordings as sensitive personal data and anonymize (EDFbrowser can blank the patient fields) before sharing. If a text editor shows only gibberish after the readable header, that's normal (the signal body is binary) - or you may actually have the unrelated RF Online / ESRF kind of .edf, which needs different software.

Format details

in a nutshell
FULL NAMEEuropean Data Format (biosignal recording)
DEVELOPERBob Kemp et al. (published 1992); EDF+ extension 2003since 1992 (EDF); EDF+ in 2003
CATEGORYData Files
MIME TYPEapplication/octet-stream
TYPEBinary time-series file - fixed ASCII header + 16-bit signed samples (EEG/EMG/ECG/PSG)
STANDARDOpen · royalty-free
This extension is also used by…
  • RF Online game data file - Some installs of the MMORPG RF Online use .edf files for game data; opened only by the game, not by biosignal tools.
  • ESRF Data Format (EDF image) - The European Synchrotron (ESRF) stores 2D detector images as .edf (ASCII header + binary pixels), read by Fit2D / silx / SAXS tools.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304050607
HEX
3020202020202020
ASCII
0
An EDF file begins with an 8-byte ASCII "version" field containing "0" followed by seven spaces. The next 80 bytes hold patient ID and 80 bytes the recording ID, all printable ASCII, so the start of an EDF looks like readable text. EDF+ files are identical at offset 0; some EDF+ headers carry "EDF+C"/"EDF+D" in a reserved field. The related BDF format (24-bit BioSemi variant) instead starts with byte 0xFF + "BIOSEMI".

Programs that open EDF files

Windows3 apps
EDFExplorer Open-source Older open-source EDF viewer; opens and inspects .edf headers and signals. (Largely superseded by EDFbrowser - verify the build.)
EDFbrowser Open-source Open the .edf to view all signal traces, zoom/scroll, read annotations, and export to CSV/ASCII or EDF subsets. Best free choice.
Polyman / EDF viewer (edfplus.info) Free Download a free EDF/EDF+ viewer from the official format site to display recordings and sleep scoring.
macOS2 apps
EDFbrowser Open-source Build/install for macOS to view and export EDF/EDF+/BDF recordings.
MNE-Python (Anaconda) Open-source mne.io.read_raw_edf('file.edf') - load, plot, and analyze EEG/MEG signals programmatically. For analysts/researchers.
Linux2 apps
EDFbrowser Open-source Install from your distro (e.g. apt install edfbrowser) and open the .edf to view/convert signals.
MNE-Python Open-source Read and analyze EDF biosignals in Python (read_raw_edf).
Web1 app
Online EDF Viewer Free Open the page and load an .edf locally in your browser to preview signal traces - no install. Processing stays client-side.

Technical details

deep spec
File structure256-byte global ASCII header + 256 bytes per signal × number of signals, followed by contiguous binary data records
Sample encoding16-bit signed integers, little-endian, one value per sample per channel
Header encodingPure ASCII; all header fields are fixed-width and space-padded - no null bytes appear anywhere in the header
Magic bytes0x30 followed by seven 0x20 bytes at offset 0 - ASCII "0 " (digit zero followed by seven spaces)
MIME typeapplication/octet-stream
Signal types supportedEEG, EMG, ECG, EOG, body temperature, blood oxygen, respiratory effort, and arbitrary time-series biosignals
Channels per fileUp to 9,999 signals; each channel independently defines its own sampling rate and physical unit
Per-channel header fieldsSignal label, transducer type, physical dimension (unit), physical min/max, digital min/max, prefiltering info, samples per data record
Physical-to-digital mappingLinear scaling defined per channel by (digital_min, digital_max, physical_min, physical_max); resolution = (physical_max − physical_min) / 65536
EDF+ annotation trackReserved channel labelled "EDF Annotations" stores TAL (Time-stamped Annotations Lists) as UTF-8 text events with onset, duration, and description
Discontinuous recordingBase EDF requires continuous data; EDF+ adds EDF+C (continuous) and EDF+D (discontinuous) subtypes flagged in a reserved header field
Alternate extension.rec - used by some older polysomnography recorders for files in the identical EDF binary format
Related formatsBDF (24-bit BioSemi variant, magic 0xFF + "BIOSEMI"); GDF v1/v2 (General Data Format, backward-compatible superset of EDF)
Software supportEDFbrowser, MNE-Python, EEGLAB, FieldTrip, Polyman, BrainVision Analyzer (import), MATLAB Biosig toolbox
Released1992 (EDF); EDF+ in 2003
Open standardYes · royalty-free
Specificationwww.edfplus.info

EDF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with EDF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about EDF files.

Frequently asked questions

What is an EDF file?
A European Data Format recording: an open-standard file that stores time-series biosignals such as EEG (brain), EMG, ECG, and overnight sleep studies. It holds digitized signal samples plus a readable header, not a document or image.
How do I open an EDF file?
Use the free, open-source EDFbrowser on Windows, Mac, or Linux to view all the signal traces and annotations. There's also a free online EDF viewer and Python's MNE library for analysis.
How do I convert an EDF file to CSV or Excel?
Open it in EDFbrowser and use File > Export to ASCII/CSV; each channel becomes a column you can load in Excel, Python, or MATLAB. Recordings can be large, so the CSV may be huge.
What's the difference between EDF and EDF+?
EDF+ (2003) is a backward-compatible extension that adds annotations/events and supports discontinuous recordings. EDF viewers can open EDF+ files; the data format of the signals is the same.
Why does my .edf file look like random characters?
The header is readable ASCII but the signal body is binary 16-bit samples, so a text editor shows gibberish after the header - that's normal. Use EDFbrowser. If it's from a game, it may be the unrelated RF Online .edf instead.
Is an EDF file the same as a synchrotron or RF Online file?
No. The same .edf extension is reused by the MMORPG RF Online (game data) and by ESRF synchrotron detector images. They're unrelated formats that need their own software; this page covers the biosignal European Data Format.

References

1European Data Format - official site (EDF/EDF+ specs)www.edfplus.info
2EDF specification (header layout)www.edfplus.info

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.PARTPartial Download File
8.JSONJavaScript Object Notation file
9.ICSiCalendar data file
10.BINCD/DVD Disc Image (BIN/CUE)

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z