How to use: Add line numbers
- Paste the lines you want to number.
- Choose the start number, separator, zero padding and whether to skip empty lines.
- Copy or download the numbered text.
What it accepts and what you get
- Input
- Text with several lines.
- Output
- Each line preceded by its aligned number.
- Where your data is processed
- Your data is processed in your browser and is not sent to our servers.
Limitations and notes
- The start number must be an integer between -1,000,000 and 1,000,000.
Frequently asked questions
How do I number the lines of a text?
Paste the lines, pick the starting number and separator, and copy or download the text with each line preceded by its aligned number.
Can I pad with zeros or skip empty lines?
Yes, both are options. The starting number must be a whole number between -1,000,000 and 1,000,000.
What start number can I use?
Any whole number between -1,000,000 and 1,000,000. Each line gets its aligned number, with the separator you choose.
When to use it
- When you need to number the lines of a text, a poem or a code snippet.
- To cite a specific line in a review.
Examples
- Start at 1
- Paste the lines, choose the separator “. ” and start at 1.
- With zeros
- Turn on zero padding so every number has the same width.
Common mistakes
- Entering a non-integer start or one beyond ±1,000,000: it is rejected.
- Numbering empty lines by accident: turn on skipping them.

