# Save annotations to EDF file

**URL:** <https://mne.discourse.group/t/save-annotations-to-edf-file/4973>\
**Category:** Support & Discussions\
**Created:** [May 31, 2022, 1:43pm UTC](https://mne.discourse.group/t/save-annotations-to-edf-file/4973 "2022-05-31T13:43:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoukasIlias](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@LoukasIlias](https://mne.discourse.group/u/LoukasIlias)\
**Post date:** [May 31, 2022, 1:43pm UTC](https://mne.discourse.group/t/save-annotations-to-edf-file/4973/1 "2022-05-31T13:43:31Z")

</div>

Hello,

I want to create annotations for an edf file.  
I am using mne.Annotations, raw.set\_annotations().  
In the end, I want to save the edf file with the annotations. However, using the command “raw.save()”, I save it in .fif format.  
Is there any way to save it as an edf file?

Thanks!

---

<div class="post-metadata">

**Author:** ![cbrnr](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cbrnr/32/1409_2.png) [@cbrnr](https://mne.discourse.group/u/cbrnr)\
**Post date:** [May 31, 2022, 2:07pm UTC](https://mne.discourse.group/t/save-annotations-to-edf-file/4973/2 "2022-05-31T14:07:15Z")

</div>

Yes, you can use [`raw.export()`](https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw.export).

---

<div class="post-metadata">

**Author:** ![agramfort](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agramfort](https://mne.discourse.group/u/agramfort)\
**Post date:** [May 31, 2022, 2:10pm UTC](https://mne.discourse.group/t/save-annotations-to-edf-file/4973/3 "2022-05-31T14:10:34Z")

</div>

have a look at :

[https://mne.tools/stable/generated/mne.export.export\_raw.html](https://mne.tools/stable/generated/mne.export.export_raw.html)

but I am not sure it supports annotations.

Alex
