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.gitEach 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
.gitfolder from the copy you zip. - Remove
_Sidebar.mdand_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.mdgoes. Every page imports under the Confluence parent page you choose, so you can paste the home content into that parent page and deleteHome.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.mdorindex.mdinside 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
- Zip the tidied folder.
- Open the importer in Confluence and choose the target space and parent page.
- 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.
- Import, then spot-check a few pages. File names become titles with hyphens turned into spaces, so
Getting-Started.mdbecomes "Getting Started". A first-level heading or atitlein 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