Markdown TOC Generator

Paste your Markdown and get a Table of Contents with GitHub-compatible anchor links. Supports H1–H6 headings.


        

How Anchor Links Work

GitHub converts headings to anchor links by: lowercasing the text, replacing spaces with hyphens, and removing special characters (except hyphens). For example, ## Getting Started becomes #getting-started.

This tool generates a TOC you can paste at the top of your README or documentation page. The links will work correctly on GitHub, GitLab, and most Markdown renderers.