Markdown Table of Contents

Build a linked table of contents from the headings of a Markdown file, ready for a README.

How it works

Paste a Markdown document and get a table of contents with working links to each heading. Choose which heading levels to include.

Worked example

Headings # Install and ## Usage give - [Install](#install) and - [Usage](#usage).

Good to know

Common questions

Does it work on GitHub?
Yes, link style follows GitHub rules.
Are headings in code blocks counted?
No, they are skipped.
Can I choose levels?
Yes, set the top and bottom level.

More in Text.