Guide · checked against Atlassian's, pandoc's and each tool's own documentation, 15 October 2026

How to convert Confluence to Markdown

Confluence can't export to Markdown. Atlassian documents Word and PDF exports for single pages, and PDF, HTML, XML and (on Cloud) CSV for spaces. To get Markdown you either convert one of those exports, use an open source exporter that reads your pages through Confluence's API, or use a Marketplace app. If you're really moving to another wiki, importing the HTML export directly usually keeps more. Here's what each route gives you.

RouteGood forWatch out for
HTML export, then pandocA few pages, or a one-off conversion you can check by handOne file at a time; no page tree; some content won't convert cleanly
Open source API exporterWhole spaces into a Git repo or a Markdown notes appNeeds an API token; check what each tool says it supports
Marketplace appTeams that prefer an app installed in ConfluencePrice, and what data the app can access
Import the HTML export into another wikiMoving to a new wiki, not to filesWhat the new wiki's importer keeps

Does Confluence have a Markdown export?

No. Atlassian's Cloud documentation lists Word and PDF for a single page, and PDF, CSV, HTML and XML for a space. Its Data Center documentation lists PDF and Word for pages, and HTML, PDF and XML for spaces. Atlassian's Cloud export page doesn't list Markdown; its Markdown page covers editor shortcuts for formatting text as you type. How to run each export: our guide to exporting Confluence and how to download a Confluence space.

Sources: Cloud export docs, Data Center export docs and Cloud keyboard shortcuts, markdown and autocomplete, Atlassian.

Option 1: HTML export, then pandoc

Pandoc is a free, open source document converter. Its manual lists HTML and Word (docx) as input formats and several Markdown flavours as output, including GitHub-Flavored Markdown (gfm) and CommonMark. So you can export a space to HTML, then convert each page file, for example with pandoc -f html -t gfm page.html -o page.md.

Expect to tidy up. Pandoc's manual warns that conversions from formats richer than its own Markdown "can be expected to be lossy", and that complex tables may not fit its document model. In practice, with a Confluence export:

If you need the page source rather than rendered HTML, with macros as definitions, in our understanding an XML export holds each page in Confluence's storage format (see our storage format guide); pandoc doesn't read that format, so it needs its own converter.

Option 2: an open source exporter that uses Confluence's API

These read your pages directly from Confluence with an API token, rather than from an export file. Two with recent commits on their GitHub pages as of the date above:

Follow each project's own README to install and run it, test it on a small space first, and check what access its API token gives it. Neither is affiliated with us, and we haven't tested them.

Option 3: a Marketplace app

The Atlassian Marketplace lists several apps that export Confluence pages to Markdown, including some that bulk-export with attachments. Before installing one, check its price, which Confluence editions it supports, whether it runs on Atlassian's own platform or sends your content to the vendor's servers, and what its listing says about data access. We don't recommend a particular app.

When Markdown is the wrong target

If you're converting to Markdown only to load it into another wiki, check whether that wiki imports Confluence's HTML export directly; that usually keeps more of the structure. Docmost, the open source wiki we host, is one example: its documentation says its Confluence import takes the HTML export zip and keeps the page tree, internal page links, images and attachments. Docmost's pricing page lists that importer under its paid Business plan. Its user guide also describes importing Markdown and HTML files, without the Confluence-specific handling. Our Confluence to Docmost guide compares the two. Docmost can also export a page or a whole space as Markdown, so a Docmost wiki can be a step on the way to Markdown files.

Source: Docmost import and export documentation and Docmost pricing.

Whichever route you take, keep your original export, and your Confluence site, until you've checked the converted pages.

Want the space in a wiki instead?

Tablewide runs Docmost at one flat price with unlimited users, from $49 a month, and you can export your pages as Markdown or HTML at any time. The free preview takes the HTML export of one space and puts it into a private Docmost wiki, with no card; it's deleted after 7 days unless you subscribe. Comments, page history and permissions don't come across from a Confluence export, and formatting, macros and attachments may not transfer exactly. Through the form, we aim to have your preview ready within two business days of your upload, on a best-efforts basis. The preview terms say where your export is stored and when it's deleted.

Organizations in the EEA, UK or Switzerland: please use the form and don't upload an export. We'll build your preview from your public pages instead, or tell you if that isn't possible (preview terms).

Get a free preview How to export Confluence

Atlassian and Confluence are trademarks of Atlassian. Docmost is a trademark of its developers. Other product names belong to their owners. Tablewide is not affiliated with or endorsed by Atlassian, Docmost or the tools named above. Details are summarised from each project's published documentation on the date above and can change.