Category: Developer tools

Markdown Table of Contents Generator

System ideaMissing a tool?

Build a linked table of contents from Markdown headings

Paste Markdown and generate a nested TOC from ATX headings with GitHub-style anchor links and a chosen heading-level range locally.

Table of contents
- [Getting Started](#getting-started)
  - [Installation](#installation)
  - [Configuration](#configuration)
    - [Environment Variables](#environment-variables)
    - [Feature Flags](#feature-flags)
  - [Deployment](#deployment)

Everything on this page is processed in your browser. Nothing is uploaded.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This Markdown Table of Contents Generator scans the ATX (`#`) headings in pasted Markdown, builds a nested list that follows their levels, and creates GitHub-style anchor links: lowercased text, punctuation stripped, spaces changed to hyphens and duplicate headings suffixed with a number. Choose the minimum and maximum heading levels to include, then copy the generated TOC into your document. The tool works on pasted Markdown or the built-in example only. It does not upload content, import files, save cloud history, manage accounts, write back to your document automatically or add unlisted Markdown renderer rules.

How to use it

  1. Paste your Markdown, or load the example to inspect how headings are parsed.
  2. Choose the minimum and maximum heading levels to include in the TOC.
  3. Copy the nested table of contents with GitHub-style anchors into your document.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

How do I use Markdown Table of Contents Generator?
Paste Markdown, choose the heading-level range, then copy the nested table of contents generated from ATX headings.
Which inputs and options does Markdown Table of Contents Generator support?
It supports pasted Markdown, the built-in example, minimum and maximum heading levels, and copying the generated TOC. It does not add file upload or batch options.
How do I view or copy the result?
The generated TOC appears as Markdown text, ready to copy into the document you are editing.
Is my input, file, or result uploaded?
No. Your Markdown, heading-level settings and generated TOC stay in the browser and are not uploaded to LocalTools.
What does this tool not support?
It does not upload files, process batches, edit your source document automatically, sync accounts, save cloud history, call external APIs or support unlisted Markdown dialect behavior.