Markdown table of contents

Generate a nested TOC from Markdown headings — GitHub-style anchors, depth filter, ordered or plain.

Markdown stays in this browser — nothing is sent anywhere.

GitHub-style anchors: lowercase, spaces→dashes, most punctuation dropped, duplicate headings get -1, -2. Headings inside fenced code blocks are ignored. Up to 300,000 characters / 500 headings.

How to use

  1. Paste your Markdown.
  2. Set the heading depth range and list style.
  3. Copy the TOC into the document.

What it supports

GitHub anchor rules: lowercase, spaces→dashes, most punctuation dropped, duplicates get -1/-2. Headings inside fenced code blocks are ignored. Up to 300,000 characters / 500 headings.

Related tools

Related guides