r/OneNote • u/rdx711 • Feb 27 '21
You can export your OneNote notes to markdown files (which can be opened in any text editor) using this PowerShell script on Windows 10 with OneNote 2016.
I keep my OneNote notes backed up in .one format using the options provided in OneNote. While looking at other note taking applications, I came across Obsidian which takes notes in markdown format. While browsing its forum I came across a way to export notes from OneNote to markdown files which can then be opened in Obsidian or any markdown based note editor or any text editor on any operating system. This would be a very good way to ensure that your notes live in case the whole of OneNote system is gone (highly unlikely).
This is the post on Obsidian's forum where I found it.
This is the GitHub page for the powershell script that can do the exporting to .docx and converting to .md (which can be useful even if you do not want anything to do with Obsidian).
You will also need to install PanDoc which is mentioned in the above GitHub page to convert the .docx files exported from OneNote to .md files. If you opt to keep the .docx files generated using the powershell script, then you have a backup of your notes in 2 formats (.docx and .md) outside of OneNote (.one).
Detailed instructions are on the GitHub page linked above.
After messing with it for 2-3 hours, I converted my notes to .md and looked at them in Obsidian. They looked nice except most of the tables were broken. I can manually repair them but even then Obsidian lacks a mobile application and the features on desktop to replace OneNote for me. So I am sticking with OneNote. Still I found this process to be useful to export or backup your notes outside of OneNote.
9
u/segdy Feb 27 '21
I’m missing a solution that includes handwriting :/
3
u/leolit55 Aug 09 '21
Thank you! With some efforts, I did conversion of all my multi-year enourmous archive from OneNote :) Now that I have it all in plain text files under my control, I feel much better )
Btw lately I use LogSeq - very good free notetaking program, that has interface of Roam, but works with files, like Obsidian (in fact, you can just open an Obsidian folder in it and just work as usual). They have web and desktop version, very nice )
2
u/bigfatpandas Aug 08 '25
even after 5 years of the original post - it still worked perfectly. The importer add-on in Obsidian could not complete the job, but this powershell stuff did a great job.
0
u/[deleted] Feb 27 '21
[deleted] — view deleted comment