Markdown Table of Contents Generator
Paste your Markdown document and instantly get a formatted, linked Table of Contents with configurable heading depth.
Use the Markdown Table of Contents Generator
Markdown Input
Options
Table of Contents
Paste Markdown on the left to generate a TOC
Rendered Preview
Copied!
Summary
The Markdown Table of Contents Generator scans your Markdown document for headings (H1 through H6) and produces a nested, linked TOC you can paste back into your file. Each entry uses GitHub-compatible anchor links derived from the heading text. Configure the minimum and maximum heading level to include, and optionally use numbered lists instead of bullets.
How it works
- Paste your Markdown document into the input area.
- Set the minimum and maximum heading depth to include (default H1-H3).
- Choose bullet or numbered list style.
- The TOC updates instantly as you type.
- Click "Copy TOC" to copy the result to your clipboard.
Use cases
- Add a TOC to long README files on GitHub or GitLab.
- Generate navigation links for documentation pages.
- Quickly audit the heading structure of a Markdown document.
- Create anchor links for blog posts written in Markdown.
- Build a TOC for wiki pages and knowledge-base articles.
Frequently Asked Questions
Last updated: 2026-05-23 · Reviewed by Nham Vu