Migrate a GitHub Wiki to Confluence Cloud

Every GitHub wiki is a separate Git repository of Markdown pages. That makes it easy to get out, and the only hard part is getting it into Confluence without copying pages by hand.

The gap

Confluence Cloud has migration tools for other wikis and imports Word documents, but it has no importer for Markdown files, and GitHub has no export to Confluence. Teams moving a project wiki into Confluence end up pasting each page into the editor, which loses tables and code formatting, or writing a script against the Confluence REST API.

Get the wiki as files

Clone the wiki repository. Its address is the repository address with .wiki added:

git clone https://github.com/OWNER/REPO.wiki.git

Each page is one .md file named after the page, such as Getting-Started.md. Images you uploaded to the wiki are in the same repository.

Tidy it before importing

  • Delete the .git folder from the copy you zip.
  • Remove _Sidebar.md and _Footer.md. GitHub shows them around every page; in Confluence they would import as two ordinary pages, and the page tree already gives you navigation.
  • Decide where Home.md goes. Every page imports under the Confluence parent page you choose, so you can paste the home content into that parent page and delete Home.md, or keep it as a page titled "Home".
  • Group pages into subfolders if you want sections. Each subfolder becomes a parent page, and a README.md or index.md inside it becomes that parent page's content.
  • Keep each run to 200 Markdown files or fewer, splitting a larger wiki by subfolder. SVG images are skipped; PNG, JPEG, GIF and WebP attach to their pages.
  • Check links between pages. GitHub wiki links such as [[Getting Started]] or [Setup](Setup) point at wiki page names. Only http, https, mailto and tel links import as links. Change cross-page links to full Confluence or GitHub URLs before zipping, or relink them in Confluence afterwards. The preview warns about each Markdown link it keeps as plain text; [[double bracket]] links are not Markdown, so they come through as literal text with no warning. Search the files for [[ before zipping.

Steps

  1. Zip the tidied folder.
  2. Open the importer in Confluence and choose the target space and parent page.
  3. Upload the ZIP. A ZIP holding a single top-level folder is unwrapped, so the pages sit straight under your parent page. The preview shows the page tree, the images that attach to each page and any warnings.
  4. Import, then spot-check a few pages. File names become titles with hyphens turned into spaces, so Getting-Started.md becomes "Getting Started". A first-level heading or a title in front matter takes priority.

Your wiki uses > [!NOTE] callouts? See how GitHub alerts become Confluence panels. For docs folders in general, see importing Markdown files and folders into Confluence.

Do it in one step

AI Markdown Importer for Confluence imports a folder or ZIP of Markdown as a page tree, with images as attachments and front matter as page properties, and shows a preview before anything is written. Single files are free; folder and ZIP import is US$20/month for sites with up to 10 users after a 30-day free trial, billed by Atlassian.

See AI Markdown Importer for Confluence