Confluence to Markdown converter
To convert a Confluence page to Markdown, export it to HTML (or copy its storage format), paste it into the converter below and copy the GitHub-flavored Markdown. It runs in your browser, so nothing is uploaded. It converts one page at a time; for a whole space with its page tree, import it into Folio or script Pandoc, as explained below.
Runs in your browser. Nothing you paste or draw is uploaded.
Updated
Nothing leaves your browser.
How to use it
Step 1: Get the page. Select the content in Confluence and copy it, or export the space to HTML and open one of the .html files, or copy the page's storage format.
Step 2: Paste it into the box, or choose the .html file. The conversion runs as you paste.
Step 3: Check the Markdown and the Preview. Read the notes under the result: they list what could not be converted.
Step 4: Copy the Markdown, or download it as a .md file.
What does the converter turn into Markdown?
Headings, paragraphs, bold, italic, strikethrough, links, lists and tables. Code macros become fenced code blocks with their language. Info, note, warning and tip macros become GitHub alerts (or a plain labelled blockquote if you prefer). Task lists become checkboxes, expand macros become collapsible details blocks, and status and Jira macros become plain text. Images that point at attachments become .
A macro the converter does not know is left as an HTML comment, <!-- unsupported macro: name -->, so you can see where it was and fix it by hand. If the macro has a body, the body is kept.
Storage format, HTML or copied content: which input is better?
The storage format is what Confluence saves, so it keeps the most: macro names, parameters, task states, attachment names. Content copied from a rendered page is what the browser shows, so it works for text, tables and lists, but macros have already been turned into boxes and the converter has to guess from their look. If a callout or code block comes out plain, try the storage format.
<ac:structured-macro ac:name="info">
<ac:rich-text-body><p>Do not deploy on Friday</p></ac:rich-text-body>
</ac:structured-macro>
> [!NOTE]
> Do not deploy on FridayHow do I export a Confluence page to HTML or Word, and then to Markdown?
Confluence Cloud exports a single page to Word or PDF. HTML is offered when you export a space (space admins only), and Atlassian's export page notes that HTML exports leave out comments. To get the HTML or the storage format of one page, ask the REST API: the body-format parameter takes view (rendered HTML) or storage. The first command is for Confluence Cloud, the second for Data Center with a personal access token.
# Cloud: email and API token
curl -u you@example.com:API_TOKEN \
"https://your-site.atlassian.net/wiki/api/v2/pages/PAGE_ID?body-format=storage"
# Data Center / Server: personal access token
curl -H "Authorization: Bearer PAT" \
"https://wiki.example.com/rest/api/content/PAGE_ID?expand=body.storage"The page body is in the value field of the JSON, with its quotes escaped. Paste the unescaped XML into the box above, or save an HTML export and choose the file. The requests are described in Atlassian's REST API documentation for Cloud and Data Center.
The Word route. If Word is the only export you can get, export the page to Word, open the file and save it as .docx (Pandoc reads .docx, not the older .doc), then run pandoc page.docx -f docx -t gfm --wrap=none -o page.md. Prefer HTML or the storage format when you have them: they are the source the converter above understands, and it can name the macros it could not convert.
What gets lost when I convert Confluence to Markdown?
Markdown has no equivalent for macros that need Confluence to run, so the page text survives and the live parts do not. The converter never drops one silently: each becomes an <!-- unsupported macro: name --> comment where it stood.
| On the Confluence page | In the Markdown |
|---|---|
| Headings, text, links, lists, simple tables | Converted |
| Info, note, warning and tip panels | GitHub alerts, or a labelled blockquote |
| Code macro | Fenced code block with its language |
| Task lists, expand macro | Checkboxes, collapsible details block |
| Status and Jira macros | Plain text |
| Table of contents, page tree, include page, Jira issue lists, draw.io and Gliffy diagrams, user and page lists | An HTML comment that names the macro |
| Merged table cells | Split into empty cells |
| Images and attachments | Referred to by file name; you copy the files |
| Comments, page history, labels, permissions, page properties | Not part of the page body, so not converted |
| Links to other pages | Still point at Confluence; rewrite them to relative paths |
How do I move a whole Confluence space to Markdown with its hierarchy?
Confluence has no Markdown export of its own, so a space is always two jobs: get the pages out, then convert them. The page tree is the part that usually gets lost, so decide first how you will keep it.
1. Export the space to HTML. A space admin exports the space as HTML from the space's export option (see Atlassian's page above). You get a zip with one HTML file per page, plus attachments. Check how the files are laid out: do not assume folders match the page tree, and if they do not, rebuild the tree from the REST API, where every page lists its ancestors.
2. Convert the HTML. For a few pages, open each file in this tool. For many, a general converter such as Pandoc reads HTML and writes GitHub-flavored Markdown (-f html -t gfm). Pandoc does not know Confluence macros, so panels and code blocks need a review.
find export -name '*.html' -exec sh -c \
'pandoc -f html -t gfm --wrap=none "$1" -o "${1%.html}.md"' _ {} \;3. Keep the structure. Move each .md file into a folder that mirrors the tree, and rewrite links between pages to relative paths. Then run a link checker, and copy the attachments next to the pages.
If you would rather not script it, Folio's importer does steps 1 to 3 in one run: see the next section.
Which way to convert Confluence to Markdown is best, and can Folio import a space?
Five ways, compared on the same points. Facts about other products come from their own documentation and listings, checked on 2 November 2026.
| Way | Whole space in one run | Page hierarchy | Confluence macros | Images and attachments | What you need |
|---|---|---|---|---|---|
| Confluence HTML export + this converter | No: one page at a time | No: you rebuild it | Info, code, tasks, expand and more converted; the rest marked with a comment | Referred to by file name; you copy the files | A browser. Nothing is uploaded |
| Pandoc on the HTML export | With a shell loop, yes | No: you rebuild it | Not known: panels and code blocks need review | Links stay as the HTML has them; you copy the files | Pandoc installed, and a space export from a space admin |
| Turndown (JavaScript library, MIT) | Only with a script you write | Only if your script builds it | Rules you write yourself | Your script decides | Programming; tables need the separate GFM plugin |
| Atlassian Marketplace export apps | Listings advertise it, often as a zip | Listings advertise folders that mirror the tree | Vendor-specific; check each listing | Listings mention attachments | Install rights in Confluence; read each listing's price and data handling |
| Folio's Confluence import | Yes: a page and everything below it | Yes: pages with children become folders | Panels to callouts, code, checkboxes, status tags; others not carried over | Downloaded and stored with the space | Your own Folio installation and a Confluence token |
Folio's importer reads the pages through the Confluence API from a page address. Choose the page alone or the tree below it. To bring in a space, point it at the space's home page; pages that are not below that page are not included. Pages become Markdown files in the space's Git repository, a page with children becomes a folder with its own index page, and importing again updates the pages in place. Whiteboards from Confluence Cloud become editable boards. Comments, version history and Confluence permissions are not imported, and not every macro is supported: other macros may be simplified or lost, so run a trial import of one page tree before you move a whole space. The longer walk-through, with a checklist for a trial run, is in Export Confluence to Markdown and keep it in Git. To weigh Folio against other targets, see the Confluence alternatives and Folio vs. Confluence.
Is my Confluence page uploaded anywhere?
No. The conversion is JavaScript running on this page. The text you paste is not uploaded, stored or logged; open your browser's network tab while you paste and you will see nothing sent. We count that the tool was used and which button was pressed, never what was in the box.
What it does not do
- One page at a time, and one file per paste. This tool does not read a zip, a folder or a whole space, and it does not keep a page tree. Steps for a space are above.
- Images and attachments are not downloaded. The Markdown refers to them by file name; you bring the files.
- Macros that need Confluence to run (table of contents, page tree, include page, Jira issue lists, draw.io and Gliffy diagrams, user and page lists) cannot be reproduced and become comments.
- Merged table cells are split into empty cells, because Markdown tables cannot merge.
- Comments, page history, labels, permissions and page properties are not part of the page body and are not converted.
- Links between pages still point at Confluence addresses. Rewrite them to relative paths after the move.
Moving a whole space?
Folio imports a page or an entire tree from Confluence, keeps images, code and checkboxes, and stores the result as Markdown files in Git. It does not carry over comments, history or permissions.
Read more: Export Confluence to Markdown and keep it in Git.
Frequently asked questions
Does Confluence have a built-in export to Markdown?
No. Confluence exports Word, PDF, HTML, XML and CSV. To get Markdown you export (or read the REST API) and then convert, with this tool, Pandoc, a script or a Marketplace app, or you import the pages into a wiki that reads Confluence directly, such as Folio.
How do I export a Confluence page to HTML or Word and convert it to Markdown?
A single page exports to Word or PDF; HTML comes with a space export (space admins). Open one of the exported .html files in the converter above, or save the Word file as .docx and run Pandoc on it. The page's storage format from the REST API (body-format=storage) converts best, because it keeps macro names, task states and attachment names.
How do I export a whole Confluence space to Markdown with hierarchy?
Export the space to HTML (space admin), convert the files with Pandoc or this tool, and rebuild the folder tree from the page tree. Or let Folio's importer read the tree through the Confluence API: pages with children become folders.
Is there a free converter that does not upload my pages?
Yes, this one. It runs in your browser and the text you paste never goes to a server. You can check this in your browser's network tab. Only a count of uses is recorded, never the content.
Why did a macro become a comment, and what else gets lost?
Some macros only make sense inside Confluence, such as a table of contents or a list of child pages. The converter marks each one with an "unsupported macro" comment instead of dropping it. Comments, history, labels and permissions are not part of the page body and are not converted, and images are referred to by file name: copy the attachments next to the .md files.
Can I import a Confluence space into Folio instead of converting it?
Folio imports a Confluence page or the tree below it, with images, code, checklists and panels converted. Pages with children become folders, and importing again updates the pages. Comments, history and permissions are not imported, and some macros are simplified or lost, so try one tree first. See Folio vs. Confluence and the Confluence alternatives.
More free tools
All toolsAlso free: Markdown templates for meeting notes, SOPs, PRDs, runbooks and more.