Add Line Numbers
Prefix every line in your text with sequential line numbers
About Add Line Numbers
Add Line Numbers lets you prefix every line in your text with sequential line numbers.
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.