Skip to main content
FixLines

Add line numbers

Number every line of your text, or remove the numbers.

Editor

Ln 1, Col 10 lines0 words0 characters

Add line numbers: what it does

Number every line with a single click, for lists, scripts, quotes or code you want to refer to. The reverse tool strips list numbers such as “1.”, “2)” or “3:” from the start of each line.

Add line numbers: how to use it

  1. Paste or type your lines.
  2. Choose Number lines to add numbers, or Remove line numbers to take them off.
  3. Select Apply and copy the result.

Add line numbers: when to use it

  • Number the lines of a script, a quote or a poem so people can refer to a specific line.
  • Turn a plain list of tasks or steps into a numbered checklist for a document or a message.
  • Strip the numbers from a list copied from a web page before sorting or editing it.

Add line numbers: examples

Number a short list

Input

apple
banana
cherry

Result

1. apple
2. banana
3. cherry
Number the steps of a recipe

Input

Preheat the oven
Mix the batter
Bake for 25 minutes

Result

1. Preheat the oven
2. Mix the batter
3. Bake for 25 minutes

Add line numbers: questions and answers

Which format do the numbers have?

Each line starts with its number, a full stop and a space, like “1. apple”.

Will it remove a year at the start of a line?

No. A number is only removed when it is followed by a full stop, bracket or colon and a space, so “2024 results” stays as it is.

Does it number empty lines?

Yes, every line gets a number so the count matches the editor’s line numbers. Run Remove empty lines first if you do not want that.

Can I renumber a list that is out of order?

Yes. Run Remove line numbers to strip the old numbers, then Number lines to add fresh ones in sequence.

Is my text sent to a server?

No. Everything runs in your browser on your own device, so your text never leaves it.

Tools people often use together with this one.

More in Line toolsBrowse all text tools