Apple Notes Export Folder Structure Not Preserved? Here Are 4 Fixes
Bulk-export from Apple Notes and every file lands in one flat folder, no matter how you organized them. Here is exactly why, and four ways to keep your folders intact, from free workarounds to a dedicated tool.
By Ram Velmurugan · Founder & Lead Developer, 1dot.ai
Editorial note: 1dot.ai makes Apple Notes Exporter Pro, one of the four options compared below. Every claim about Apple's native export is sourced to Apple's own support documentation and verified live at the time of writing. The free options are described honestly, including where they are genuinely a better fit than our own product.
macOS 26 Tahoe gave Apple Notes a real, built-in Markdown export for the first time, and it is a genuine improvement over the old one-note-at-a-time PDF export. We covered what it does well and where it falls short back in August, and one gap flagged there deserves its own guide: what actually happens to your folders when you export more than a note or two, and what to do about it.
If you organize your notes into folders like Work, Personal, or Recipes, you need to know this before you run a big export, not after you go looking for a note and find a pile of unsorted files instead.
- What Apple Actually Documents
- What a Flattened Export Actually Looks Like
- Why Import Gets This Feature and Export Doesn't
- Fix 1: Export One Folder at a Time (Free, Manual)
- Fix 2: A Free Open-Source Tool That Automates It
- Fix 3: DIY with an AppleScript Export Script
- Fix 4: A Dedicated Exporter (Apple Notes Exporter Pro)
- All Four Options Compared
- Which One Should You Actually Use?
- Sources
- FAQ
What Apple Actually Documents
Apple's own support guide for importing, exporting, and printing notes is specific about this, once you read the import and export sections side by side. For import, Apple tells you to select a folder and “click Preserve folder structure on import to keep the imported notes organized the way they were in the folder.” That is an explicit, named checkbox for a specific behavior.
File > Export as > Markdown. There is no mention of folder structure at all, and no equivalent checkbox. The feature exists in one direction and not the other.That asymmetry is confirmed directly from Apple's documentation, not a third-party guess. It also lines up with what people actually experience: multi-select a batch of notes from different folders, export them, and the result is every file sitting together in whichever destination folder you picked on your Mac, with nothing to indicate which Notes folder each one used to live in.
What a Flattened Export Actually Looks Like
Say your Notes app has three folders: Work, Recipes, and Personal, with a combined 40 notes across them. Select all 40 and export to Markdown, and you get one folder on your Mac containing 40 individual .md files (plus an Attachments subfolder per note that has images). Nothing in that output tells you which three came from Recipes and which nine came from Work, beyond whatever each note's own title happens to say. If two notes in different folders happen to share a title, one will also silently overwrite the other in that shared destination, a separate but related risk worth knowing about before a large export.
Why Import Gets This Feature and Export Doesn't
Apple has not explained this design choice anywhere we could find, so take this as reasoning rather than a confirmed answer. Import already has a natural destination: your existing Notes folders. Telling the app to match incoming files to folders that already exist is a well-defined problem. Export starts with no destination until you pick one on the spot, so recreating a matching folder tree there is a meaningfully bigger feature to build, and a plain flat dump of files at least gets your content out of Notes, which was likely the actual point of shipping the feature in the first place.
Fix 1: Export One Folder at a Time (Free, Manual)
The simplest fix costs nothing and needs no extra software: stop exporting your whole library in one action, and export one Notes folder at a time instead.
- Open a single folder in the Notes sidebar, not a merged view like All iCloud.
- Select every note inside it (Cmd-A, or Cmd-click each one).
- Choose
File > Export as > Markdown(or PDF), and save that batch into a new folder on your Mac named after the original, for exampleRecipes. - Repeat for every folder in your library.
Fix 2: A Free Open-Source Tool That Automates It
If manual, folder-by-folder exporting is too much repetition, kzaremski/apple-notes-exporter is a free, open-source Mac app (GPLv3 license, roughly 680 GitHub stars as of this writing) built specifically to bulk-export Apple Notes, including iCloud notes, while recreating your original folder structure automatically. It supports 18 output formats, well beyond Apple's own Markdown and PDF, and ships as a notarized, ready-to-run .app download rather than something you have to compile yourself in Xcode.
It is a genuinely solid option if you are comfortable installing an app from a GitHub releases page rather than the Mac App Store, and you only need to export once or occasionally rather than run scheduled, repeatable backups.
Fix 3: DIY with an AppleScript Export Script
If you are comfortable with scripts and the Terminal, a handful of community AppleScript-based exporters, such as notes2md and similar small projects on GitHub, read notes directly out of the Notes app's own AppleScript dictionary and write them out with a folder for each Notes folder. This route gives you the most control, since you can usually adjust the script yourself, but it comes with the most setup: cloning a repository, installing a runtime like Python or Ruby if the script needs one, and troubleshooting anything that breaks on your own without vendor support if Apple changes something in a future release.
Fix 4: A Dedicated Exporter (Apple Notes Exporter Pro)
Apple Notes Exporter Pro takes the same idea as the free options, reading notes directly rather than going through Apple's own export dialog, and packages it as a paid, one-time $14.99 app: select your whole library or specific folders, choose from ten output formats (PDF, Word, Markdown, HTML, Plain Text, RTF, EPUB, LaTeX, JSON, JSONL), and your original folder hierarchy is recreated in the output automatically. It also adds scheduled backups (daily, weekly, or monthly) that neither the manual method nor the free tools offer out of the box, which matters if you want this handled once and then forgotten rather than repeated by hand every time.
All Four Options Compared
| Option | Keeps folders | Cost | Effort |
|---|---|---|---|
| Native export, all notes at once | No, everything flat | Free | Lowest, one export |
| Native export, one folder at a time | Yes, top-level only | Free | Medium, one export per folder |
| kzaremski/apple-notes-exporter (OSS) | Yes, automatic | Free | Low, one-time install from GitHub |
| Apple Notes Exporter Pro | Yes, automatic | $14.99 one-time | Lowest, one export |
Which One Should You Actually Use?
If you only have two or three folders and export rarely, the manual folder-by-folder method costs you nothing but a few extra minutes and is genuinely the right call, there is no reason to install anything for that. If you have a deep or wide folder tree, want more export formats than Markdown and PDF, and are comfortable installing an app from GitHub, kzaremski/apple-notes-exporter is a strong free choice and, for a lot of people, the best option on this list. Apple Notes Exporter Pro earns its price specifically when you want this to be a no-setup, one-click action, need formats like Word or EPUB alongside Markdown, or want it to happen again automatically on a schedule without you remembering to run it.
Sources
Apple's own documentation: Apple Support, importing, exporting, and printing notes, which describes the “Preserve folder structure on import” option with no matching export equivalent.
Feature background: MacRumors, importing and exporting Markdown files in Apple Notes.
Free open-source alternative: kzaremski/apple-notes-exporter on GitHub.
Our own coverage of the feature itself: Apple Notes’ native Markdown export vs Exporter Pro, and the separate bulk-export data corruption bug worth checking before a large export.
Frequently Asked Questions
The Bottom Line
Apple Notes' native export gets your content out, but it does not carry your organization with it: a flat file dump is what it produces, confirmed by Apple's own documentation offering folder preservation only on the way in. Exporting one folder at a time costs nothing and works fine for a small library. For anything bigger, a free open-source tool or a dedicated exporter that recreates the structure automatically will save you far more time than the few dollars or minutes either one asks for.
Keep reading: see what else the native Markdown export gets right and wrong beyond folders, check the separate data corruption bug on large bulk exports before you run one, see why a checklist can break on re-import, walk through our batch export workflow for Apple Notes folders, or browse every Apple Notes export and backup guide.
Want Your Folders to Survive the Export?
Apple Notes Exporter Pro reads your notes directly and recreates your original folder structure automatically, with ten export formats and scheduled backups included.
Explore Apple Notes Exporter ProRead More Guides