Markdown Table of Contents Generator

Paste a README or Markdown article and get a linked table of contents using GitHub-style anchors.

Also called: Markdown TOC generator, README table of contents.

FreeNo sign-upRuns in your browser
DEVELOPER

Markdown Table of Contents Generator

Paste a README or Markdown article and get a linked table of contents using GitHub-style anchors.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Markdown Table of Contents Generator (14 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Markdown Table of Contents Generator

Paste a README or Markdown article and get a linked table of contents with GitHub-style anchors, down to the heading level you choose, as dashes, stars or numbers.

How to use the Markdown Table of Contents Generator

  1. Enter your textType or paste markdown.
  2. Pick the optionsdeepest heading and bullet (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the Markdown Table of Contents Generator gives for it (produced by the tool itself, not typed by hand).

Markdown
# Title ## Install ## Usage ### CLI ### API
Deepest heading
H3
Bullet
- dash

Result:

- [Title](#title)
  - [Install](#install)
  - [Usage](#usage)
    - [CLI](#cli)
    - [API](#api)

Good to know

What you need
You type or choose: Markdown
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Do the links work on GitHub?

Yes, they use GitHub's anchor format.

Is the H1 included?

Choose how deep the list goes.

More tools in Developer

See all Developer tools