Share a mind map as a link with Markmap
Write the mind map as a Markdown outline, turn it into one HTML file with Markmap, and send a link. Viewers can zoom, pan and fold branches in any browser, with no mind-map app or account.
Mind-map apps save to their own formats, so sending the file means the other person needs the same app, and exporting to an image loses the ability to fold branches. Markmap takes a different route: you write the map as a Markdown outline, and it draws an interactive map in a web page. Headings and bullet points become branches.
The result is a single HTML file. Hosted at a link, it opens in any browser, and the reader can zoom, drag the map around and click a node to fold or unfold its branch.
Step 1: write the outline
Each heading level and each level of bullet indentation becomes one level of the map. A short example, saved as plan.md:
- ✓# Launch plan (the center of the map)
- ✓## Product, with bullets “- Pricing page” and “- Onboarding emails” under it
- ✓## Marketing, with bullets “- Guides” and “- Directory listings” under it
- ✓Links, bold, italics and inline code in the Markdown are kept in the map. An AI assistant can write this outline for you: ask for “a Markdown outline for a mind map of …”.
Option A: build the HTML file with markmap-cli
With Node.js installed, run: npx markmap-cli plan.md --no-open -o plan.html
That writes plan.html, a small file (about 2.4 KB for the example above) that loads d3 and the Markmap viewer from the jsDelivr CDN when it is opened. Add --offline to put those scripts inside the file instead. The example then grows to about 340 KB but no longer depends on the CDN.
Tested with markmap-cli 0.18.12 in Chrome: both files drew all 9 nodes of a three-level outline. The Markmap project has started publishing new versions under the @markmap package names from 1.0, so newer instructions may use those.
Option B: write the HTML file by hand with the autoloader
Without Node, one HTML file can hold the outline and draw it in the browser. Create mindmap.html with:
- ✓<!doctype html>, <meta charset="utf-8"> and <meta name="viewport" content="width=device-width, initial-scale=1"> in the head.
- ✓A style rule in the head so the map fills the screen: .markmap { position: relative; height: 100vh; } .markmap > svg { width: 100%; height: 100%; }
- ✓In the body: <div class="markmap"><script type="text/template"> followed by your Markdown outline, then </script></div>.
- ✓After that div: <script src="https://cdn.jsdelivr.net/npm/markmap-autoloader@0.18.12"></script>. The autoloader finds every .markmap block on the page and draws it.
- ✓Tested in Chrome: the page drew the 7-node example outline as a map filling a 1200 by 800 window.
Upload it and send the link
Drag the .html file onto the FileShare Pro dashboard and copy the link. The map opens in the browser, and viewers need no account.
Turn on comments and readers can leave a note on the page after typing a name, such as a branch to add. When the outline changes, rebuild the file and upload it over the old one; the link stays the same: updating a shared link without changing it.
Other diagrams written as text: Mermaid, which also has a mindmap diagram type, PlantUML and D2.
Frequently asked
Save it as one HTML file, for example with Markmap from a Markdown outline, upload it to a host and send the link. It opens in any browser with no mind-map app.
Yes. In a Markmap page, clicking a node folds or unfolds its branch, and the map can be zoomed and dragged.
The default markmap-cli output and the autoloader load their scripts from the jsDelivr CDN. Build with markmap-cli --offline to keep everything in the one file.
Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.
Drop the file, copy the link — live in seconds, free plan included.
Start sharing free