1.
Runs in your browserNothing is uploadedText

Add Line Numbers

Put a number in front of each line, choosing the starting number and separator, with the option to skip empty lines.

Loading tool…
Short answer

Add Line Numbers puts a number in front of every line of your text. Pick the starting number and what follows it, such as a full stop, a bracket or a tab, skip empty lines if you like, and line the numbers up neatly. It runs in your browser.

When do you need numbered lines?

Numbered lines

Numbers let people point at a line: in a script, a poem being discussed, a legal draft or a code sample. With padding on, numbers share one width, so line 9 and line 10 start their text in the same column.

Why use Add Line Numbers?

  • Refer to lines in a review. Send a draft with numbered lines so comments can say "see line 14".
  • Turn lines into a numbered list. Number a plain list with "1." or "1)" for pasting into an email.
  • Continue from any number. Start at 101 to carry on from an earlier section.

How to use Add Line Numbers, step by step

Add Line Numbers in PrintxPDF with a file loaded, options on the right and the run button below
Add Line Numbers with a file loaded: the steps below follow this screen.
  1. Paste your text into Add Line Numbers. Each line gets its own number.
  2. Choose the style. Set the first number, the separator, whether to skip empty lines and whether to pad the numbers.
  3. Copy or download. The numbered text updates as you change any setting.

Frequently asked questions

What happens to empty lines?

With "Skip empty lines" ticked they stay empty and do not use up a number. Untick it to number every line.

Can I number with a tab after the number?

Yes. Choose Tab as the separator, which is handy for pasting into a spreadsheet with numbers in their own column.

Can I remove the numbers again?

Use Find and Replace with a regular expression such as ^\d+\. to strip them.

Looking for the long version? The guides cover each of these jobs in depth.