Table of Contents Generator

Analyzes a Markdown document and recognizes its headings (# through ######) to generate a hierarchical, linked table of contents, ready to copy as Markdown. Anchors are generated with a dedicated, deterministic algorithm (the same one the URL slug generator uses), and repeated headings get an incremental numeric suffix to stay unique. Different Markdown platforms may apply small variations to their own anchors.

Processed on your device, no AI

Paste a Markdown document with headings (#, ##, ###...) to generate its table of contents.

The content is processed on your device and is never uploaded to the server.

Use cases

How to use this tool

  1. Paste your Markdown document
  2. Review the generated table of contents
  3. Copy or download the table's Markdown

Frequently asked questions

What if I have two identical headings?
The second (and later) one gets an incremental numeric suffix on its anchor, e.g. #introduction and #introduction-2, so every link stays unique.
Will the anchors work the same on any Markdown platform?
Anchors are generated with our own deterministic algorithm. Different Markdown renderers may apply small variations to theirs.

Related tools

← Back to home