Toolstia / Markdown table of contents generator

Markdown table of contents generator

Paste Markdown and get a table of contents built from its headings. Each entry can link to its heading with a GitHub style anchor, and you can pick the heading levels and a bullet or numbered list.

Links use the GitHub style: the heading is made lower case, punctuation is removed and spaces become hyphens. Repeated headings get -1, -2 and so on. Headings inside code blocks are ignored. Only headings that start with hash marks are read.

How it works

  1. Paste your Markdown.
  2. Choose the heading levels and list style.
  3. Copy the table of contents into your README.

Anchor links

Links follow the GitHub rule: lower case, punctuation removed and spaces turned into hyphens. Repeated headings get -1, -2 and so on.

Code blocks

Lines that start with a hash inside fenced code blocks are not headings, and the tool skips them.

Levels

Choose which levels to include, for example H2 to H3. The list is indented by how deep each heading is.

Plain text

Turn links off to get a simple outline of headings.

Questions

Is my text sent anywhere?

Everything happens in your browser, and nothing you enter is sent anywhere.

Will the links work outside GitHub?

They work where the site makes anchors the same way, such as GitLab and many static site tools. Some sites differ slightly.

Are underlined headings supported?

Only headings that start with hash marks are read.