Markdown TOC Generator
What This Tool Does
Markdown TOC Generator is built for deterministic developer and agent workflows.
Generate a nested Markdown table of contents from your document headings with GitHub-style anchor links.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/markdown-toc-generator/
For automation planning, fetch the canonical contract at /api/tool/markdown-toc-generator.json.
How to Use Markdown TOC Generator
- 1
Paste your Markdown
Drop your README or document into the input box, or load the sample to see the expected format.
- 2
Choose the heading range
Set the minimum and maximum heading levels so the table of contents covers only the depth you want.
- 3
Pick list and anchor style
Select a bulleted or ordered list, and choose GitHub or GitLab anchor slugs to match your platform.
- 4
Copy the result
Review the nested table of contents, then copy it and paste it near the top of your document.