Add Line Numbers
Prefix each line with a sequential number.
The number given to the first line.
Numbered Output
Add Line Numbers to Text
Prefix every line with a sequential number. Choose where the numbering starts, the separator between the number and the line, and whether to pad the numbers with leading zeros for perfect alignment.
Options
- Custom starting number
- Custom separator (e.g. ". " or ": ")
- Optional zero-padding for aligned columns
- Optionally skip blank lines
Where it's useful
Number steps in a guide, label rows of data, create referenced lists, or prepare numbered code snippets for documentation and reviews.
Why zero-padding helps
When line numbers reach double or triple digits, padding shorter numbers with leading zeros keeps every line's text starting at the same column. This produces clean, monospaced alignment that is much easier to scan.
100% Private & Processed Locally
All numbering happens in your browser. Your text is never uploaded.
Frequently Asked Questions
Common questions about the Add Line Numbers.
Can I choose the starting number?
Yes. You can set the starting number, the separator after each number, and whether to pad numbers with leading zeros.
Can it skip blank lines?
Yes. There is an option to leave empty lines unnumbered.
Is the tool free and private?
Yes. It is free and all numbering happens locally in your browser.