Skip to content

Add Line Numbers

Number every line of a text, or strip the numbers off a numbered list.

Line numbers

Runs in your browser — nothing you enter is sent to a server.

How the Add Line Numbers works

Paste your lines and choose Add: each line gets a number, from the start number you pick, followed by a dot, bracket, colon, tab or space. Line up the numbers to pad short ones with spaces, and skip empty lines if they shouldn't be counted.

Choose Remove to take numbers off a copied list. A number at the start of a line is removed when a dot, bracket, colon, dash, tab or space follows it.

Examples

Numbering a list

a and b on two lines become 1. a and 2. b. Starting at 5 with empty lines skipped, "a, (empty), b" becomes "5. a", an empty line and "6. b".

Removing numbers

1. a, 2) b and 3: c become a, b and c. A word such as v2 is left alone.

Frequently asked questions

Can I number code for a document?

Yes. Choose a tab or space after the number and turn on "Line up numbers", so line 9 and line 10 stay aligned.

Will removing numbers delete a year at the start of a line?

It can: a line such as "2026 was fine" looks like a numbered line. Check the result if your lines start with numbers that belong to the text.

Is my text uploaded?

No. It is processed in your browser.

Text Sorter

Sort lines alphabetically, in reverse, by length or with numbers in natural order.

Text Tools

Remove Duplicate Lines

Delete repeated lines from a list, keeping the first occurrence and the original order.

Text Tools

Find and Replace

Find and replace text, with whole-word, case-sensitive and regular expression options.

Text Tools