Line Numbering
Add line numbers to text with your own start, step, separator, zero padding and blank-line skipping, or strip existing numbers. Free, in your browser.
About Line Numbering
Line Numbering adds numbers to the start of every line of your text, or strips numbers that are already there.
Your style
Choose the start number, the step, the separator (. ) : or a tab) and zero padding such as 01, 02.
Skip blank lines
Leave empty lines unnumbered so the count matches the real lines of text.
Remove numbers
Strips numbers like 1. 2) or 3: from the start of lines. Check lines that really begin with a number, such as '10 apples'.
Uses
Referencing lines in code, legal text, poems or transcripts.
Private
Your text stays in your browser. Nothing is uploaded.
How to use Line Numbering
- Paste your text, or press Open .txt file.
- Set Start at, Step and the Separator, and tick Pad with zeros or Skip blank lines if you need them.
- Press Add numbers, or Remove numbers to strip existing leading numbers.
- Check the first and last lines, then press Copy or Download .txt.
Help & FAQ
Can we start numbering from a different number?
Yes. Set Start at. Negative numbers work too: starting at -2 gave -2, -1, 0, 1, 2.
Does it number blank lines?
Yes by default, including the empty last line after a final line break. Tick Skip blank lines to leave them out.
Can we number by tens?
Yes. Set Start at 10 and Step 10 to get 10, 20, 30.
What does Pad with zeros do?
It pads every number to the width of the largest one, so 8 to 19 are shown as 08 to 19.
What separator can we use?
Anything you type, such as a full stop and space, a colon, a tab or a bracket. An empty separator makes the number touch the text.
How do we remove numbers that came with copied text?
Press Remove numbers. It strips a leading number followed by a full stop, bracket, colon or space.
Why did Remove numbers delete a real number in our text?
The tool cannot tell. 10 apples became apples and 1,000 items became ,000 items in our test. Use it only on text that was numbered.
Are numbers in square or round brackets removed?
No. [3] y and (4) z were left unchanged in our test.
Can we use a decimal step?
No. 2.5 was applied as 2 in our test. A step of 0 numbers every line 1.
Does it handle Windows line endings?
Yes. CRLF text was numbered without extra blank lines.
Can we save the result?
Yes. Use Copy or Download .txt.
Is our text uploaded?
No. The numbering runs in your browser.