Type a tool name, for example "keyword density" or "transcript".
Generate a clickable Table of Contents from your headings to improve dwell time and UX.
TOC Preview
Generated Code
A table of contents generator turns the headings in your article into a clickable list of links. Paste HTML, Markdown-style or plain text, choose HTML, Markdown or numbered plain text output, and copy the finished TOC. It is built for bloggers, writers and developers who want readers to reach the section they need fast.
A table of contents on a web page is a list of links that jumps readers to the sections of an article. Each link points to an anchor, which is an ID attribute on a heading. A link such as #what-is-a-sitemap scrolls the browser to the heading whose ID is what-is-a-sitemap.
The list is built from heading levels. H1 is normally the page title, H2 marks main sections, and H3 to H6 mark nested subsections. A good TOC keeps that hierarchy, so an H3 appears indented beneath the H2 it belongs to.
Search engines read headings to understand how a page is organized. Google's Search Central documentation explains that results can include links that jump to a specific section of a page, and clear headings with anchors make that easier. Nothing is guaranteed, but a TOC also helps real readers scan a long post in seconds.
You use the generator by supplying your headings, choosing a format and clicking one button. The steps below match the labels on the page.
Say your article has four headings and you keep the default H2 to H3 range. The generator reads them in order, builds a nested list and creates an anchor name from each heading's text.
| Heading in your article | Level | Anchor created |
|---|---|---|
| What Is a Sitemap? | H2 | what-is-a-sitemap |
| Types of Sitemaps | H3 | types-of-sitemaps |
| How to Submit a Sitemap | H2 | how-to-submit-a-sitemap |
| Common Errors | H2 | common-errors |
With HTML selected, you get a nav element holding a bulleted list. "Types of Sitemaps" sits in a nested list under "What Is a Sitemap?", and each item looks like <a href="#what-is-a-sitemap">What Is a Sitemap?</a>. With Markdown selected, you get lines like - [What Is a Sitemap?](#what-is-a-sitemap), with the H3 line indented. With Plain Text selected, you get a simple list numbered 1 to 4.
Now imagine the same article also had an H4 under "Common Errors". At the default Max Heading Level of H3, it is skipped. Raise the max to H4 and generate again to include it.
You read the results in two places: the TOC Preview shows how the list will look, and the Generated Code shows what to copy.
Confirm that the order and nesting match your article. Every H2 should sit at the top level, and each H3 should appear under the right parent. If a heading is missing, its level probably falls outside your min and max settings. A TOC that fits on one screen is easy to scan, so if yours runs very long, narrow the range to H2 only.
A link only jumps if the heading on your page has the same ID. If a heading already has an ID, the generator keeps it. If not, it creates one from the heading text: lowercase, with spaces and punctuation turned into hyphens. When two headings would produce the same anchor, the second gets a number such as common-errors-2. When any ID was created, a note under the preview reminds you to add that value as the heading's ID on your page.
Anyone publishing long, sectioned content benefits from a quick, accurate TOC. These are the most common situations:
It sits well among other content writing tools for planning, polishing and publishing.
The best practice is to finish your headings before generating the TOC, because any rename changes the anchor text. Regenerate after every edit so links never point to old names.
Descriptive headings make a TOC useful. "Step 3: Add the ID" tells readers more than "Next". Run important titles through a headline analyzer if you want stronger wording, and proofread them with a grammar checker because every heading becomes visible link text.
Place the list after your introduction so readers see it before the first major section. Leave H1 out unless you truly need it, since it is usually the page title.
The generator builds a list from text you give it, and it does not edit your live page. You must add the matching IDs yourself, and it does not add styling or a collapse toggle. It also does not open PDF, Word or Google Docs files. For those, use the TOC feature built into the application, or paste headings as lines starting with # to get a list here. In manual mode, each row offers H2, H3 or H4 only.
A clear table of contents helps readers and gives search engines a cleaner view of your structure. Paste your headings into the generator above, choose your format and click Generate TOC to get code you can use right away. Then finish the article itself with a tight closing paragraph.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market