OneNote to Markdown: three ways to convert notebooks
OneNote has no Markdown export. Convert notebooks with Obsidian Importer, from a .onepkg file, or through Word and Pandoc, and see what each route loses.

OneNote cannot export Markdown, so converting OneNote to Markdown means using a tool in between. There are three practical routes: the Importer plugin in Obsidian, which signs in to your Microsoft account and reads notebooks synced to OneDrive; the same plugin reading a .onepkg file exported from OneNote for Windows, with no account needed; or exporting pages and sections to Word from OneNote for Windows and converting the .docx files with Pandoc. All three keep text, headings, lists, tables and images. None keeps OneNote's free-form page layout.
The OneNote and Obsidian steps below follow Microsoft's support pages and Obsidian's help page on importing from OneNote (checked November 2026).
Can OneNote export Markdown?
No. OneNote for Windows, the desktop app that comes with Microsoft 365, exports from File > Export to formats such as Word Document (.docx), PDF and OneNote Package (.onepkg). Markdown is not among them. In 2025 Microsoft retired export to the older Word 97-2003 format; .docx export remains.
What each version of OneNote can export, as of November 2026:
| OneNote version | Export options |
|---|---|
| OneNote for Windows (Microsoft 365) | Page or section to Word, PDF and other formats; notebook to .onepkg or PDF |
| OneNote for Mac | No notebook export; Microsoft points Mac users to OneNote for the web |
| OneNote for the web | Notebook export to a zip, only for notebooks on a personal OneDrive account |
If you only have a Mac, the Microsoft account route below is the one that works without borrowing a Windows PC.
How do you convert OneNote with Obsidian Importer and a Microsoft account?
This route reads notebooks straight from OneDrive, so it needs an internet connection and a sign-in.
- In Obsidian, open Settings > Community plugins, install Importer, and enable it.
- Open Importer and set File format to Microsoft OneNote.
- Click Sign in, finish signing in to Microsoft in your browser, click Accept, and return to Obsidian.
- Tick the notebooks and sections to import.
- Click Import to preview the template, then Import again to run it.
Obsidian's guide lists the limits. Only notebooks owned by the signed-in account can be imported, not notebooks shared with you. Notebooks must be synced to OneDrive, and locked sections do not appear until you remove the password. Work and school accounts may need approval from your organization.
How do you convert a .onepkg file?
If the notebook lives on a work account, or you prefer not to sign in, export a package and import that file instead.
- In OneNote for Windows, open the notebook and choose File > Export.
- Under Export current, choose Notebook.
- Under Select format, choose OneNote Package (*.onepkg) and click Export.
- In Obsidian's Importer, set File format to Microsoft OneNote (.one, .onepkg) and select the file.
- Untick any sections you don't want, pick an output folder, and click Import twice.
Each section becomes a folder and each page becomes a note; subpages go in a folder named after their parent page. Password-protected sections are skipped, rights-protected files can't be read, and pages in the notebook's recycle bin are left out.
How do you convert OneNote through Word and Pandoc?
This route needs no plugin, works one page or one section at a time, and gives you plain Markdown files from a tool you control.
- In OneNote for Windows, open the section you want.
- Choose File > Export.
- Under Export current, choose Section (or Page).
- Choose Word Document (*.docx) and click Export.
- Convert the file with Pandoc:
pandoc "Meeting notes.docx" -t gfm --wrap=none --extract-media=media -o "Meeting notes.md"
A section exported to Word becomes one long document with every page in it, one after another. Split it into separate files afterward if you want one note per page. The Word to Markdown guide explains what Pandoc does with images, comments and complex tables in the .docx file.
What happens to OneNote's free-form layout?
A OneNote page is a canvas. You can click anywhere and type, so a page can hold several text boxes side by side, a drawing over a screenshot, and a table in the corner. A Markdown file is a single column of text read from top to bottom, so every converter has to put those boxes in some order.
Expect these changes:
| On the OneNote page | In the Markdown file |
|---|---|
| Text boxes placed side by side | One after another, in the order the converter reads them |
| Page title | The first line or the file name, depending on the tool |
| Headings styled with Heading 1, 2 and so on | # headings, if the tool maps styles |
| To Do tags | Checkboxes in some tools, plain text in others |
| Handwriting and drawings | Images, or nothing at all |
| Audio and video recordings | Attachments, if the tool exports them |
| Highlights and font colors | Usually dropped |
Pages that were mostly typed notes, lists and tables come through well. Pages built as visual boards will need rework whichever route you choose, so open a few of your busiest pages first and decide how much cleanup they are worth.
Which OneNote to Markdown route fits your notebooks?
| Situation | Route |
|---|---|
| Personal notebooks on OneDrive, any computer | Obsidian Importer with a Microsoft account |
| Work or school notebooks, or no sign-in allowed | .onepkg export, then Obsidian Importer |
| A few sections, and you want plain files without Obsidian | Word export, then Pandoc |
| Notebook export from a Mac only | OneNote for the web, if the notebook is on a personal OneDrive |
The Obsidian routes write notes into an Obsidian vault, which is an ordinary folder of .md files. You can keep using Obsidian, or open the same folder in any other Markdown editor.
How do you clean up the converted notes?
Work through a few checks per notebook:
- Headings. Confirm that section titles are real
#headings rather than bold lines. The Markdown headings page shows the levels. - To Do items. Turn any that arrived as plain text into task list items (
- [ ] Call the venue). See Markdown task lists. - Order. On pages with side-by-side text boxes, read the result once and move paragraphs into a sensible order.
- Images. Open a few image links to confirm the files exist next to the notes.
- Dates. OneNote shows a created date on each page. Check whether your tool kept it in the note or only in the file's date.
OneNote notes in Noteline
Noteline, which we make, opens the converted folder as it is: choose File > Open Folder… (Cmd+O on a Mac, Ctrl+O on Windows and Linux), and headings, lists, task lists and tables show formatted as you edit. For one page at a time, you can also copy it from OneNote and paste into an empty Noteline note; when the clipboard holds formatted text, it is converted to Markdown, and pasting into a note that already has text keeps it plain. Images linked in a note show their alt text rather than the picture, and a Markdown note has no layer for handwriting, so keep ink-heavy pages in OneNote or export them as PDF.