one2html lets you convert OneNote® files (sections or whole notebooks) into HTML.
Choose one of the following installation options:
Download from GitHub Releases.
Install via cargo binstall:
cargo binstall one2html
cargo install --locked --no-default-features one2html
All options require the latest stable Rust compiler.
If you are using a nightly compiler, you can omit the
--no-default-features flag to print stack traces when errors occur during
OneNote file parsing.
OneNote files can be retrieved using one of two methods: Either by
using onedrive-cli or by downloading a notebook via the OneDrive web UI.
To do this first install onedrive-cli following its instructions. After
logging in using onedrive-cli login, you can download a section (a single
.one file), or a notebook (a folder that contains a .onetoc2 file along
with other .one files):
# Download a notebook
onedrive-cli ls Documents/
onedrive-cli cp -R :/Documents/Notebook .
# Download a section
onedrive-cli cp -R :/Documents/Notebook/Section.one .
Alternatively, to download OneNote notebooks via the OneDrive web UI, follow these steps:
OneNote sections are stored in .one files. To convert a section
to HTML run:
one2html -i Section.one -o ./output_dir/
OneNote notebooks are stored as folders that contain a .onetoc2
file along with the notebook's sections stored as .one files.
To convert a notebook to HTML run:
one2html -i 'Notebook/Open Notebook.onetoc2' -o ./output_dir/
This project is neither related to nor endorsed by Microsoft in any way. The author does not have any affiliation with Microsoft.
Rust
96.0%
HTML
4.0%
one2html lets you convert OneNote® files (sections or whole notebooks) into HTML.
Choose one of the following installation options:
Download from GitHub Releases.
Install via cargo binstall:
cargo binstall one2html
cargo install --locked --no-default-features one2html
All options require the latest stable Rust compiler.
If you are using a nightly compiler, you can omit the
--no-default-features flag to print stack traces when errors occur during
OneNote file parsing.
OneNote files can be retrieved using one of two methods: Either by
using onedrive-cli or by downloading a notebook via the OneDrive web UI.
To do this first install onedrive-cli following its instructions. After
logging in using onedrive-cli login, you can download a section (a single
.one file), or a notebook (a folder that contains a .onetoc2 file along
with other .one files):
# Download a notebook
onedrive-cli ls Documents/
onedrive-cli cp -R :/Documents/Notebook .
# Download a section
onedrive-cli cp -R :/Documents/Notebook/Section.one .
Alternatively, to download OneNote notebooks via the OneDrive web UI, follow these steps:
OneNote sections are stored in .one files. To convert a section
to HTML run:
one2html -i Section.one -o ./output_dir/
OneNote notebooks are stored as folders that contain a .onetoc2
file along with the notebook's sections stored as .one files.
To convert a notebook to HTML run:
one2html -i 'Notebook/Open Notebook.onetoc2' -o ./output_dir/
This project is neither related to nor endorsed by Microsoft in any way. The author does not have any affiliation with Microsoft.
Rust
96.0%
HTML
4.0%