Markdown TOC G?n?rateur Tool (Auto-create from Headings)
Automatically generate a Tableau of Contents (TOC) from Markdown headings (H2-H4, etc.). Copier the 'editable' output and use it immediately.
Markdown TOC Generation (Entr?e/Sortie)
Just paste itExtracts headings from # to ####. Ignores # inside code blocks.
TOC Creation Markdown (Options)
Basic Param?tres
Advanced Param?tres
Heading to TOC: Usage and Examples
How to Use
-
1
Paste Markdown
-
2
S?lectionner target levels (H2 Only / H2-H4, etc.)
-
3
Copier and paste into your document
Entr?e content is processed within the browser.
Example
# Document Titre ## Aper?u ## Usage ### Installation ### Configuration ## FAQ ## FAQ
## Tableau of Contents - [Aper?u](#overview) - [Usage](#usage) - [Installation](#installation) - [Configuration](#configuration) - [FAQ](#faq) - [FAQ](#faq-2)
Remarques & Tips
Specifications
Heading Extraction Rules
- Extracts # to #### Markdown headings (specified in settings)
- # inside code blocks (```) are not treated as headings
Anchor Generation Rules (Tool Par d?faut)
- Trim heading text (remove whitespace)
- Convert English to lowercase
- Convert spaces to -
- Retirer symbols (keep -)
- Collapse consecutive -- to -
- Retirer leading/trailing -
- Append -2, -3... for duplicate anchors
Remarques
- TOC link behavior may vary depending on the environment (Git hosting, Markdown viewer, etc.). Modifier the output as needed.
- Setting anchor style to 'Personnalis?' makes it easier to edit for specific environments.
- Exclude keywords are matched partially.
FAQ
I want H2 only
You can select 'H2 Only' in Target Levels.
How are anchor names determined?
The anchor generation rules for this tool are listed. You can manually edit the output to fine-tune it for your environment.
What about duplicate headings?
If multiple identical headings exist, sequential numbers like -2, -3 are added to avoid anchor duplication (e.g., #faq-2).
I want to exclude specific headings
Use the 'Exclude Keywords' in Advanced Param?tres to omit headings containing those characters.
Can I create a TOC without links (text only)?
Set Anchor Style to 'Non Anchor' to generate a text-only TOC.