ToolSnippet

Free Markdown Table of Contents (TOC) Generator

Extract headers (# through ######) from README.md or documentation and generate clickable Markdown TOCs instantly.

About This Tool

The Markdown Table of Contents Generator parses Markdown headings and builds standard GitHub-Flavored Markdown (GFM) anchor lists. It automatically normalizes heading titles into lowercase hyphenated URL slugs for seamless documentation navigation.

How to Use This Tool

  1. Paste your Markdown documentation or README.md content.
  2. Select your preferred list style (Unordered '-' or Ordered '1.').
  3. Set your minimum and maximum heading depth (e.g. H2 to H4).
  4. Copy the generated Table of Contents markdown into your document.

Why Use This Tool

  • Create clean GitHub README.md navigation menus effortlessly.
  • Ensure anchor links follow GitHub Flavored Markdown slug conventions.
  • Customize heading levels to exclude H1 or deeply nested headers.
  • 100% instant in-browser markdown parsing.

Frequently Asked Questions

How are Markdown anchor slugs formatted?

GitHub anchors convert heading text to lowercase, remove punctuation, and replace spaces with hyphens (e.g., '# Getting Started' becomes '#getting-started').

Can I limit the TOC depth?

Yes, you can configure the extractor to only include H2 and H3 headings to keep the Table of Contents concise.

Related Tools