Line Numbering Tool
Number every line of pasted text as 1., 2., 3. from any starting number, then copy the result. Free online line numbering tool.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Line Numbering Tool
Add sequential line numbers to every line of your text.
Line Numbering Tool prefixes every line of pasted text with a sequential number and a full stop — "1. ", "2. ", "3. " — counting up one per line from whatever starting number you set, which defaults to 1. It splits on newlines and numbers every line including blank ones, so the numbering always matches the line positions in the original text. Useful whenever you need to reference specific lines by number rather than by quoting them.
How to use Line Numbering Tool
Paste or type your text into the Input box, which starts with the three-line sample first, second, third that Load sample restores
Set the Start at number, which defaults to 1; each line is prefixed with its number, a period and a space, so the sample becomes 1. first, 2. second, 3. third
The Result box updates as you type with no convert button, and blank lines get a number too
Click Copy above the Result box to put the numbered text on your clipboard, or Clear to empty the Input box
Why use Line Numbering Tool
Numbering starts wherever you need
The start value is an input, so you can begin at 0, at 1, or at any offset to continue a sequence from another page.
Blank lines keep their number
Empty lines are counted rather than skipped, so the numbers stay aligned with the real line positions of the source text.
Consistent "N. " format
Every line gets the number, a period and a single space, which pastes cleanly into documents, tickets and code comments.
Common use cases
- Numbering a pasted code snippet or log excerpt before sending it to a colleague, so you can say "the problem is on line 14" and have it mean something
- Turning a plain list of steps into a numbered procedure for a runbook or checklist without hand-typing each number
- Continuing numbering across a split document — set the start value to 48 so the second half picks up exactly where the first half ended
Frequently asked questions
How do I add line numbers to text?
Paste the text and the numbered version appears immediately, with each line prefixed "1. ", "2. " and so on. Change the Start at value if you need the count to begin somewhere other than 1.
Link to answerCan I start numbering at 0 or at another number?
Yes — set Start at to any number and the first line takes that value, incrementing by 1 for each following line. Starting at 0 is common for arrays and byte offsets; starting mid-sequence is useful when continuing a numbered list from a previous section.
Link to answerAre blank lines numbered too?
Yes. Every line produced by splitting on newlines gets a number, including empty ones, so line 20 in the output is the twentieth line of your input. That keeps the numbers usable as references back into the original file.
Link to answerDoes it change my text in any other way?
No. Nothing but the number, period and one space is added to the front of each line — indentation, punctuation, capitalisation and line order are all left untouched, so you can strip the prefixes later and get the original back.
Link to answer