Bulk export your Apple Notes from macOS into plain text files for easy backup, migration, or analysis.
- Extracts all Apple Notes in bulk from the macOS Notes database
- Converts notes to clean plain
.txtfiles (removes gibberish/binary lines) - Preserves note titles as filenames
- Handles Apple Notes' compressed storage format
- macOS
- Python 3.7+
- html2text
- Clone this repo:
git clone https://github.com/chrisperkles/NotesExtractorMac.git cd NotesExtractorMac - (Recommended) Create a virtual environment:
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install html2text
-
Grant Full Disk Access to Terminal:
- Go to
System Settings > Privacy & Security > Full Disk Access. - Add
Terminal(or your IDE) to the list and enable it. - Restart Terminal.
- Go to
-
Run the script:
python export_apple_notes.py
-
Your notes will be exported as
.txtfiles in theexported_notes_txtdirectory.
- If you see
authorization denied, double-check Full Disk Access is enabled for your terminal. - If output is still unreadable, your notes may be encrypted or in a newer Apple format not yet supported.
This script is for personal use. Use at your own risk. Apple may change the Notes database format in future macOS versions.