TOC Generator
Generate a table of contents from your Markdown headings.
How to Generate a Table of Contents
- 1Paste your Markdown
Paste your Markdown document into the input panel. The tool scans for headings (# through ######).
- 2Configure options
Set the maximum heading depth and choose between ordered (numbered) or unordered (bulleted) list output.
- 3Copy the TOC
The generated table of contents appears in real time. Click Copy to grab it and paste it into your document.
Why Use Our TOC Generator
- Scans all heading levels and generates properly nested anchor links
- Configurable max depth — include only the heading levels you want
- Toggle between ordered and unordered list output
- Uses GitHub-style slug anchors (lowercase, hyphens) that work on most platforms
- Browser-based — your document never leaves your device
Common Use Cases
Long-Form Documentation
Add navigation to lengthy README files, wikis, or technical documents so readers can jump to sections.
Blog Posts
Generate a quick table of contents for long articles to improve readability and user experience.
Knowledge Bases
Create structured navigation for internal knowledge base articles and onboarding docs.
Book Chapters
Generate chapter outlines from Markdown manuscripts for review or publishing workflows.
Related Tools
Frequently Asked Questions
Common questions about generating a table of contents.