Notion to Markdown Converter

This Notion to Markdown converter cleans up Markdown from Notion. Paste blocks you copied, or open a .md file from Notion’s export, and it removes the 32-character IDs Notion adds to file names and links, and turns callouts, which Notion exports as HTML, into Markdown quotes.

  • Copied blocks or exported .md
  • Stays on your device
Notion page

How to convert Notion to Markdown

From a few blocks or from an exported page.

  1. Copy blocks or export the page

    Select blocks in Notion and press Ctrl+C (⌘+C on a Mac). Or open the page’s ••• menu, choose Export, pick Markdown & CSV and unzip the download.

  2. Paste or open it here

    Paste into the box, or click Open a file and choose the .md file.

  3. Copy or download the Markdown

    Click Copy Markdown or Download .md.

Example

This exported page links to 2 other pages whose file names end in Notion’s 32-character IDs. The converter removes both IDs, so the links read Launch brief.md and Press list.csv, and turns the 💡 callout into a quote. The 3 to-dos stay as a checklist.

Clean a sample Notion export

What Notion leaves in Markdown, and what the converter does

Notion’s Markdown is close to standard, with a few exceptions.

In Notion’s MarkdownAfter converting
Links and file names with an ID, like Launch%20brief%2012ab…90.mdThe ID is removed: Launch%20brief.md
Callouts as <aside> HTMLA Markdown quote, > 💡 …, with the emoji kept
To-dos- [ ] and - [x], unchanged
Headings, lists, tables, codeUnchanged

Exporting from Notion

Notion exports any page as Markdown from the page’s ••• menu › Export › Markdown & CSV. Turn on Include subpages to get pages inside it as separate files. You get a .zip: pages are .md files, and full-page databases are CSV files with a .md file for each row.

Notion writes callout blocks as HTML, because Markdown has no callout. To turn a database CSV into a Markdown table, use the CSV to Markdown table converter.

Notion to Markdown Converter FAQ

Can Notion export Markdown?

Yes. Open the page’s ••• menu, choose Export and pick Markdown & CSV. Databases come out as CSV files.

What are the long codes in Notion file names?

Notion adds the page’s 32-character ID to every exported file name and to the links between pages. The converter removes them so the names are readable.

Why are my callouts HTML?

Markdown has no callout block, so Notion exports callouts as aside HTML. The converter turns them into quotes, which every Markdown app shows.

Does copying from Notion give Markdown?

Copying blocks in Notion puts Markdown-style text on the clipboard as well as the formatted text, and the converter uses whichever has more structure. Paste it into the box.

Will links between pages still work?

The links point to the file names without the IDs. Rename the exported files the same way and the links find them.

Is my text uploaded?

No. The conversion runs in your browser, on this page, so nothing you paste is sent to a server or saved. Closing the page clears it.

Sources and references

  1. Export your content, Notion Help Center