TL
Tool Lab
💰Donate
💰Donate

Table of Contents Generator

Automatically extract headings from Markdown and generate a linked TOC.

About This Tool

Generates a Table of Contents from Markdown headings (# through ######). Paste your Markdown document and choose between plain Markdown links, numbered Markdown, or an HTML nav block.

Heading levels can be filtered with the Min/Max controls so you only include the heading depths you care about.

How to Use

  1. Paste your Markdown document in the input area.
  2. Choose output format: Markdown, Numbered Markdown, or HTML.
  3. Set the min and max heading levels to filter depth.
  4. Copy the generated Table of Contents and paste it into your document.

Use Cases

Documentation authors add a TOC to the top of README files or wiki pages. Technical writers insert a navigation section before long articles. Developers generate an HTML nav block for static site generators.

FAQ

  • What heading levels are supported?H1 through H6 (# to ######). Use the Min/Max controls to restrict which levels appear in the TOC.
  • Does it support non-Latin headings?Yes. The heading text is preserved as-is in the link labels. The anchor slug is generated from the lowercase version with non-word characters removed, which matches GitHub Markdown behavior.
  • Can I use the HTML output directly in a webpage?Yes. The HTML output generates a <nav><ul><li><a href="#..."> structure compatible with standard anchor links.