Add Line Numbers
Put a number at the start of every line of text, with the starting number, separator and zero padding you choose, and the option to skip blank lines.
How to add line numbers to text
Paste your text
Paste or type it into the box, or press Try an example.
Choose the numbering
Set the first number, what goes between the number and the text, and whether to skip blank lines or pad numbers with zeros.
Copy or download
Copy the numbered text.
Worked example
This is what Add Line Numbers gives for its own sample values. Open the tool above and change anything to try your own.
Your text
First line Second line Fourth line
- Start at
- 1
- Between the number and the text
- A full stop and space (1. text)
- Skip blank lines
- Yes
- Pad numbers with zeros (01, 02...)
- No
Numbered text
1. First line 2. Second line 3. Fourth line
About Add Line Numbers
Put a number at the start of every line. Choose where to start, the character between the number and the text, whether to skip blank lines and whether to pad numbers with zeros so they line up.
FAQs
Can I start at a number other than 1?
Yes. Set the starting number in the options.
Are blank lines numbered?
Not by default. Untick the option to number them too.
Can I remove the numbers again?
Use Find & Replace with a pattern, or paste the text into a spreadsheet and drop the first column.