Markdown Table of Contents

Generates a table of contents from Markdown headings.

This tool requires JavaScript. If you don't see the editor, enable JavaScript and reload.

How to use Markdown Table of Contents

  1. 1Upload a .md or .markdown file, or paste the source directly into the editor.
  2. 2Select “Generate” to build the .md file.
  3. 3Copy the .md result, or download it as a file.

Example

Generate a table of contents from headings in your Markdown.

Input (Markdown)
# Getting started

## Install

## Usage

### CLI

### API
Output (Markdown)
## Table of contents

- [Getting started](#getting-started)
  - [Install](#install)
  - [Usage](#usage)
    - [CLI](#cli)
    - [API](#api)

FAQ

What are the file limits?
Accepted file types are .md, .markdown. Each file must be 10 MB or smaller.
Is my content private?
Processed locally in your browser; your content isn’t uploaded. When importing by URL, we first try to fetch it in your browser. If the site blocks it (CORS), we may fetch it via our backend importer to extract HTML/Markdown.