How to Add Numbers to a List of Lines Automatically

June 24, 2026 · 4 min read
Try the toolNumber Lines →

You have a list of items and you want each one numbered — turning a plain list into an ordered, referenceable one. Typing the numbers by hand is tedious and breaks if you add or remove items. Here is how to add sequential numbers to any list automatically, with control over where the numbering starts and how it looks.

The basic operation

Numbering a list means putting a sequential number at the start of each line: the first line gets 1, the second gets 2, and so on. A line-numbering tool does this in one step — paste your list, and it returns the same list with numbers prepended. This turns an unordered set of items into a numbered sequence, useful for steps in a process, ranked lists, referenceable entries, or any list where the position matters. And because it is automatic, the numbering stays correct no matter how long the list is.

Choosing the starting number

Numbering does not have to start at 1. You might start at 0 for a zero-indexed list, or at a higher number to continue a list that started elsewhere — if you have already numbered items 1 through 20 in one document and need the next batch to continue from 21, you set the start to 21. This flexibility means you can number sublists, continue across sections, or match an existing numbering scheme without manual counting.

The separator and format

What goes between the number and the text is up to you. A period and space (1. item) is the most common. A parenthesis (1) item) suits some styles. A colon, a dash, or a tab works for others. Choosing the separator lets the numbered output match whatever format your document or data needs, rather than forcing one style. This matters when you are generating input for another system that expects a specific format.

The TextCaret Number Lines tool adds sequential numbers to your list with your choice of starting number, separator, and zero-padding — turning any list into a clean numbered sequence in your browser.

Zero-padding for alignment

When a list runs into double or triple digits, plain numbering misaligns: 1, 2, 3 line up differently than 10, 11, 12 because of the extra digit. Zero-padding fixes this by adding leading zeros so every number has the same width — 01, 02 ... 10, 11 ... 100. This keeps the numbers aligned in a fixed-width column and, usefully, makes them sort correctly when treated as text (without padding, text sorting puts 10 before 2). For long lists that need to stay aligned or sortable, zero-padding is the option to enable.

Try the toolNumber Lines →