Markdown TOC Generador Tool (Auto-create from Headings)
Automatically generate a Tabla of Contents (TOC) from Markdown headings (H2-H4, etc.). Copiar the 'editable' output and use it immediately.
Markdown TOC Generation (Entrada/Salida)
Just paste itExtracts headings from # to ####. Ignores # inside code blocks.
TOC Creation Markdown (Opciones)
Basic Configuraci?n
Advanced Configuraci?n
Heading to TOC: Usage and Examples
How to Use
-
1
Paste Markdown
-
2
Seleccionar target levels (H2 Only / H2-H4, etc.)
-
3
Copiar and paste into your document
Entrada content is processed within the browser.
Example
# Document T?tulo ## Resumen ## Usage ### Installation ### Configuration ## FAQ ## FAQ
## Tabla of Contents - [Resumen](#overview) - [Usage](#usage) - [Installation](#installation) - [Configuration](#configuration) - [FAQ](#faq) - [FAQ](#faq-2)
Notas & Tips
Specifications
Heading Extraction Rules
- Extracts # to #### Markdown headings (specified in settings)
- # inside code blocks (```) are not treated as headings
Anchor Generation Rules (Tool Predeterminado)
- Trim heading text (remove whitespace)
- Convert English to lowercase
- Convert spaces to -
- Quitar symbols (keep -)
- Collapse consecutive -- to -
- Quitar leading/trailing -
- Append -2, -3... for duplicate anchors
Notas
- TOC link behavior may vary depending on the environment (Git hosting, Markdown viewer, etc.). Editar the output as needed.
- Setting anchor style to 'Personalizado' 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 Configuraci?n to omit headings containing those characters.
Can I create a TOC without links (text only)?
Set Anchor Style to 'No Anchor' to generate a text-only TOC.