Markdown Table of Contents (TOC) Generator
Scan any Markdown document and build an accurate Table of Contents. Features depth selection (H1-H6), GitHub slug generation, bullet or numbered formatting, and one-click insertion.
Simple Workflow
How to Use the Markdown TOC Generator
Get instant, accurate results in three simple steps without uploading files to remote servers.
Paste Markdown Document
Input your README, article, or documentation with headings (#, ##, ###).
Configure TOC Options
Select heading range (e.g., H2 to H4), list style (bullet or numbered), and anchor slug format.
Copy or Prepend TOC
Copy the generated TOC or click "Prepend to Document" to insert it at the top of your file.
Key Highlights
Why Use Our Markdown TOC Generator?
Engineered for developers, technical writers, and content creators needing speed, reliability, and security.
GitHub Compatible Anchors
Generates GitHub-compliant link slugs (#heading-name) that work seamlessly in README files on GitHub.
Customizable Heading Depth
Filter which heading levels to include (e.g., include H2-H4 while excluding document title H1).
Bullet or Numbered Formats
Choose between unordered `- [Item](#url)` or ordered `1. [Item](#url)` hierarchical lists.
One-Click Prepend
Automatically places the generated TOC right after your document title with proper spacing.
Frequently Asked Questions
Common Questions About Markdown TOC Generator
Are the anchor links compatible with GitHub and GitLab?
What if multiple headings have the same name?
Can I exclude H1 from the generated TOC?
More Tools
Related Markdown Tools
Markdown Editor
Live side-by-side Markdown editor with instant preview, autosave, dark/light theme, and quick syntax toolbar.
Markdown Previewer / Viewer
Paste or upload any .md file to view an accurate GitHub-styled rendered preview with reading statistics.
Markdown Formatter / Beautifier
Fix inconsistent indentation, standardize headings, normalize lists, and clean excessive blank lines.
Markdown Linter / Validator
Scan Markdown for syntax errors, skipped heading levels, unclosed tags, and broken link syntax.