Markdown TOC Generator — Heading Anchor Links

Text

A 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

  1. 1Paste Markdown text.
  2. 2Choose GitHub anchor or plain heading mode.
  3. 3Copy the generated TOC into the top of the document.

Reference

Markdown TOC Generator — Heading Anchor Links Reference
InputOutput
## Install- [Install](#install)
### API Usage - [API Usage](#api-usage)

Sources & standards

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.

Related tools