Add Line Numbers
Prefix every line in your text with sequential line numbers
About Add Line Numbers
Numbers every line of the text you paste once you click Add Numbers, producing a copy-ready listing. A newline at the very end of the input adds one extra numbered empty line, so remove it if you don't want it. Handy for quoting code in reviews, documentation or chat, where readers need to refer to specific lines.
Category: Text.
Frequently asked questions
What format are line numbers in?
▾
Line numbers are right-aligned decimal integers padded to the width of the largest number, followed by two spaces and the original line content. This keeps columns aligned for any number of lines.
Can I set a custom starting number?
▾
Yes. Use the Start at field to begin numbering from any integer — useful when you want to number a code snippet that starts at line 42 of the original file.
Does it count blank lines?
▾
Yes. Every line receives a number, including empty lines, so the numbering always matches the original line positions.
Can I change the separator between the number and the line?
▾
The current separator is two spaces. If you need a different format — like a colon or tab — copy the output and use a text editor's find-and-replace to adjust it.