Convert your Kindle notebook .html exports into clean, readable Markdown notes — perfect for journaling, second-brain workflows, or personal archives.
- Highlights are exported as bullet points, hierarchically organized by section or chapter
- Important notes (e.g., those starting with "Wow") are formatted as
**bold**, while very important notes (e.g., "Wow iii") are also==highlighted== - Outputs clean
.mdfiles compatible with Obsidian, Logseq, and any Markdown editor
- Export your notebook from the Kindle mobile app (as
.html) - Place the file in the
notebooks/folder - Run the script:
python process_kindle.py notebooks/<your_notebook.html><div class="sectionHeading">Foreword</div>
<div class="noteText">When I sat down to write *The Alchemist*, all I knew is that I wanted to write about my soul. I wanted to write about my quest to find my treasure.</div>
<div class="sectionHeading">Prologue</div>
<div class="noteText">He could see, in the depths of his eyes, his own beauty reflected.” “What a lovely story,” the alchemist thought.</div>- Foreword
- When I sat down to write *The Alchemist*, all I knew is that I wanted to write about my soul. I wanted to write about my quest to find my treasure.
- Prologue
- He could see, in the depths of his eyes, his own beauty reflected.” “What a lovely story,” the alchemist thought.
- Part One
- Thinking about that for a moment, he realized that it could be the other way around: that it was he who had become accustomed to their schedule.You can make this script globally accessible from the terminal by installing it as a command-line tool:
-
Ensure the script starts with a shebang line at the top of
process_kindle.py:#!/usr/bin/env python3 -
Make the script executable:
chmod +x process_kindle.py
-
Move it to a directory in your system PATH (you’ll need admin permissions):
sudo mv process_kindle.py /usr/local/bin/kindle-notes
-
Run it from anywhere:
kindle-notes path/to/your_notebook.html
The Markdown file will be saved in your current working directory as
<notebook>_notes.md. -
To uninstall later:
sudo rm /usr/local/bin/kindle-notes