Generate a clickable table of contents from any Markdown document. Paste your Markdown, configure the heading levels and list style, then copy the generated TOC right back into your document. Anchor links follow the GitHub-style slug format so they work on GitHub, GitLab, and most Markdown renderers.

Bold H1 entries
Add "Table of Contents" header
Markdown Input
Generated TOC
TOC will appear here after generation...

How to Use

  1. Paste your Markdown into the input box on the left
  2. Configure options — choose heading levels, list style, and indentation
  3. Click Generate TOC to extract all headings and build your table of contents
  4. Copy the TOC and paste it at the top of your Markdown document

This tool uses the GitHub-style slug algorithm to generate anchor links:

  • Text is lowercased
  • Spaces become hyphens -
  • Special characters (except hyphens) are removed
  • Duplicate headings automatically get a numeric suffix: #installation, #installation-1, #installation-2

This format is compatible with GitHub, GitLab, Obsidian, VS Code Preview, and most Markdown renderers.