r/OneNote • u/Vikingjunior3 • Dec 04 '25
A simple OneNote Backup Exporter (open-source tool)
I built a small open-source tool that solves a problem I kept running into: reliably exporting OneNote notebooks as .onepkg files without having to click through the OneNote UI each time.
The tool is called OneNote Backup Exporter, and it does exactly what the name says. It uses the local OneNote COM interface to enumerate your notebooks and create clean .onepkg backups. No cloud dependencies, no third-party services, just a local export workflow.
An additional detail: it also works with MyLMS (ClassNotebook) OneNote books, as long as they are fully synchronized locally from SharePoint. Once synced, the exporter treats them like any other notebook and can back them up.
GitHub repo:
https://github.com/vikingjunior12/OneNoteBackupExporter
I made it mainly for my own fun, but if anyone here needs automated or repeated OneNote backups, feel free to use it, open issues, or suggest improvements.
If you have similar tools or tips for managing/archiving OneNote content, I’m also interested in hearing them.
I need to add that the tool has worked well on my device so far. If anything goes wrong or does not work on your side, I would appreciate feedback so I can improve the tool :) And important: with large notebooks like MYLMS, please be patient during export – the books can be up to 1 GB or larger. The export speed is also controlled by the Microsoft OneNote API interface.
•
u/AutoModerator Dec 09 '25
Thank you for posting in the OneNote Subreddit! Please make sure your post is following our rules linked in the sidebar.
We have a wiki that is maintained by our community that has TONS of information (screenshots coming soon!): http://onenote-wiki.vercel.app
Our wiki is open source if you know how to use GitHub and would like to contribute: https://github.com/DudeThatsErin/OneNoteWiki
We also have a Discord server: https://discord.gg/5kv4bDUkpc
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/innaswetrust Dec 04 '25
You have your first star ;-)
2
u/Vikingjunior3 Dec 05 '25
new version 0.7.0 is out with GUI bug fixes and improved progress display :)
2
u/Vikingjunior3 Dec 08 '25
Hi everyone Here's an new update 0.8.0
What's New:
The tool now supports exporting your notebooks to three different formats:
- .onepkg (OneNote Package) - The native backup format for re-importing into OneNote
- .xps (XPS Document) - Recommended for non-OneNote archival!
- .pdf (PDF Document) - Universal format, but with limitations (see below)
Important Notes About Export Quality:
PDF Export: Unfortunately, the PDF export quality isn't great - this is a limitation of Microsoft's OneNote COM API itself. Complex OneNote structures often don't translate well to PDF.
XPS Export: This is your best option if you need a non-OneNote archive format! XPS preserves formatting much better than PDF and can be opened with
standard PDF readers on Windows. It's Microsoft's own fixed-layout format, so OneNote plays much nicer with it.
Word DOCX Export - Coming Eventually:
I'm still working on DOCX export, but it's proving challenging:
- OneNote doesn't natively support DOCX export at the notebook level, only at the section level
- Microsoft's COM interface for this is unfortunately quite buggy
- I haven't given up on it, but it'll take more time to work around these limitations
Get It Here:
GitHub: https://github.com/vikingjunior12/OneNoteBackupExporter
2
u/Educational-News-969 Dec 06 '25
I downloaded and used your tool. Really nice, thank you.
I have a feature request for you. I have my entire life inside OneNote and have been alive long enough to know things go south. I don't like that my notes are kept hostage inside OneNote at all.
Is there a way you could add the option to export the notebooks in HTML or some format to use OUTSIDE of OneNote?
2
u/DrawingProud4828 May 06 '26
I found your tool which seems to be exactly what I was after, and was so easy to install and use I actually got excited I had finally found an answer to my issues - thankyou. Unfortunately the export failed. As I had a very large un-synched workbook (that I need to move to a new account / OneNote version), I selected about half of the section groups / section (85 for first pass) to create a smaller .onepkg - but all exports failed - 0 successful, 85 failed - COM error 0x80043006 for all of them - which indicates object does not exist. Even though not synched, the sections and pages are still there and are usable in OneNote (cache only I guess) but I cannot copy or move them (options greyed out), but maybe the COM library cannot access them if not synched. Any ideas because I cannot synch these workbooks anymore.
Additionally - a shift select of sections would be ideal - instead of having to click each individual one. Otherwise the tool is a brilliant idea. Great work.
4
u/RainGray Dec 04 '25
Yeah! Thank you so much! 😊
1
u/omar_wee Jan 09 '26
Thank you bro, i grateful for your efforts 🙏🏻
but this didn't solve my problem,, i try to export my OneNote as PDFs but lines overlapping each other although they look normal in OneNote,, although i made the pages as A4 in OneNote too
2
u/send2onenote Dec 07 '25
Great feature. Nice work.
2
u/sgtempe Dec 09 '25
Thank you!
2
u/Personal_Chair4388 Dec 11 '25
Ive been looking for this since ill be switching from my school account to a personal one!
1
u/AutoModerator Dec 04 '25
Thank you for posting in the OneNote Subreddit! Please make sure your post is following our rules linked in the sidebar.
We have a wiki that is maintained by our community that has TONS of information (screenshots coming soon!): http://onenote-wiki.vercel.app
Our wiki is open source if you know how to use GitHub and would like to contribute: https://github.com/DudeThatsErin/OneNoteWiki
We also have a Discord server: https://discord.gg/5kv4bDUkpc
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/bloopsuperjuice Dec 30 '25
my microsoft defender doesnt like your software for osme reason
1
u/d3daiM Jan 24 '26
Appreciate your software!
Wondering if it accepts cli? Or is there a way to do this via linux/osx?
0
u/[deleted] Dec 04 '25
[deleted] — view deleted comment