🔗 TOC generator
Auto-build an anchored table of contents from your headings.
Table of contents (0 headings)
Paste Markdown on the left to generate a TOC.
Frequently asked questions
How does the TOC generator work?+
Paste your Markdown content. The tool extracts all headings (H1-H6), builds a nested or flat table of contents with anchor links, and generates the Markdown output.
Can I customize the TOC style?+
Yes. Choose between Nested (hierarchical), Flat (sequential), and Numbered styles. The output is plain Markdown you can paste anywhere.
Does it handle heading anchor IDs?+
Yes. Each heading in the TOC gets an anchor ID based on its text (same convention as GitHub). The anchor IDs are compatible with most Markdown renderers.