Add Line Numbers

Paste your text and each line gets a number. Choose where the numbering starts, how much it goes up by, and what comes after the number.

Use the tool

Loading the tool…

About Add Line Numbers

Number each line of text. Choose the style: a dot, a colon, a bracket, a tab, a space or a pipe after each number. Set the first number, so you can start at any value.

Worked example

Paste three lines and choose "1." as the style, starting at 1. The output reads 1. first line, 2. second line, and so on.

Limits

The numbers are added as text. Check the result if you paste it into a program that reads line numbers differently.

How to use Add Line Numbers

  1. Paste your text.
  2. Set the first number, the step and the separator after each number.
  3. Optionally line the numbers up or skip blank lines, then copy the result.

Good to know

  • Windows, Mac and Unix line breaks are all recognised. The result uses plain line breaks.
  • When blank lines are skipped, they stay in the text without a number and do not use up a number.
  • Lining up pads the numbers on the left with spaces so the text after them starts in the same column.
  • The first number can be from -1,000,000 to 1,000,000 and the step from -1,000 to 1,000.

Frequently asked questions

Can I count down?

Yes. Use a negative step, for example a first number of 10 and a step of -1.

Does an empty last line get a number?

Yes, unless you tick the box to skip blank lines. A text that ends with a line break has an empty last line.

Is anything I type saved or sent?

No. The work happens in your browser on this page, and nothing is stored or sent to us.