MacOS app written in Swift that bulk exports Apple Notes (including iCloud Notes) to a multitude of formats preserving note folder structure.
Built by Konstantin Zaremski
Many choose to do all of their note taking and planning through Apple Notes because of the simplicity and convenience that it offers. Unfortunately, there is no good workflow or mechanism built into Apple Notes that allows you to export all your notes or a group of your notes at once. This app provides a fast, efficient way to export your entire notes library while maintaining the folder hierarchy and preserving formatting.
- Folder selection in the CLI.
--foldernow takes an exact name or a folder id, can be repeated or comma-separated, and includes subfolders by default.--folder-containsrestores the old substring behaviour and--no-subfolderslimits a selection to direct children. - Recently Deleted export via
--include-deleted, or--folder "Recently Deleted". - Sync history. Each incremental run appends a file-level diff (added, updated, deleted) to the manifest, and
notes-export sync-statusprints the recent history. - Deleted notes are pruned from the output directory on incremental runs instead of being left behind.
- Shared attachment dumps with
--shared-attachments, writing every file underAttachments/instead of a folder beside each note. - Optional HTML folder indexes (
--html-indexes) so an HTML export is browsable in a web browser. - Internal note links resolve.
applenotes:note/UUIDlinks were looked up by the wrong key and never rewrote in HTML or Markdown exports. - Unfiled notes land in the account's default folder instead of a synthetic "Unknown Folder", and the folder is matched by Apple's own marker so localized libraries work.
- Full Disk Access registration uses an absolute path, and the app now explains how to add itself to the list if it does not appear.
- Database access is serialized, fixing intermittent "no accounts found" failures in the GUI.
- EPUBs open in Apple Books (correct EPUB 3 OCF layout), plus DOCX/ODT fixes.
- ZIP, TAR or Single File output. Step 3 now picks how the export is delivered: a folder tree, one
.zip, one.tar, or a single joined file. Each lets you name the file, and the CLI takes--zip,--tarand--concatenatewith an--outputthat may name the archive or file directly. Note creation and modification dates are preserved inside archives. - Single File works for 14 formats, not 2. The GUI previously offered it for Markdown and plain text only, though it could always produce the rest. It is now available for every format except the packaged ones (PDF, DOCX, ODT, EPUB), and the CLI refuses those instead of writing a DOCX into a text file.
- ENEX imports into Evernote. Images were left inline as base64, putting one note's content 22x over Evernote's 5 MB limit. They are now
<resource>elements referenced by<en-media>, and the output validates against Evernote's ownenml2.dtdandevernote-export3.dtd. Notes that still exceed the per-note size limit are called out in the export log. - Shortcuts exposes the whole exporter. The Export action carried its own cut-down copy of the export logic and offered 7 parameters; it now runs the same engine as the CLI with 23, plus new List Notes and Sync Status actions.
- MCP setup in the app. Help > Connect to an AI Assistant shows the server path and a copyable Claude Desktop config. The server gains
get_notefor reading one note's real content in any text format, andexport_notesnow matches the CLI option for option. - A working Help menu. It previously raised "Help isn't available for Apple Notes Exporter"; it now links to the documentation, Full Disk Access setup, and the issue tracker.
- Mistyped folder filters fail loudly.
--folderwith a name that matches nothing used to fall through to "no filter" and export the entire library; it now errors and lists the folders that do exist. - Incremental sync no longer deletes filtered-out notes. Pruning is judged against the whole library rather than the current run's selection, so exporting one folder into an existing sync directory does not remove the others.
- HTML - Native format returned by the Apple Notes database. Images included inline via base64 embed syntax. Optional
index.htmlin each folder (off by default) so the tree is browsable in a web browser. Configurable: font family, font size, margins, folder indexes. - PDF - Generated from HTML, preserves all formatting and images. Configurable: font family, font size, margins, page size (Letter, A4, A5, Legal, Tabloid).
- TEX - LaTeX format for typesetting. Notes can be compiled individually or combined. Configurable: custom template with placeholders for title, dates, author, and content.
- MD - Markdown format. Useful for moving to other Markdown-based apps like Obsidian. Images included inline via base64 embed syntax.
- RTF - Rich text format. Opens in WordPad (Windows) or TextEdit (macOS). Configurable: font family and font size.
- TXT - Plain text, no formatting or images.
- DOCX - Microsoft Word format for Office and Google Docs.
- ODT - OpenDocument text for LibreOffice and other open-source editors.
- EPUB - E-book format for Kindle, Apple Books, and other e-readers. Archives follow the EPUB 3 OCF layout (uncompressed
mimetypefirst) so Apple Books can open them.
- JSON - Structured note data for APIs and data processing.
- JSONL - One JSON object per line; ideal for LLM and RAG pipelines.
- XML - Structured note data in XML for interoperability.
- CSV - Flat table format for spreadsheets and databases.
- OPML - Outline format for RSS readers and outliners.
- ORG - Emacs Org-mode format for notes and task management.
- RST - reStructuredText for Sphinx and Python documentation.
- ADOC - AsciiDoc format for technical documentation.
- ENEX - Evernote export format for import into Evernote, Joplin, and similar apps. Attachments travel inside the file as
<resource>elements referenced by<en-media>- images, and also PDFs, audio and any other file the note links to - so nothing depends on a sibling file surviving the import, and note content stays within Evernote's 5 MBEDAM_NOTE_CONTENT_LEN_MAX. Output validates againstenml2.dtdandevernote-export3.dtd.
Attachments are always saved in a folder corresponding to the name/title of the note that they are associated with.
The export format decides what each note looks like. The output destination decides how those notes reach you. The export itself is identical in all four cases; only the delivery differs.
The default. Notes are written as a tree that mirrors Apple Notes:
<output>/
iCloud/
Notes/
My Note.md
My Note (Attachments)/
Work/
Meeting.md
Attachments land in a folder beside each note, or all together under
Attachments/ with Shared Attachments folder. This is the only destination
that supports incremental sync, because the sync manifest has to persist in the
folder between runs.
One .zip containing the same tree. The export is staged in a folder beside
the archive and that folder is removed once the archive exists, so the location
you pick never holds loose note files, even if the export fails partway.
The archive's own name becomes the root folder inside it, so Trip Notes.zip
expands to a Trip Notes/ folder. Note creation and modification dates are
preserved inside the archive.
Identical to ZIP, written as an uncompressed .tar. Useful if you are piping
the result into other Unix tooling, or archiving somewhere that compresses on
your behalf. Expect it to be noticeably larger than the ZIP for a
photo-heavy library.
Every note joined into one file, with format-appropriate separators between
them: page breaks in HTML and TeX, --- rules in Markdown, a row of equals
signs in plain text, one object per line in JSON Lines.
Formats that are a single structured document get the wrapper that document
needs, applied once rather than per note: JSON becomes one array, CSV gets a
single header row, and ENEX becomes one <en-export> containing every <note>
with its attachments embedded, so the result is one importable file.
Available for the 14 text formats. The four packaged formats (PDF, DOCX, ODT, EPUB) are containers with their own internal structure, so there is nothing to join; the option is disabled for them in the app and refused by the CLI.
| Option | Folder | ZIP | TAR | Single File |
|---|---|---|---|---|
| Include attachments | yes | yes | yes | yes |
| Shared Attachments folder | yes | yes | yes | yes |
| Add date to filename | yes | yes | yes | no, you name the one file |
| HTML folder indexes | yes | yes | yes | no |
| Incremental sync | yes | no | no | no |
Incremental sync needs a manifest that persists between runs, which cannot travel inside an archive or a single joined file. Selecting one of those in the app hides the option; the CLI and the MCP server refuse the combination with a clear error rather than silently ignoring it.
--output means something slightly different per destination, and the app's
Choose button follows the same rule:
| Destination | --output accepts |
Result |
|---|---|---|
| Folder | a directory | the tree is written into it |
| ZIP / TAR | the archive, …/Backup.zip |
exactly that file |
| ZIP / TAR | a directory | Apple Notes Export.zip inside it |
| Single File | the file, …/Notes.md |
exactly that file |
| Single File | a directory | Exported Notes.md inside it |
A name ending in an extension the app produces, but not the one being written,
is refused rather than quietly treated as a directory, so
--output Notes.md --format txt is an error instead of a folder called
Notes.md.
| App | CLI | MCP | Shortcuts |
|---|---|---|---|
| Folder | (default) | (default) | (default) |
| ZIP Archive | --zip |
zip |
Zip Archive |
| TAR Archive | --tar |
tar |
Tar Archive |
| Single File | --concatenate |
concatenate |
Single File |
notes-export export --output ~/backups --format html --zip
# One ~/backups/Apple Notes Export.zip, file dates preserved
notes-export export --output ~/backups/notes.tar --format markdown --tar
# Or a .tar, named yourself
notes-export export --output ~/Desktop --format markdown --concatenate
# ~/Desktop/Exported Notes.md
notes-export export --output ~/Desktop/My\ Notes.md --format markdown --concatenate
# Or name the file yourselfIn addition to the GUI app, Apple Notes Exporter ships three ways to drive the exporter from other tools:
notes-export list-accounts
notes-export list-folders --account iCloud
notes-export list-notes --folder Work
notes-export export --output ~/Desktop/notes --format markdown --account iCloudBuilt with Swift ArgumentParser. JSON output on stdout for piping into other tools, progress and errors on stderr. --zip and --tar deliver the export as one archive and --concatenate as one file; in all three cases --output may name the file itself or a directory to receive the default name. Note dates are preserved inside archives. --folder takes an exact name or id (repeat or comma-separate for several) and includes subfolders; --folder-contains restores substring match; --no-subfolders turns descendants off. Combine --folder and --notes as a union. --include-deleted (or --folder "Recently Deleted") exports trash. --shared-attachments dumps every file under Attachments/ instead of a folder beside each note.
Five actions are available in the Shortcuts app under "Apple Notes Exporter":
- Export Notes - Every export option the CLI has, 23 of them: format, folder and account filters, title and date filters, specific note ids, ZIP/TAR/single-file output, incremental sync, attachments, HTML indexes, filename date prefix, and font family and size.
- List Notes - Notes matching the same filters, for feeding into the rest of a shortcut.
- List Accounts - Returns a list of available note accounts.
- List Folders - Returns a list of folders, optionally filtered by account.
- Sync Status - Reports the incremental sync state of a folder without opening the Notes database.
Run them from Siri, automations, or any Shortcuts flow.
Unsigned Debug builds (Xcode Run) often fail to register with Shortcuts (linkd error 4097). Use a signed build, typically the copy in /Applications, and grant Full Disk Access to that same binary.
To run notes-export from a Shortcuts Run Shell Script action without opening Terminal, grant Full Disk Access to Shortcuts.app as well. The CLI lives at Apple Notes Exporter.app/Contents/SharedSupport/notes-export.
An MCP server so AI assistants like Claude Desktop can read and export your notes directly. Six tools:
| Tool | Purpose |
|---|---|
list_accounts |
Available note accounts. |
list_folders |
Folders, optionally filtered by account. |
list_notes |
Notes with folder, account, title and date filtering. include_content embeds plaintext. |
get_note |
One note's full content by id, rendered as Markdown, HTML, or any other text format, plus its attachment list. |
export_notes |
Run a partial or full export with every option the CLI supports, including zip, tar, concatenate and incremental. |
sync_status |
Incremental sync state of an output directory, without opening the Notes database. |
export_notes only writes under $HOME or /tmp, so adversarial note content cannot steer an assistant into writing to sensitive locations.
The app can set this up for you: Help > Connect to an AI Assistant... shows the server path and a Claude Desktop config block to copy. Note content is user-authored and should be treated as untrusted input.
All three require Full Disk Access (same as the GUI app) to read the local Notes database.
Re-exporting an entire Notes library on every backup is wasteful when only a handful of notes have changed. Incremental sync tracks which notes have already been exported and, on subsequent runs, writes only notes that are new or have been modified since the last export.
On first run with --incremental, the CLI writes a AppleNotesExportSyncWatermark.json manifest to the output directory recording each note's ID, modification date, and exported path. On subsequent runs against the same directory, notes whose modification date has not changed are skipped, and existing files are left in place. Notes that have disappeared from Apple Notes are pruned from disk. Each run appends a file/folder-level diff (added, updated, deleted paths and a timestamp) to the manifest; notes-export sync-status prints the recent history.
# First run: full export
notes-export export --output ~/backups/notes --format markdown --incremental
# Second run: only new/changed notes get re-written
notes-export export --output ~/backups/notes --format markdown --incremental
# Force a full re-export, wiping the manifest
notes-export export --output ~/backups/notes --format markdown --incremental --reset-sync
# Inspect manifest state without touching the database
notes-export sync-status --output ~/backups/notesThe GUI also exposes incremental sync as a toggle in the export options, and hides it when the destination cannot support it. Incremental sync needs per-note files in a folder, so it is not available with the ZIP, TAR or Single File destinations (see Output Destinations).
- MacOS Big Sur 11.0 or higher
- Some of the features used are not available in earlier MacOS versions.
- Backported from Ventura to Big Sur; earlier versions would require UI rewrites.
- Intel or Apple Silicon Mac
- 4GB RAM minimum
- Optimized database-driven approach uses approximately 200MB of RAM regardless of Notes library size
- Concurrent export processing for maximum performance
- Disk Space
- 20MB to accommodate the app itself
- Additional space for your exported notes and their attachments
As of version 1.0, Apple Notes Exporter no longer supports exporting from accounts other than iCloud accounts and the On My Mac account. This includes notes stored in Gmail, Yahoo, Outlook, and other email-based accounts.
If you have notes in Gmail, Yahoo, Outlook, or other email accounts that you want to export:
- Open the Apple Notes app
- Select the notes you want to export from your email account
- Drag and drop them into a folder under "On My Mac" or one of your iCloud accounts
- Once moved, these notes will be accessible to Apple Notes Exporter and can be included in your export
This limitation is due to the database-driven approach used in version 1.0, which queries the local Notes database directly. Email-based note accounts store their data differently and are not included in the same database structure that iCloud and On My Mac accounts use.
The screenshots below are from v2.0; Step 3 gained the Folder / ZIP Archive / TAR Archive / Single File selector in v2.1.
The latest download is available from the Github "Releases" tab.
Make sure that you have "App Store and Identified Developers" set as your app install sources in the "Privacy & Security" section of System Settings in MacOS.
Full Disk Access: the app tries to register itself by reading the Notes database at an absolute path, then opens System Settings. macOS still requires you to enable the checkbox; there is no API that grants Full Disk Access. If the app does not appear in the list, click +, or drag Apple Notes Exporter.app from Finder / Applications into Full Disk Access. Use a signed copy (Developer ID for release, or a Development-signed Debug build). Unsigned binaries often never appear, and the Debug build from Xcode is a different binary than the one in /Applications.
As of Version 0.4 Build 5, we are distributing a notarized executable. For older versions, go to the "Privacy & Security" pane of System Settings and click "Open Anyway" under the "Security" section towards the bottom of the pane. See Apple's article https://support.apple.com/en-us/HT202491 if you need more help or a better explanation on how to make an exception for the app to run.
This project benefited from the groundwork and research done by threeplanetssoftware on Apple Notes protobuf formats and database parsing in their apple_cloud_notes_parser project. Their work was instrumental in understanding the Apple Notes database structure, enabling the transition from AppleScript-based export to the more efficient database-driven approach used in version 1.0.
Apple Notes Exporter builds on a number of open source Swift packages, including SwiftProtobuf, swift-html-to-pdf, FullDiskAccess, swift-argument-parser, and the Model Context Protocol Swift SDK. Their licences are bundled with the app and shown under Acknowledgements in the licence screen.
Thanks to everyone who has contributed to this project:
- Vaughan Risher (@vrisher) - Preserved image attachments in Markdown exports
- David Ginsburg (@davideg) - Fixed Markdown export to decode HTML entities
- Sascha Schneppmüller (@Schneppi) - Redesigned app icon for v2.0
- Christian Hovenbitzer (@AnotherCoolDude) - CLI and MCP server targets for v2.0
- Sergey Nikolsky (@nikolsky2) - Fixed a crash when AppleScript returned empty notes
See CONTRIBUTORS.txt for the full list.
![]() @kzaremski |
![]() @vrisher |
![]() @davideg |
![]() @Schneppi |
![]() @AnotherCoolDude |
![]() @nikolsky2 |
Apple Notes Exporter is free software under the GNU General Public License v3.0 or later.
Copyright © 2026 Konstantin Zaremski
You are free to use it, study how it works, modify it, and share it. If you distribute the app or anything built from its source, modified or not, that copy has to come with the same freedoms: released under the GPL, with the corresponding source available to whoever receives it. It is provided without warranty of any kind.
The full terms are in LICENSE. The app bundles the licences of its open source dependencies, listed under Acknowledgements in the licence screen.












