Skip to content
Folio Wiki

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

  1. 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.

  2. Step 2: Paste it into the box, or choose the .html file. The conversion runs as you paste.

  3. Step 3: Check the Markdown and the Preview. Read the notes under the result: they list what could not be converted.

  4. 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 ![](file-name.png).

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.

Storage format (input) and Markdown (output)
<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 Friday

How 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.

One page as storage format
# 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.

What happens to each part of a Confluence page
On the Confluence pageIn the Markdown
Headings, text, links, lists, simple tablesConverted
Info, note, warning and tip panelsGitHub alerts, or a labelled blockquote
Code macroFenced code block with its language
Task lists, expand macroCheckboxes, collapsible details block
Status and Jira macrosPlain text
Table of contents, page tree, include page, Jira issue lists, draw.io and Gliffy diagrams, user and page listsAn HTML comment that names the macro
Merged table cellsSplit into empty cells
Images and attachmentsReferred to by file name; you copy the files
Comments, page history, labels, permissions, page propertiesNot part of the page body, so not converted
Links to other pagesStill 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.

Convert every exported page with Pandoc
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.

Ways to convert Confluence content to Markdown
WayWhole space in one runPage hierarchyConfluence macrosImages and attachmentsWhat you need
Confluence HTML export + this converterNo: one page at a timeNo: you rebuild itInfo, code, tasks, expand and more converted; the rest marked with a commentReferred to by file name; you copy the filesA browser. Nothing is uploaded
Pandoc on the HTML exportWith a shell loop, yesNo: you rebuild itNot known: panels and code blocks need reviewLinks stay as the HTML has them; you copy the filesPandoc installed, and a space export from a space admin
Turndown (JavaScript library, MIT)Only with a script you writeOnly if your script builds itRules you write yourselfYour script decidesProgramming; tables need the separate GFM plugin
Atlassian Marketplace export appsListings advertise it, often as a zipListings advertise folders that mirror the treeVendor-specific; check each listingListings mention attachmentsInstall rights in Confluence; read each listing's price and data handling
Folio's Confluence importYes: a page and everything below itYes: pages with children become foldersPanels to callouts, code, checkboxes, status tags; others not carried overDownloaded and stored with the spaceYour 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.

All tools

Also free: Markdown templates for meeting notes, SOPs, PRDs, runbooks and more.