Guides

Notion to Markdown: How to Export Pages for GitHub, Obsidian, and Your Website

Learn how to export Notion to Markdown in a few clicks, what the ZIP contains, and how to fix broken images and links in GitHub, Obsidian, or your website.

By Sanat Biswal · 2026-10-09 · 5 min read

Notion to Markdown: How to Export Pages for GitHub, Obsidian, and Your Website

{/ synced-from-notion — do not edit manually /}

You wrote something really good in Notion, and now it needs to be used somewhere else: a GitHub repository, or an Obsidian vault, or even a blog post. What comes first to mind is to copy and paste the content, but this works when the content is short and is not extensively written to full length. But the main issues happens when the headings are needed to be shown properly which don’t appear exactly as intended, and the images shown don’t appear and look flat and vanish from the output when its not needed.

Exporting Notion to Markdown is the cleanest way out. Markdown is simply just the plain text which has a few symbols in use:

  • # used for a heading,
  • * for a bullet.
  • So nearly every tool on the planet is able to read this out. No lock-in required, no weird formatting issues present at all.

    Here’s a quick shortest version as to how to export Notion to markdown formatting works:

  • Open the page.
  • Click on •••, and choose Export.
  • Pick Markdown & CSV, and then download.
  • You'll get a ZIP file with a .md format and a folder that contains the images.

    The rest of this guide here covers what's exactly inside the ZIP file created, where do people find this difficult when the output is generated and how to fix the mess created all out of this process.

    Here’s how to start while looking to export from Notion to Markdown formatting…

    ![](/blog/notion-to-markdown/image-1.webp)

    Step 1: Export Your Notion Page to Markdown

  • Open the page that you want to export.
  • Click the ••• menu from the top right and then choose Export.
  • Setup Export format to Markdown & CSV.
  • Pick your content options in the export settings.
  • Turn on Include subpages (only if you really want the child pages too), and decide whether images and files need to come along as well.
  • Click Export and then save the file.
  • ![](/blog/notion-to-markdown/image-2.png)

    One habit that often can save a lot of time doing cleanup work later on:

  • Duplicate the page first to your workspace. On the page that is copied, open your toggle content added earlier and delete anything the reader doesn't need.
  • Fix this issue for once in Notion at a time, not like doing it 10 times in a text editor.
  • Step 2: See What Is Inside the Export

    Don't rush to import anything onto Notion. First look to unzip the file and look around. A typical export would look something like this:

    `` Notion-Export.zip └── My Page abc123.md └── My Page abc123/ ├── image1.png └── image2.png `

    3 things people often miss to catch:

  • The file name has a random-looking ID at the end : Notion adds this on its own. Always make it a practice to rename the file before you publish anything.
  • Images tend to live in a separate folder : The .md file points to them by path, so if you move the file without the folder, every image present inside the folder tends to break.
  • Subpages become their own files : Include 10 subpages and you will get 10 .md files.
  • Exact names and folder layout depend on your version of Notion being used, so run a quick test with a short page before you export something big out of the file.

    Step 3: Use Your Markdown in GitHub, Obsidian, or Your Website

    Where the file goes in the end will decide what needs to be fixed in the process. Here's how the common destinations for the export will work like:

    a. Notion to Markdown for GitHub Repository

    Rename the file to README.md (or whatever your project uses) and drop it onto the repo with its image folder.

    Check that the image paths match the folder name, then preview it on GitHub Repository. Tables and task lists sometimes look a little different from what you had in Notion, so give them a second look.

    b. Notion to Markdown for Obsidian

    This is the easiest one to export and use.

    Copy the .md files and image folders into your vault, strip the long IDs from the file names, and open them. Links that pointed to other Notion pages will still point to the old names, so update the ones you care about.

    c. Notion to Markdown for a Website or Blog

    Most static site generators and CMS tools accept Markdown.

    Paste the text into your editor, upload the images through your media library, and swap the old image paths for the new ones. Many platforms also want a title and slug at the top of the file, so add those.

    Then check how your platform renders tables and code blocks.

    d. Notion to Google Docs or Word

    Markdown doesn't open in a properly formatted document in either one. For Google Docs, paste the text in and apply headings with the toolbar.

    The full walkthrough is in Notion to Google Docs. For Word, see Notion to Word.

    Pro Tip: Export one short page first and move it all the way to its destination. Whatever breaks on that test page will break on the big ones too, and in this process it’s also much easier to find out.

    Step 4: Know What Markdown Drops

    Markdown is simple on purpose, so it can't carry everything Notion does. This is what would usually happen:

    Notion contentIn MarkdownWhat to do
    Headings, bold, italicsBecome #, *, and Check heading levels
    Bulleted and numbered listsCarry overCheck nested indents
    LinksCarry over as text and a URLFix links to other Notion pages
    ImagesSaved as files, referenced by pathKeep the image folder next to the file
    Code blocksCarry over, often with a language tagCheck the language label
    TablesUsually become Markdown tablesWatch wide tables and merged cells
    TogglesOften lose the toggle, content shows as plain textOpen them before exporting
    CalloutsLose color and iconRewrite as a quote or note
    ColumnsStack into one columnRebuild in the destination if needed
    DatabasesExport as CSV filesUse the CSV in a spreadsheet or import tool
    Embeds and bookmarksOften shrink to a plain linkCheck each one
    Results would vary by Notion version and settings, so compare a test export to your page before trusting any table, which includes this one.

    📌 Key Takeaway: Markdown keeps your words, headings, lists, links, and images. It drops layout extras like toggles, callouts, and columns. Simplify the page in Notion first and keep the image folder with the file.

    Step 5: Fix Common Notion to Markdown Problems

  • Images are gone. The file is looking for an image path that no longer exists. Put the image folder back next to the .md file, or edit the paths.
  • The file names are ugly. Rename them. If you rename an image folder, update the image paths inside the file too.
  • Links to other pages are broken. They still point to old Notion pages or old file names. Update them to the new addresses being provided.
  • A table looks wrong. Markdown tables are basic. Merged cells and a dozen columns tend not to survive. Simplify the table in Notion or rebuild it where the file ends up.
  • Odd characters are showing up. Open the file in UTF-8 encoding in your editor.
  • My database came out as a CSV. That's expected. Databases export as CSV files, and if you want the data in a spreadsheet, Notion to Excel covers it.
  • Step 6: Decide If Markdown Is the Right Format

    Markdown is great for moving words around. It's a poor choice for anything that has to look designed.

    Go with Markdown if:

    • You want a copy of your notes that no single app owns.
    • The content is headed to GitHub, a notes app, or a Markdown-based site.
    • You're making a plain-text backup.
    • Pick something else if:

    • The reader expects a polished invoice, quote, or report. Markdown has no logo, no page layout, and no fixed styling.
    • The reader only needs to look at it. A PDF looks the same on every device, and if your Notion PDF comes out broken, Notion PDF export not working walks through the fixes.

    Step 7: Turn Notion Data into Real Documents

    Nobody wants a .md file from their accountant. When the end result is a finished document built from Notion records, skip the export and use a template.

    PDFOutput generates documents from Notion data using a template. It accepts a Google document, Word file, PDF file, or Notion page as the template, and it can generate PDFs, Google Docs, and PPTX files. You add placeholders in double curly braces, such as {{Client_Name}}, and each placeholder has to match the related Notion property name. Your logo, fonts, and layout sit in the template, so every file comes out looking the same.

    To kick off a document, use a Notion database button or a status property.

    Set a record's status to Ready to Generate to create a PDF from it, or choose Preview to get a Google document you can check first.

    Finished files are saved back to the notion database with the GeneratePDF status set to Completed and the pdfs are saved onto the PDFFiles column and it also has an option to save the PDFs to a Google Drive folder, so each one stays attached to the record it came from.

    ![](/blog/notion-to-markdown/image-3.png)

    A simple way to think about it:

    Markdown is for text that moves between tools, and PDFOutput is for documents that other people receive.

    Frequently Asked Questions

    Can you export Notion to Markdown?

    Yes. Click •••, choose Export, and set the format to Markdown & CSV. Pages come out as .md files, and databases come out as CSV files.

    Why does my exported Markdown file have a long string of letters and numbers in its name?

    Notion adds a unique ID to file and folder names in exports. You can rename them. If you rename an image folder, update the image paths in the Markdown file so the pictures still show up.

    Why are my images missing from the Markdown file?

    The file points to images by path. Keep the image folder next to the .md` file and make sure the folder name matches the path in the text.

    Does Markdown keep toggles, callouts, and columns?

    Usually not. Markdown has no version of them, so they often turn into plain text or a single column. Open your toggles and rewrite your callouts before you export.

    Can I export my whole Notion workspace to Markdown?

    Notion has a workspace export, but what you can do depends on your plan and your role in the workspace. Check the export settings in your own account to see what's available.

    Should I send a Markdown file to a client?

    Almost never. Clients expect a finished document. Send a PDF, or generate one from a template so it carries your branding.

    Conclusion

    To export Notion to Markdown, choose Markdown & CSV, unzip the download, and keep the images next to the file. Then fix what Markdown can't hold, like toggles, callouts, and columns, and check your links and tables where the file lands. It's a great format for portable text and a bad one for client-facing documents. For those, PDFOutput can generate a PDF or Google document from your Notion data and save it back to your chosen storage workflow.