Number the Lines of a Text
Number the lines of a text with a custom start and separator.
1.
1)
1:
1 →
Start at
Don't number blank lines
Zero-pad numbers
Input
Result
1. first line
2. second line
3. third line
This tool prefixes every line of text with a sequential number: 1. first line, 2. second line, and so on. You can set the starting number, choose the separator after the number (period, parenthesis, colon, or tab), skip blank lines so they stay unnumbered, and zero-pad numbers to match the width of the largest one.
Useful for numbered lists, preparing text for print, marking steps in an instruction guide, or numbering lines of code or config when discussing them with colleagues.
Everything runs right in your browser — your text is never sent anywhere. The result updates instantly and copies with one click.
Frequently asked questions
Yes, the "Start at" field accepts any starting number, including zero or negative values.
It left-pads every number with zeros to a consistent length (e.g. 01, 02 … 10), so numbers line up evenly in monospaced text.
Yes, turn on "Don't number blank lines" — they stay unnumbered while the numbering of the other lines stays sequential.