Generador de TOC Markdown
Genera una tabla de contenido anidada a partir de los encabezados de cualquier documento Markdown.
Respuesta rápida: Generador de TOC Markdown: crea una tabla de contenidos anidada a partir de los encabezados de cualquier documento Markdown. Funciona íntegramente en el navegador, gratis y sin registro.
Última actualización
Bueno saber
The whole value of a generated table of contents is that its anchor links match the slugs your renderer will actually create. This tool follows GitHub's slugging rules: lowercase the heading, strip punctuation, and replace spaces with hyphens — so ## Getting Started becomes #getting-started. That compatibility is why the links work in a README without any manual anchor tags.
Nesting mirrors your heading levels, so a clean, sequential outline (H1 → H2 → H3, no skipped levels) produces a clean, indented list. If your document jumps from H2 straight to H4, the TOC faithfully reproduces that gap — which is a good prompt to fix the underlying structure rather than the list.
One edge case to watch: duplicate heading text. GitHub disambiguates repeated headings by appending -1, -2 and so on to the later slugs, but a standalone generator can only emit the base slug. If your document has two sections named "Overview," adjust the second link by hand so it doesn't jump to the first.
Regenerate the TOC whenever you add, rename or reorder sections — a stale contents list with dead anchors is worse than none. If you're still drafting, the live split-pane Markdown Editor is a faster place to shape headings before you finalize the outline here.
Preguntas frecuentes
- ¿Es gratuito el generador de tabla de contenido?
- Sí, es gratuito sin necesidad de registro.
- ¿Son compatibles los slugs con GitHub?
- Sí, utilizamos el slug en minúsculas + guion de GitHub para que los enlaces de anclaje funcionen en tu README.
- ¿Se suben mis documentos?
- No, la generación se realiza en tu navegador.
- ¿Saltará el H1?
- No, se incluye cada nivel de encabezado. Elimina la línea H1 manualmente si no deseas que esté en la tabla de contenido.
- ¿Qué pasa si dos encabezados tienen el mismo texto?
- GitHub añade -1, -2, … para desambiguar. Esta herramienta actualmente emite el slug base; ajústalo manualmente si es necesario.