Markdown TOC
Generate a table of contents from markdown headings. Indented list with GitHub-style anchor links — drop it at the top of the document.
About Markdown TOC
Markdown TOC scans the headings in a Markdown document and builds a ready-to-paste table of contents — an indented list with GitHub-style anchor links that jump to each section. Drop it at the top of a long README, spec, or wiki page and readers can navigate at a glance. It processes the text in your browser and returns Markdown you can paste straight back in.
- Category
- text
- Input
- Accepts: text/plain or text/markdown.
- Output
- Outputs: text/markdown.
- Cost
- Free, runs in your browser
- Memory
- low
Common uses
- Add a clickable table of contents to a long README before publishing on GitHub
- Generate navigation for a multi-section design doc or RFC
- Keep a changelog or runbook navigable as it grows past a screenful
- Regenerate a TOC after restructuring headings so anchor links stay correct
- Produce an outline of a document's heading hierarchy for a quick structural review
- Build section links for a docs page hosted on a platform that uses GitHub-style anchors
Frequently asked questions
What anchor style does it use?
GitHub-style slugs, so the links work in READMEs and most Markdown renderers that follow that convention.
Does it nest by heading level?
Yes — the list is indented to mirror your heading hierarchy (H1, H2, H3, and so on).
What format is the output?
Markdown — an indented bullet list of links you paste directly into the top of your document.
Does my document get uploaded?
No. Headings are parsed locally in your browser; the text never leaves your device.
Will it pick up headings inside code blocks?
It targets Markdown headings; keep your intended section headings outside fenced code so they're included as expected.
Keywords
- markdown
- toc
- table of contents
- headings
- outline
- anchors