Client-side Tool

Markdown TOC Generator Tool (Auto-create from Headings)

Automatically generate a Table of Contents (TOC) from Markdown headings (H2-H4, etc.). Copy the 'editable' output and use it immediately.

Input data is not sent to servers Just paste it

Markdown TOC Generation (Input/Output)

ఇన్‌పుట్
Just paste it

Extracts headings from # to ####. Ignores # inside code blocks.

Generated TOC (Markdown)
0items Extracted 0items Excluded 0items డూప్లికేట్
Paste Markdown on the left to see the TOC here
Click to select all

TOC Creation Markdown (Options)

Basic Settings

అధునాతన సెట్టింగ్స్
Start/End Markers Easy to update later
Add <!-- TOC --> and <!-- /TOC -->
<!-- TOC --> <!-- /TOC -->

Heading to TOC: Usage and Examples

How to Use

  1. 1

    Paste Markdown

  2. 2

    Select target levels (H2 Only / H2-H4, etc.)

  3. 3

    Copy and paste into your document

Input content is processed within the browser.

Example

Input Example
# Document Title
## Overview
## Usage
### Installation
### Configuration
## FAQ
## FAQ
Output Example
## Table of Contents

- [Overview](#overview)
- [Usage](#usage)
  - [Installation](#installation)
  - [Configuration](#configuration)
- [FAQ](#faq)
- [FAQ](#faq-2)

Notes & Tips

Specifications

Heading Extraction Rules

  • Extracts # to #### Markdown headings (specified in settings)
  • # inside code blocks (```) are not treated as headings

Anchor Generation Rules (Tool Default)

  1. Trim heading text (remove whitespace)
  2. Convert English to lowercase
  3. Convert spaces to -
  4. Remove symbols (keep -)
  5. Collapse consecutive -- to -
  6. Remove leading/trailing -
  7. Append -2, -3... for duplicate anchors

గమనికలు

  • TOC link behavior may vary depending on the environment (Git hosting, Markdown viewer, etc.). Edit the output as needed.
  • Setting anchor style to 'Custom' makes it easier to edit for specific environments.
  • Exclude keywords are matched partially.

తరచుగా అడిగే ప్రశ్నలు

I want H2 only

You can select 'H2 Only' in Target Levels.

How are anchor names determined?

The anchor generation rules for this tool are listed. You can manually edit the output to fine-tune it for your environment.

What about duplicate headings?

If multiple identical headings exist, sequential numbers like -2, -3 are added to avoid anchor duplication (e.g., #faq-2).

I want to exclude specific headings

Use the 'Exclude Keywords' in Advanced Settings to omit headings containing those characters.

Can I create a TOC without links (text only)?

Set Anchor Style to 'No Anchor' to generate a text-only TOC.