← All text tools

Table of Contents Text Generator

Make a plain text table of contents with dot leaders and aligned page numbers from a list of headings, with indent levels for sections and subsections.

  • Free
  • No sign-up
  • Works on any device

About Table of Contents Text Generator

A contents page in plain text lines up the headings on the left and the page numbers on the right, joined by a row of dots. Type each heading with its page number at the end, indent subheadings with two spaces per level, and choose the total width. The generator fills the space in between with dots, dashes or underscores so every page number ends in the same column, wraps headings that are too long and can number the sections 1, 1.1, 2 automatically. Use a monospaced font when you paste it, and wide characters count as two columns.

How to use Table of Contents Text Generator

  1. Type one heading per line with its page number at the end.
  2. Indent subheadings, then set the line width, the leader and the indent per level.
  3. Copy the result into a monospaced document or download it.

Why use this tool?

Also known as

Frequently asked questions

Why do the page numbers not line up in my document?

The dots only align in a monospaced font such as Courier or Consolas. In a proportional font the characters have different widths.

Can I number the sections automatically?

Yes. Tick the numbering option and top level headings become 1, 2, 3 with subheadings 1.1, 1.2 and so on.

What happens to a very long heading?

It wraps onto a second line with a small indent, and the dots and page number go on the last line.

Is Table of Contents Text Generator free?

Yes. Table of Contents Text Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Table of Contents Text Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools