πŸ“‘Auto-generate TOC from markdown

Auto-generate TOC from markdown

Stop Building Document Tables of Contents by Hand

Adding a table of contents to a blog post, Notion doc, or README means scanning every heading and manually building a link for each one β€” and it only gets more tedious as the document grows or headings change. This tool reads any text with markdown headers (#, ##, ###) and instantly generates an indented table of contents that matches the heading levels.

Each entry becomes a markdown list item with an anchor link, and if the same heading appears more than once, a number is automatically appended so links never collide. Hit copy and paste the result straight into your document.

Especially handy for technical docs, blog posts, meeting notes, and long reports with lots of headings.

Frequently Asked Questions

What happens if there are no headers?

If the text has no markdown headers (#, ##, ###), a notice appears and no TOC is generated.

Do duplicate headings cause broken links?

No β€” repeated headings automatically get a suffix like -1, -2 so every link stays unique.

Where can I use the generated TOC?

Anywhere markdown is supported β€” GitHub READMEs, Notion, blogs, and more.