# from edf to fif file conversion?

**URL:** <https://mne.discourse.group/t/from-edf-to-fif-file-conversion/4786>\
**Category:** Support & Discussions\
**Tags:** preprocessing\
**Created:** [April 26, 2022, 12:44am UTC](https://mne.discourse.group/t/from-edf-to-fif-file-conversion/4786 "2022-04-26T00:44:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhD-GOAT](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/phd-goat/32/1326_2.png) [@PhD-GOAT](https://mne.discourse.group/u/PhD-GOAT)\
**Post date:** [April 26, 2022, 12:44am UTC](https://mne.discourse.group/t/from-edf-to-fif-file-conversion/4786/1 "2022-04-26T00:44:25Z")

</div>

- MNE version: 1.0.1
- operating system: Windows 10

I know that the edf file uses the read\_raw function. By the way, how do you do the fif file?

Where do i get it?

> **[GitHub - uesseu/edf2fif: Python script to convert EEG file(edf-d to fif)](https://github.com/uesseu/edf2fif)**
>
> Python script to convert EEG file(edf-d to fif). Contribute to uesseu/edf2fif development by creating an account on GitHub.

i tried this page, but error!!

---

<div class="post-metadata">

**Author:** ![balandongiv](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/balandongiv/32/104_2.png) [@balandongiv](https://mne.discourse.group/u/balandongiv)\
**Post date:** [April 26, 2022, 5:52am UTC](https://mne.discourse.group/t/from-edf-to-fif-file-conversion/4786/2 "2022-04-26T05:52:42Z")

</div>

# Read the EDF

raw =mne.io.read\_raw\_edf()

# Save as `fif` {[source](https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw.save)}

raw.save(‘some\_name.fif’)

or, if you want to read the `fif`

raw = [mne.io.read\_raw\_fif](https://mne.tools/stable/generated/mne.io.read_raw_fif.html#mne.io.read_raw_fif)([sample\_data\_raw\_file](https://docs.python.org/3/library/stdtypes.html#str))
