Free Markdown Tool

Generate a Table of Contentsfrom Any Markdown

Paste your Markdown document and instantly get a nested TOC with GitHub-compatible anchor links. Choose heading depth, list style, and copy in one click.

📑

Instant TOC

Automatically extracts all headings (H1–H6) and builds a nested table of contents with anchor links in seconds.

⚙️

Fully Configurable

Set minimum and maximum heading levels, switch between ordered and unordered lists, and preview live.

🔗

GitHub-Compatible Anchors

Anchors are generated using the same algorithm as GitHub — works perfectly in README files and docs.

Min H1
Max H6
List style:Unordered (-)
17 headings
Markdown Input
Generated TOC
- [Getting Started](#getting-started)
  - [Installation](#installation)
    - [Prerequisites](#prerequisites)
    - [Install via npm](#install-via-npm)
  - [Configuration](#configuration)
    - [Basic Setup](#basic-setup)
    - [Advanced Options](#advanced-options)
  - [Usage](#usage)
    - [Quick Start](#quick-start)
    - [Examples](#examples)
      - [Basic Example](#basic-example)
      - [Advanced Example](#advanced-example)
  - [API Reference](#api-reference)
    - [Methods](#methods)
    - [Types](#types)
  - [Contributing](#contributing)
  - [License](#license)

100% client-side — your content never leaves your browser.

Frequently Asked Questions

Everything you need to know about Markdown TOC Generator.