Markdown Table of Contents

Generates a table of contents from Markdown headings.

Paste text
Privacy and limitsProcessed in your browser. Files are not uploaded. Files up to 10 MB.

Local file processing

Files are processed in your browser and are not uploaded.

Read the privacy policy

Limits and compatibility

Files can be up to 10 MB.

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.