Markdown Table of Contents Generator

Paste your Markdown document and instantly get a formatted, linked Table of Contents with configurable heading depth.

Markdown Input

Options

Table of Contents

Paste Markdown on the left to generate a TOC

Copied!

Summary

Paste your Markdown document and instantly get a formatted, linked Table of Contents with configurable heading depth.

How it works

  1. Paste your Markdown document into the input area.
  2. Set the minimum and maximum heading depth to include (default H1-H3).
  3. Choose bullet or numbered list style.
  4. The TOC updates instantly as you type.
  5. 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-06-09 · Reviewed by Nham Vu