📑 Markdown TOC Generator
Paste your Markdown and instantly generate a nested table of contents from h1–h6 headings. Supports GitHub and GitLab slug styles, Markdown/HTML/plain output, depth limits, and numbered lists.
✅ 100% free · no signup · browser-only
🔒 About Privacy
- ・Markdown is parsed only in your browser
- ・Your text is never sent to any server
- ・No signup, no login, no payment
⚙ Options
Preview (rendered HTML)
📖 How to Use
-
1
Paste MarkdownPaste your full Markdown into the left text area.
-
2
Adjust optionsPick output format (Markdown / HTML / plain), slug style, min/max heading level, and numbering.
-
3
Copy or downloadCopy the generated TOC to your clipboard, or download as .md / .html / .txt.
❓ FAQ
Will the anchors match GitHub exactly?
Yes. Our slugger mirrors GitHub: lowercased, non-alphanumeric stripped, spaces become hyphens, emojis removed, and duplicates suffixed with -1, -2…
Is my Markdown sent to your server?
No. All processing is in your browser via plain JavaScript. You can verify in the Network tab.
Are # signs inside code blocks ignored?
Yes. Fenced code blocks (``` and ~~~) are excluded from heading detection. Inline code hashes are skipped too.
🔗 Related Tools
🐛 Found a bug or issue with this tool?
Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.
✅
Thanks for your report!
Your report has been delivered to the operator and will be used to improve the tool.