Automatically generate a linked Table of Contents from Markdown headings with GitHub-compatible anchor links. Free, browser-based.
Free is enough for most one-off jobs. Pro raises the file and batch caps; Pro + Media unlocks GB-scale streaming and unlimited duration.
Larger files supported on Developer (5 GB CSV) and Enterprise (unlimited). All processing happens in your browser — files never reach a server.
Paste your Markdown or drop a .md file
The tool scans all headings (H1–H6) and generates anchor slugs using GitHub's algorithm
Download the Markdown with the TOC injected after the first H1
0 bytes uploaded. TOC Generator runs entirely in your browser using JavaScript. Your markdown — including any secrets, PII, or proprietary content — never leaves your device. No data is sent to any server.
Yes — the tool uses GitHub's heading-to-anchor algorithm: lowercase, replace spaces with hyphens, strip non-alphanumeric characters. The TOC links will work correctly when viewed on GitHub.
By default, the TOC is inserted immediately after the first H1 heading. You can choose to insert it at the very top instead using the options panel.
Shift all headings in a Markdown document up or down by one or more levels — e.g. H2 → H3 for embedding a document as a section. Free, instant.
Open toolUI-driven YAML frontmatter generator for static site generators — Gatsby, Next.js, Hugo, Astro. Fill in fields and prepend to your Markdown. Free, browser-based.
Open toolDivide a large Markdown document into separate chapter files at H1 or H2 boundaries. Download all chapters as a ZIP. Pro feature.
Open tool