Markdown Table of Contents (TOC) Builder

Paste Markdown to generate an anchored table of contents with duplicate-heading handling and depth control.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/markdown-toc" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/markdown-toc" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Markdown Table of Contents (TOC) Builder</a></div>

Anchor behavior

The generator creates GitHub-style slug links from heading text and adds a numeric suffix when the same heading appears more than once. It intentionally does not rewrite your document.