About the Add Line Numbers
Add line numbers to text, code or lists. Choose the starting number and format (1. 1) 1:), align numbers, and skip blank lines if you like.
Key features
- Number every line instantly
- Choose the start number
- Formats: 1. 1) 1: 1 - or tab-separated
- Right-align numbers so text lines up
- Skip blank lines without breaking the sequence
- Copy or download the result
Number lines in seconds
Line numbers make it easy to refer to a specific step, a line of code, a line in a poem or script, or a row in a list. Paste your text, choose a format and copy the numbered result.
Format examples
| Format | Result |
|---|---|
1. text | 1. Preheat the oven |
1) text | 1) Preheat the oven |
1: text | 1: Preheat the oven |
1 - text | 1 - Preheat the oven |
1<tab>text | 1 Preheat the oven (pastes into two spreadsheet columns) |
Aligned numbering
Without alignment:
9. Ninth line
10. Tenth line
With alignment:
9. Ninth line
10. Tenth line
Common uses
- Code reviews and documentation: reference "line 42" precisely.
- Legal and academic texts: cite specific lines in transcripts, poems and contracts.
- Recipes and instructions: turn plain lines into numbered steps.
- Spreadsheets: use the tab format to create an index column.
Related tools
Sort the lines first with Sort Text Lines, remove blanks with Remove Empty Lines, or add custom prefixes with the String Builder.
How to use the Add Line Numbers
- Type or paste your text into the input box.
- Choose the options you want.
- The result updates instantly as you type.
- Copy the output or download it as a .txt file.