Paste any markdown document and get a perfectly formatted TOC with anchor links in seconds. Free, runs in your browser.
- [My Project](#my-project)
- [Introduction](#introduction)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Basic Usage](#basic-usage)
- [Advanced Configuration](#advanced-configuration)
- [API Reference](#api-reference)
- [Contributing](#contributing)
- [License](#license)- [My Project](#my-project)
- [Introduction](#introduction)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Basic Usage](#basic-usage)
- [Advanced Configuration](#advanced-configuration)
- [API Reference](#api-reference)
- [Contributing](#contributing)
- [License](#license)Three steps. Five seconds.
Drop your markdown document into the editor — README, blog post, docs page, anything with headings.
The TOC appears instantly with correct anchor links for every heading, indented by level.
Copy the markdown TOC to paste at the top of your document, or download as a .md file.
Stop writing TOCs by hand. Paste, copy, done.
The table of contents updates in real time as you type or paste. No button to click.
The generator parses your markdown in the browser and produces a correctly indented TOC with anchor links. Changes reflect immediately — no page reload, no server round-trip.
Every heading becomes a properly formatted anchor link following GitHub's ID generation rules.
Headings are lowercased, spaces become hyphens, and special characters are stripped — exactly how GitHub generates heading IDs. Links that work on GitHub, GitLab, and most markdown renderers.
H1, H2, H3 headings are indented correctly to show document hierarchy at a glance.
H1 headings appear at the root level. H2 headings are indented two spaces. H3 four spaces. The resulting list visually represents your document's structure and renders as a nested list.
Your document never leaves your browser. Generation happens entirely in JavaScript — no upload, no server.
The TOC generator runs as JavaScript in your browser tab. There is no server, no API call, no file upload. You can disconnect from the internet after the page loads and it still works.
Everything you need to know.
Paste your markdown document into the left panel. Copy the generated TOC from the right panel and paste it at the top of your document, just below your main title.
Turn markdown into a polished PDF, Word doc, or standalone HTML — free, no signup.