Markdown TOC Generator

Scan the headings and generate an anchored table of contents so long docs become navigable.

FreeNo sign-up
Options

Anchors follow GitHub rules: lowercased, punctuation dropped, spaces to dashes, CJK preserved as-is.

Output
Input
Output

Results appear here as you type.

Scan the headings and generate an anchored table of contents so long docs become navigable.

A few thousand words from an AI, with no table of contents, makes for painful reading. This tool scans every heading, builds an anchored outline tree, and lets you either copy just the TOC to the top of the document or hand back the whole thing with the TOC already inserted.

How to use it

  1. 1Paste the long document — headings are picked up automatically.
  2. 2Set the heading range (H1–H3, say) and choose a bulleted or numbered list.
  3. 3Copy the TOC to your document's top, or switch to TOC + document to take the whole thing.

FAQ