Markdown Table of Contents Generator

Generate a linked Markdown table of contents for a GitHub README or documentation. Paste Markdown or open a file, choose heading levels, and copy the nested list.

How to generate a Markdown table of contents

Paste a README or open a local Markdown file. The linked list updates as you edit the document. Copy the table of contents and paste it near the top of your Markdown. H1 headings are excluded by default, so the document title stays out of the list. Set the deepest heading to H3 for a shorter outline of a long document. Your Markdown stays in your browser.

- [Getting started](#getting-started)
  - [Install](#install)
  - [Configure](#configure)
- [FAQ](#faq)

Entries use the text of hash headings and headings underlined with equals signs or dashes. Headings in fenced code blocks are skipped. GitHub-style links keep non-Latin letters and add numeric suffixes to repeated anchors. Changing which heading levels appear leaves the links pointing at the same sections. Generate the list again after renaming or rearranging headings.