NexusTools
Knowledge Base MigrationNexusNoteDownload NexusNote

How to Migrate a Notion Workspace to Local Markdown Without Losing Structure

A practical offline workflow for exporting Notion, stripping 32-hex UUID suffixes, repairing percent-encoded asset paths and importing a clean Markdown vault.

NexusTools Documentation Team
Updated 2026-11-24
10 min read
NexusNote WYSIWYG Markdown editor with a document sidebar and PDF workspace
Real NexusNote editor screenshot from the Microsoft Store listing.

Key Takeaways

  • A Notion Markdown export is a ZIP of UUID-suffixed filenames, percent-encoded links and relative asset folders, not a ready-to-use Markdown vault.
  • Build a complete old-to-new path map before renaming anything; strip the 32-hex suffix only after every link can be resolved.
  • Databases survive as CSV plus row pages, but relations, rollups, formulas and saved views are flattened and must be rebuilt or documented.
  • Import the cleaned folder into NexusNote, verify counts, images and search, and keep the original export until the vault has proven itself.

1. What a Notion Markdown export actually contains

Choose Export in Notion, select Markdown and CSV, and you receive a ZIP file rather than a ready-to-use vault. Every page becomes a Markdown file whose name carries the page title followed by a 32-character hexadecimal suffix. Subpages become folders. Databases become CSV files plus sibling folders that hold one page per row. Images are copied into folders whose names also carry identifiers.

That suffix is not decoration. Notion adds it to keep names unique when two pages share a title, when a page is renamed, or when a title contains characters that are awkward on disk. If you strip the identifier before you build a link map, you lose the stable key that connects a Markdown link to its target.

Links are percent-encoded. A page titled Product Roadmap can appear in a link as Product%20Roadmap%20 followed by the identifier and .md, while the file on disk uses literal spaces. The same happens to non-ASCII titles, parentheses and ampersands. Percent-decoding is therefore part of link resolution, not a cosmetic cleanup.

Assets are relative and easy to break. An image reference usually points into a sibling folder named after the page, for example a dot-slash path to a folder whose name ends with the identifier, then diagram.png. Move the Markdown file without that folder, rename the folder alone, or flatten the tree, and the image disappears in every editor that resolves relative paths.

Databases do not round-trip. Notion writes the structured rows to CSV and the page bodies to Markdown, but relations, rollups, formulas and saved views are flattened to text or omitted. Anyone promising a lossless migration is either rebuilding those features by hand or quietly dropping them.

The API has a separate limit. Notion retrieval endpoints return at most 1000 blocks per request, so API-based exporters must page through content with a cursor. A workspace export is a filesystem snapshot rather than an API crawl, which is why the official ZIP is usually the better source for a one-time migration.

3. Databases, CSV and the parts that cannot round-trip

A Notion database export gives you a CSV file and a folder containing one Markdown page per row. The CSV is the only structured copy of the properties. Keep it even after you generate Markdown tables, because a table loses column types, multi-select semantics and long text that contains line breaks.

CSV follows RFC 4180. Fields are separated by commas and quoted when they contain a comma, a quote or a newline; quotes inside a quoted field are doubled. A naive split on commas corrupts any database with a multi-line note or a select option that contains punctuation. Use a real parser, including when you inspect the file with a script.

Excel adds its own traps. UTF-8 without a BOM is often interpreted as the local ANSI code page, so Chinese or Japanese text becomes mojibake. Leading zeros in identifiers disappear, long numbers turn into scientific notation, and dates are rewritten in the local format. Import as text or write UTF-8 with BOM before Excel opens the file.

Relations, rollups and formulas are not preserved as behavior. A relation becomes a list of page titles or URLs, a rollup becomes a frozen value, and a formula becomes its last computed result. If those calculations matter, rebuild them in the destination or move them into a script that reads the CSV and computes the values again.

Views, filters and sorts are interface state, not content. They are not exported at all. Document the views that matter in a short index page, including the filter logic and the sort order, so the intent survives even though the saved view does not. This takes ten minutes and saves hours of guesswork later.

Nested and linked databases are the hardest cases. The same row can appear in more than one CSV, sometimes with different property values. Deduplicate by page URL or by a stable identifier, never by title. Titles are labels that people edit; they are not keys.

4. Importing the cleaned vault into NexusNote and verifying it

Unzip the cleaned archive into a normal local folder. Avoid OneDrive, Dropbox or a mapped network drive for the first import; sync clients can lock files while the indexer reads them, and a locked file looks like a corrupt note. Local SSD storage is the least surprising choice.

In NexusNote, use the local Markdown folder import and select the top-level folder. The importer walks subfolders, preserves the hierarchy, indexes titles and body text, and resolves relative image paths from the folder tree. You do not need to convert the folder into a proprietary database first.

Verify before you delete anything from Notion. Compare the number of Markdown files with the export, open a sample from three different depths, check images in nested folders, and search for a phrase that appears only inside a database row. A migration is not complete when the import finishes; it is complete when retrieval works.

Search the vault for migration debris: leftover 32-hex identifiers, percent-encoded spaces, file URLs, empty asset folders and frontmatter that still points at a Notion page. One search across the folder is faster and more reliable than clicking through a hundred pages.

Put the vault under version control if you want a safety net. Git shows exactly what the cleaner changed and lets you revert one page without restoring the whole archive. Add a .gitattributes rule for Markdown line endings so Windows and a Linux CI runner do not rewrite every file on checkout.

Keep the Notion workspace read-only for at least a month. A ZIP export is a snapshot, and there is no reliable incremental sync from an export file. If people keep editing Notion after the cutover, you will need a second export and a deliberate merge, not an automatic sync.

Run the cleaner twice on a pilot teamspace before touching the main workspace. A second pass should produce an identical archive; if filenames keep changing, the pattern is too broad or the link rewrite is not idempotent.

Engineering Verification & Production Checklist

Before applying these steps in enterprise production workflows, ensure you verify idempotency and maintain isolated data snapshots. For bulk data operations or large file streaming, run tests within sandboxed local sessions before scaling across enterprise infrastructure to ensure complete data consistency.

FAQ

Frequently Asked Questions

Does the Notion export cleaner upload my workspace to a server?

No. The cleaner unzips and repackages the archive inside the browser using local file APIs, and no page content leaves the machine. You can confirm this yourself: open the browser developer tools, switch the network panel to offline mode, and run a small export through the cleaner. The rename and link repair still complete.

Why are some links still broken after the UUIDs are removed?

The usual causes are duplicate titles, case differences, links to pages outside the export, and links to blocks that Notion does not export as separate files. Percent-encoded spaces and parentheses also break naive replacements. Check the migration log for skipped paths, then search the vault for the target title before assuming the cleaner lost data.

Can I keep database relations when I migrate to Markdown?

Not as live behavior. Notion exports relations as page titles or URLs and rollups as frozen values. You can preserve the information by keeping the CSV and adding relation IDs to each row page frontmatter, but the automatic updates and views must be rebuilt in the destination or replaced by a script.

How does the 1000-block API limit affect migration tools?

Any exporter built on the Notion API must request page content in pages of at most 1000 blocks and follow the cursor. A tool that ignores the cursor will silently truncate long pages. The official workspace export is not subject to that limit because it is generated as a file snapshot, which is why it is the safer source for a full migration.

Windows 11/10 Native App

Put this into practice with NexusNote

WYSIWYG Markdown, 180MB PDF full-text search in one offline knowledge base, 100 free daily DeepSeek credits, local Ollama, and inline diff polishing.