Add line numbers
Add numbers at the start of each line with your choice of start, separator and zero padding.
AvailableIn your browserInput: Text
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.
Suggested next steps
Related tools
- Available
Sort lines alphabetically
Sort lines A→Z or Z→A with proper language ordering and numbers sorted as numbers.
AvailableIn your browser - Available
Remove empty lines
Remove blank lines from a text, or keep just one between blocks, and copy the cleaned result in one click.
AvailableIn your browser - Available
HTML, CSS & JavaScript formatter
Pretty-print HTML, CSS and JavaScript with Prettier. It only formats: it never runs the code or checks its security.
AvailableIn your browser - Available
Word counter
Count words, characters, sentences and paragraphs instantly.
AvailableIn your browser

