Markdown TOC Generator
Build a linked table of contents from Markdown headings.
Works Offline
Privacy First
No Login
No API
Markdown source
Table of contents
About the Markdown TOC Generator
Paste Markdown to generate a nested table of contents with GitHub-compatible anchor slugs, adjustable heading depth and optional numbering.
Examples
Example
# Title
## SectionOutput
- [Title](#title)Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Code Comment Stripper
Dev Utilities
Remove comments from JS, HTML, Python, or SQL source.
Code Screenshot Generator
Dev Utilities
Turn code snippets into shareable syntax-highlighted images.
Line Sorter & Deduper
Dev Utilities
Sort, dedupe, and filter lines with regex include/exclude.
Regex Cheatsheet
Dev Utilities
Searchable regex syntax reference with examples and copy buttons.
Regex Tester
Dev Utilities
Test regular expressions with live match highlighting.
String Escaper
Dev Utilities
Escape and unescape strings for JSON, JS, HTML, XML, SQL, RegExp, and shell.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-09 · Runs entirely in your browser