Add line numbers to text

Number each line, e.g. to turn lines into a numbered list.

Input

Output

Numbered 7 lines
Words 28Characters 193Without spaces 161Sentences 4Lines 9Paragraphs 2Reading time < 1 min

About Add Line Numbers

Turn plain lines into a numbered list, label lines of a script or log so you can refer to them, or prepare steps for a document. Pick the style that fits: “1. ”, “1) ”, “1: ”, “1 - ”, “[1] ” or a number followed by a tab, which pastes neatly into spreadsheet columns.

You can start from any number, leave blank lines unnumbered, and pad numbers so they line up. It all happens in your browser.

How to use it

  1. Paste your text into the Input box.
  2. Choose a Format and the number to Start at.
  3. Switch on Skip empty lines or Align numbers if you need them.
  4. Copy or download the numbered text; the note shows how many lines were numbered.

Frequently asked questions

What does Align numbers do?

It pads shorter numbers with spaces so they all have the same width. Lines 1 to 9 then line up with lines 10 and above.

Can I continue numbering from an earlier list?

Yes. Set Start at to the next number, for example 21, and numbering continues from there.

How do I remove the numbers again?

Use Find and replace with the Regular expression option, finding ^\d+\. (or the pattern for the style you used) and replacing it with nothing.

Related tools