# Markdown TOC Generator > A free table of contents generator for Markdown that runs in the browser: paste a README, a docs page or a blog post (or open a .md file) and get a nested, linked table of contents using the anchors GitHub, GitLab or Pandoc/Quarto generate, plus a check of the headings. Nothing is uploaded. https://markdown-toc-generator.skillsafe.ai/ ## What it does (free, no sign-in, nothing uploaded) - Reads headings written with # (ATX, with or without closing #s) and headings underlined with === or --- (setext). Skips fenced code blocks (``` and ~~~), indented code, YAML/TOML front matter and HTML comments, so a # inside a shell example is never a heading. - Makes each heading's anchor the way the chosen site does. GitHub: lower case, every punctuation mark, symbol and emoji removed except - and _, each space becomes a hyphen. GitLab: lower case, non-word characters removed, spaces become hyphens, runs of hyphens merged. Pandoc/Quarto: letters, digits, _ - . kept, whitespace becomes a hyphen, everything before the first letter removed, "section" if nothing is left, and a trailing {#id} is used as the anchor. Repeated headings get -1, -2 endings. - Writes the table as a Markdown list (bullets or numbers, 2/3-space or 4-space nesting) with an optional heading, or as an HTML `