DevToolBox

Markdown Table of Contents Generator

Generate a table of contents (TOC) from Markdown headings. Filter by heading level and customize format.

Min Level

Max Level

Options

Example

Markdown Input

0 headings found

Generated TOC

Features

  • Automatic heading detection: Finds all Markdown headings (#, ##, ###, etc.)
  • Level filtering: Control which heading levels to include (H1-H6)
  • Auto-generated links: Creates anchor links for easy navigation
  • Slug generation: Converts headings to URL-friendly slugs
  • Nested indentation: Properly indents sub-headings for hierarchy
  • Numbered or bulleted: Choose between numbered or bullet list format

Example Output

With Links:

- [Main Title](#main-title)
  - [Introduction](#introduction)
    - [Getting Started](#getting-started)
  - [Usage](#usage)

Without Links:

- Main Title
  - Introduction
    - Getting Started
  - Usage