Markdown Table of Contents Generator
Generate a table of contents from a Markdown document's headings, with working anchor links.
Navigation for long documents
A long README or document is far easier to navigate with a table of contents at the top, but building one by hand — listing every heading and linking it correctly — is tedious and breaks the moment you add a section. This reads your Markdown's headings and generates a linked table of contents automatically, so readers can jump straight to any section.
Paste your Markdown and the table of contents is generated.
How the anchor links work
The links work because Markdown platforms turn each heading into an anchor with a predictable slug — lowercase, spaces to hyphens. The generated contents point to those anchors, so clicking a line jumps to the heading. One thing to watch is duplicate heading names, which platforms disambiguate by appending a number, so two identically-named sections need care. For documentation of any length, an auto-generated table of contents is one of the highest-value additions for the reader.
Common questions
How does it build the table of contents?
It reads the document's headings and creates a linked list pointing to each one's anchor, so readers can jump to any section.
Do the links work on GitHub and similar?
Yes — they use the same heading-to-anchor slugs those platforms generate, though duplicate heading names need care.
Is my document uploaded?
No. The contents are generated in your browser.