Markdown TOC Generator — Heading Anchor Links
TextA Markdown TOC generator finds heading lines and turns them into an indented list of anchor links.
What is it
Long README files and docs are easier to scan when section links are available. This tool reads Markdown headings, creates GitHub-style anchors, and outputs an indented table of contents. Anchor rules vary by platform, so verify in preview before publishing.
TOC item = indentation by heading level + [heading](#normalized-anchor)
How to use
- 1Paste Markdown text.
- 2Choose GitHub anchor or plain heading mode.
- 3Copy the generated TOC into the top of the document.
Reference
| Input | Output |
|---|---|
| ## Install | - [Install](#install) |
| ### API Usage | - [API Usage](#api-usage) |
Sources & standards
- MDN Web Docs: Client-side web APIs - MDN Web Docs
FAQ
Does it match GitHub exactly?
It approximates common GitHub rules. Duplicate headings and unusual punctuation can differ by platform.
Is the document sent to a server?
No. TOC generation runs only in your browser.