Skip to content
Takikit

Markdown Table of Contents Generator

Generates a table of contents linked to each heading using GitHub's anchor rules, with a choice of heading levels and numbering style.

Loading tool...

Runs in your browser. Nothing is sent anywhere.

When to use it

Use this for a long README, internal guide or multi-section Markdown blog post that needs a clickable table of contents so readers can jump to the part they need.

By default it takes level 2 and 3 headings and ignores # lines inside code blocks. Duplicate headings get a -1, -2 suffix the way GitHub does it, so every link still points to the right place.

How to use

  1. Paste your Markdown.
  2. Choose which heading levels to include in the table of contents.
  3. Copy the table of contents to the top of your document.

Frequently asked questions

Is my text sent to a server?

No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.

Related tools

More Text tools

See all text tools