Number Lines: Say Line 7 in a Review Instead of Counting Together
Paste the list and each non-empty line gains its number, while blank lines get none. Copy the result to a colleague and a review can refer to item 7 instead of describing the third paragraph from the top.
When numbering lines pays off
Requirements reviews, code walkthroughs, survey option checks, and translation proofreading all involve pointing at a specific line. Without numbers people say the middle one or the one with the bracket, which is easy to get wrong, especially when nobody can see each other's screen.
It also pairs with a line diff: number both versions first and you can locate a changed line quickly afterwards. The same trick works on exported logs, where you can quote line 12 in a ticket and everyone lands on the same place.
- Requirements and acceptance criteria reviews
- Code snippets and config walkthroughs
- Survey options and translation entries
How to number without confusion
Each non-empty line gets a number and a full stop. Blank lines receive no number but still consume a position, so numbering restarts at 2 after the first gap and looks like it skipped one. For consecutive numbering, delete the blank lines first or accept the positional mapping.
Numbers count up from 1 with no zero padding, so you get two digits past line 9 and three past line 99, and the text to the right will not align once the width changes. View the result in a monospace font, or pad the numbers in a spreadsheet before pasting.
- Blank lines make numbering skip; delete them for a clean run
- No zero padding, so widths change and alignment breaks
- The prefix is plain text, not Markdown list syntax
Where it stops, and what to use instead
The 1. prefix is plain text, not Markdown ordered-list syntax. Pasted into Markdown it often looks like a list, but indentation and continuation lines are not handled for you. For a real ordered list, use your editor's list command or type the number, a full stop, and a space.
It also cannot start from a chosen number, count backwards, number only selected lines, or split numbers and content into two columns. Those need a spreadsheet row function, or an editor with multi-cursor and scripting support.
- Plain-text prefix, not Markdown list syntax
- No custom start value or step
- Splitting numbers into their own column needs a spreadsheet
FAQ
Why does the numbering skip a number after a blank line?
Blank lines receive no number but still occupy a line position, so numbering restarts at 2 after the first gap and looks like a skip. Delete the blank lines before running it if you need consecutive numbers, or read the skip as a true reflection of the source layout.
Are the numbers zero-padded?
No. They count up from 1 with no leading zeros, so you get two digits past line 9 and three past line 99. View the result in a monospace font if you want the numbers to line up, or pad them in a spreadsheet first.
Will the numbered text render as a list in Markdown?
It usually looks like one, but it is not equivalent. Markdown ordered lists need a space after the number and consistent indentation across the list. This tool outputs the number, a full stop, and the content, so nesting and continuation lines still need manual adjustment.
Related tool:Number Lines