Markdown TOC Generator
Generate a table of contents with GitHub-style heading anchors.
Markdown
Table of contents
Your text stays in this browser tab. Nothing is uploaded.
How to use Markdown TOC Generator
Paste your Markdown document to scan heading lines outside fenced code blocks.
Pick H1–H2, H1–H3, or All depth, and toggle Numbered if you want ordered list items.
Copy or download the generated GitHub-compatible table of contents.
Frequently asked questions
Are duplicate headings given unique anchor links?
Yes. Repeated headings receive incremental -1, -2 suffixes matching GitHub anchors.