Markdown TOC Generator

Build a table of contents from Markdown headings with GitHub-accurate anchor slugs, including the -1 suffix on duplicate headings.

Writing & textMarkdownTocAnchors
Markdown TOC Generator screenshot

Build a table of contents from Markdown headings with GitHub-accurate anchor slugs, including the -1 suffix on duplicate headings. ANCHORSDUPLICATE HANDLINGMARKDOWN + HTMLCLIENT-SIDE

Anchors use GitHub's rule: lowercase, spaces to hyphens, drop everything that is not a letter, digit or hyphen. Duplicate headings get the -1, -2 suffix GitHub appends.


      

    

More tools