Markdown TOC Generator
Generate the table of contents of a Markdown file from headings (#, ##, ###). Includes GitHub-style anchors. Everything in your browser.
Generate a Markdown table of contents
A long Markdown document calls for a table of contents up top, with a link to each section. The thing is, doing that by hand and keeping it in sync with the headings is a real chore. Paste your file here and the table of contents comes out ready, built from the headings themselves.
The tool reads headings from # through ######, respects the hierarchy among them, and builds the list with GitHub-style anchors, the ones that jump straight to the section on click. A repeated heading gets the -1, -2 suffix that GitHub itself adds, and anything inside a fenced code block stays out of the contents. Within seconds the list is ready to paste at the start of the document, already indented correctly at each level.
None of the text leaves your browser while it generates. Good for anyone looking after READMEs, wikis and technical docs who wants easy navigation without hand-updating the index.
Frequently asked questions
Does it pick up headings inside code blocks?
Do the anchors really work on GitHub?
The table of contents came out fully indented. How do I fix it?
Related Tools
Markdown Table Generator
Build Markdown tables visually — add rows and columns, edit cells and copy the GFM syntax ready for README, Notion or GitHub. No manual formatting.
Markdown Cheatsheet
Quick reference for Markdown syntax, filterable by keyword: headings, lists, links, tables, code and more. Shows the raw syntax next to what it does.
README.md Generator
Build a professional README.md filling in name, description, badges, install, usage, license. Markdown preview side-by-side.
ASCII Tree Generator
Paste an indented structure (spaces/tabs) and generate an ASCII tree ready for README — ├──, └── etc. Everything in your browser.
GitHub Actions Generator
Generate YAML workflows for GitHub Actions: Node CI, static deploy, semver release, lint+test. Customize triggers and steps. Everything in your browser.
HTML Minifier
Minify HTML by removing comments and collapsing whitespace between tags while preserving <pre>, <code> and <textarea> content.