Add line numbers to text

To add line numbers to text, paste it, choose the numbering style and separator, and copy the result. Existing numbers can be stripped off again just as easily.

Source: Wikipedia – Roman numerals (notation of Roman numerals, range 1 to 3,999). Updated: .

one entry per line, up to 50,000 lines
letters and Roman numerals start at 1
e.g. 10 for 10, 20, 30 …
01, 02 … up to the widest number
My Toolbox

Result

Result
1. First line 2. Second line 3. Third line
Summary
3 lines numbered, last number: 3

How it is calculated

The tool puts a running number in front of every line: “1. text”, “2. text” and so on. You set the start, step, numbering style and separator yourself.

Numbering styles

Besides digits you can use letters (a, b, … z, aa, ab) and Roman numerals (I, II, III up to MMMCMXCIX, which is 3999). A step of 10 gives the classic line numbering 10, 20, 30 known from source code, and a negative step counts backwards.

Empty lines and paragraphs

If you like, empty lines are not numbered and not counted. The option “Restart after an empty line” starts again at the start number in every paragraph, handy for lists with several sections. Leading zeros (01, 02 … 10) keep numbers aligned and sort correctly in tables.

Everything is processed in your browser, and the text never leaves your device.

Frequently asked questions

How do I number the lines of a text?

Paste the text, choose “Number the lines” and set the separator and start number. You can copy the result straight away.

How do I number in steps of ten?

Enter 10 under “Step”: you get 1, 11, 21 …; with start number 10 you get 10, 20, 30.

How do I remove numbers in front of lines?

Choose “Remove numbers”. Numbers such as 1. or 2) at the start of a line are deleted and the rest of the text stays.

Sources and legal basis

As of: · Editorial policy

Related tools