OneNote File Viewer and Exporter
Drop one or more .one section files or a .onepkg notebook package, read the recovered text blocks and embedded files section by section, leave out any stray blocks, and save the notes as HTML, Markdown with images, PDF or plain text.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open
Drop .one sections or a .onepkg package.
- 2Browse
Pick a section and read its text blocks.
- 3Tidy
Tap stray metadata blocks to leave them out.
- 4Title
Edit the notebook title and image option.
- 5Export
Save HTML, Markdown ZIP, PDF or text.
About this tool
The OneNote File Viewer and Exporter is for getting your words and pictures back out of OneNote files when you no longer have OneNote, when an old notebook was exported years ago, or when someone has sent you a section file you cannot open. You can drop several files at once. A .one file is a single section; a .onepkg file is a whole notebook package, which is really a Microsoft Cabinet archive holding one .one file per section. The tool unpacks the package itself, reading folders that are stored without compression or compressed with MSZIP. A package compressed with LZX is refused with a message that suggests opening it in OneNote and exporting the sections as .one files instead. A .onetoc2 file, the notebook table of contents, can be opened too, but it holds no notes, so the tool shows a warning pointing you to the section files. OneNote keeps pages in a binary revision store, and this viewer does not try to rebuild the page as OneNote drew it. Instead it does two recovery jobs. First, it scans the file for text, which OneNote stores as UTF-16 runs, and keeps runs of at least four characters that are mostly letters. Obvious metadata is filtered out: font names such as Calibri or Segoe UI, style names such as Heading 1 or PageTitle, language tags such as en-US, GUIDs, file paths and schema addresses. OneNote often keeps several revisions of the same paragraph, so exact repeats are dropped while the original order is kept. Second, it finds every embedded file stored in a FileDataStoreObject block, which is where OneNote keeps pasted pictures, printouts and attachments. Each one is identified from its first bytes as PNG, JPEG, GIF, BMP, PDF, ZIP, WMF or EMF, and anything else is saved as a .bin file.
What you see on screen
The left panel lists the sections with a count of text blocks and files for each. The right panel shows the chosen section: its size, any warnings, every recovered text block and a strip of embedded files with a preview for ordinary images and a download button for each file. If a block is clearly metadata the filter missed, tap it and it is struck through and left out of every export. A search box looks through all sections at once and lists up to 100 matching blocks; tapping a match opens its section.
Exports
- HTML: one page with the notebook title, a heading for each section, the text as paragraphs and, if you keep the images option on, the PNG, JPEG, GIF and BMP pictures embedded in the file itself. - Markdown + images (ZIP): a .md file plus a folder per section holding every embedded file, with image links already pointing at those folders. - PDF: an A4 document with the section headings, the text and the PNG or JPEG pictures scaled to fit the page. - Text: plain text with each section marked by its name. - Print: the same content as the HTML page, sent to the browser's print dialog.
The notebook title starts as the file name and can be edited before you export. The title, the list of hidden blocks and the images setting can be kept as a saved project in this browser, so you can come back to a long clean-up later. The files themselves are not stored; open them again when you return.
What the test notebook shows
The checks built into the code use a small section named Work.one. It holds the font name Calibri, the paragraph "Meeting notes for Friday", an embedded 16-byte PNG and the line "Buy milk and eggs". The viewer returns the two paragraphs in order, drops Calibri as metadata and recovers the PNG byte for byte. The same section packed into a Notebook.onepkg with one MSZIP block opens as a section named Work, and the Markdown export starts with a "## Work" heading followed by "Meeting notes for Friday".
Who this is for
People with old notebooks from a former job or school, anyone moving notes into another app, and support staff asked to pull an image or attachment out of a .one file without installing Office.
Limits
The page layout is not rebuilt: there are no note containers, positions, page titles in their own field, page order, handwriting or drawn ink, tags, tables as tables, or formatting such as bold and colours. Text arrives as a list of blocks, so a heading and its paragraph can appear as separate blocks, and a stray label or style name can slip through the filter. Text is searched at both byte alignments of the file, and runs that only make sense as plain ASCII read one byte off are rejected, but an odd fragment can still appear; hide it. Password-protected sections are encrypted, so nothing readable can be recovered from them. The PDF uses a standard Latin font, so characters outside Western European alphabets appear as question marks there; use the HTML or Markdown export for other scripts. WMF and EMF drawings are saved as files but not previewed or embedded. Everything is read in this browser and nothing is uploaded. This is not legal advice about who owns the notes in a shared or work notebook.
Worked example
Test section Work.one: two text blocks recovered in order ("Meeting notes for Friday", "Buy milk and eggs"), Calibri filtered out, one PNG recovered; the same section inside an MSZIP .onepkg opens as section Work.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Microsoft [MS-ONESTORE] OneNote revision store file format and [MS-CAB] Cabinet file format specifications
Frequently asked questions
Can it open a whole notebook at once?
Yes, if you have the notebook as a .onepkg package or drop all of its .one section files together. Each section appears in the list with its own text and files. A .onetoc2 file alone only holds the table of contents, not the notes.
Why does my page look different from OneNote?
The viewer recovers the text and embedded files but does not rebuild the page layout. You get the words as a list of blocks and the pictures as separate files, without positions, ink, tags or formatting.
What does the LZX message mean?
Some .onepkg packages are compressed with LZX, which this browser tool cannot unpack. Open the package in OneNote on a computer, export each section as a .one file, and open those files here instead.
How do I remove junk lines from the export?
Tap the block in the section view. It is struck through and left out of the HTML, Markdown, PDF, text and print exports. Tap it again to bring it back. Saved projects remember which blocks you hid.
Are attachments recovered as well as pictures?
Yes. Any file stored in a FileDataStoreObject block is listed under Embedded files with a download button. PDF printouts, ZIP-based Office files and unknown types are saved as they are; unknown types get a .bin extension.
Are my notes uploaded anywhere?
No. The files are unpacked and read inside this browser tab. Exports are created on your device and nothing is sent to a server.
