Add Line Numbers
Prefix every line of text with a sequential number.
Input
Output
Add numbering to a list or code snippet, with a custom start value, separator and optional zero-padding.
How to use
- Paste your lines of text.
- Set the starting number and separator.
- Copy the numbered output.
Frequently asked questions
- Can I start from zero?
- Yes, set any start value including 0 or a negative number.
- What does zero-padding do?
- It pads numbers with leading zeros so every line number has the same width.