UtilitySansar
Texte

Markdown TOC Generator

Generate a clean, linked table of contents from any Markdown document. Pick the heading levels you want included, choose ordered or bullet lists, and copy a ready-to-paste TOC for your README, docs, or blog post.

Résumé de l'outil

Cet outil accepte une entrée structurée et renvoie une sortie déterministe dans le navigateur, sans envoi au serveur.

Nom de l'outil
Markdown TOC Generator
Intention d'entrée
Fournissez le contenu source à transformer, valider ou analyser.
Intention de sortie
Recevez une sortie normalisée prête à être copiée, réutilisée ou déboguée.
Entrée d'exemple
# Guide ## Install ## Configure ### Environment ### Secrets
Sortie d'exemple
- [Install](#install) - [Configure](#configure) - [Environment](#environment) - [Secrets](#secrets)
Recent inputs0

Your last 5 inputs will appear here.

9 headings detected
- [Installation](#installation)
  - [macOS](#macos)
  - [Linux](#linux)
- [Configuration](#configuration)
- [Usage](#usage)
  - [Basic example](#basic-example)
  - [Advanced example](#advanced-example)
- [Troubleshooting](#troubleshooting)

Introduction à l'outil

Generate a clean, linked table of contents from any Markdown document. Pick the heading levels you want included, choose ordered or bullet lists, and copy a ready-to-paste TOC for your README, docs, or blog post.

Vue d'ensemble de l'outil

Long Markdown files get easier to navigate when they start with a TOC. This tool parses your document, skips code fences, deduplicates anchor slugs the same way GitHub does, and builds a nested list that mirrors your heading hierarchy. Everything runs in the browser — your draft never leaves your tab.

Cas d'usage

  • Add navigation to a long README on GitHub
  • Build a docs landing page with deep-linked sections
  • Insert a sticky TOC into a Markdown blog post
  • Audit heading structure for a documentation site

Exemples d'entrée/sortie

H2-H3 range, bullet style, anchor links enabled.
Intention d'entrée
# Guide
## Install
## Configure
### Environment
### Secrets
Intention de sortie
- [Install](#install)
- [Configure](#configure)
  - [Environment](#environment)
  - [Secrets](#secrets)

Questions fréquentes

Are anchor slugs compatible with GitHub?+
Yes. The slug algorithm lowercases text, replaces spaces with dashes, strips Markdown emphasis characters, and de-duplicates repeated headings — matching GitHub's behavior.
Does it ignore code blocks?+
Yes. Fenced code blocks are skipped so `# comments` inside code don't become TOC entries.
Can I generate an ordered (numbered) list?+
Yes. Toggle the ordered option to emit 1. style markers instead of bullets.
Is my Markdown sent anywhere?+
No. Parsing happens entirely in your browser.

Explorer plus d'outils

Découvrez des utilitaires liés dans la catégorie Texte ci-dessous.

Parcourir tous les Texte

Outils liés

Utilitaires sélectionnés à la main qui pourraient vous être utiles