SuperSEOPlus

Website Management Tools

Table of Contents Generator

Paste HTML or Markdown and get a nested table of contents built from its headings, as an HTML list or a Markdown list, ordered or unordered, limited to the heading levels you choose. For HTML, headings that have no id attribute are given one so the links work, and the tool returns your HTML with those ids added. Duplicate headings get numbered ids. It reads the text you give it and nothing else: it does not fetch pages and does not check that your final page uses the same ids.

How to use it

  1. Paste the HTML or Markdown of your article.
  2. Choose the heading levels and the output format.
  3. Copy the table of contents and, for HTML, the version with ids added.

Example

<h2>Setup</h2><h3>Install</h3> gives a list with “Setup” containing a nested “Install”, linking to #setup and #install.

Writing headings that work

Clear, descriptive headings make a better contents list. See the on-page SEO checklist for heading advice.

Questions

Why do headings need ids?

A table of contents link such as #setup jumps to the element with id="setup". Without matching ids the links do nothing.

Does a table of contents help SEO?

It helps readers move through long pages, and search engines may show jump links to sections in some results. It is not a ranking factor on its own.

How are the ids made?

From the heading text: lowercase, accents removed and spaces turned into hyphens, with a number added to duplicates.

Can I use it for a WordPress post?

Yes: paste the post HTML, copy the list, and add the ids to your headings if your theme does not. Some plugins generate tables of contents automatically.

Is my content uploaded?

No. It is processed in your browser.

Get practical SEO tips by email

Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.