Skip to content
Markdown

Markdown TOC Generator

Generate a linked table of contents from headings.

How it works

  1. 1Paste your Markdown.
  2. 2A nested TOC with anchor links is generated.
  3. 3Copy it to the top of your document.

Use cases

  • Add a TOC to a long README.
  • Create navigation for docs.
  • Link to sections on GitHub.

Frequently asked questions

Do the links work on GitHub?

Yes. Anchors use GitHub’s slug rules, so they jump to the right section.

Can I get a numbered TOC?

Yes. Toggle “Numbered list” for an ordered table of contents.

Is it private?

Yes. Everything runs in your browser — nothing is uploaded.

Read the guide
How to generate a table of contents in Markdown
Build a clickable table of contents from your headings automatically — with anchor links that jump to each section, and a note on keeping it in sync.
See all →