Add Line Numbers to Text
Number every line of a list, script, poem or code, or strip old line numbers out again.
How to use the Line Numbers Tool
- Paste your linesPaste a list, steps, a script, lyrics you wrote or code.
- Choose the formatPick 1. or 1) or [1], line labels, or your own pattern with {n} for the number. Set the start and step, pad with zeros, and skip blank lines.
- Copy the resultUse Remove numbers to take existing numbers off, for example from code copied from a website.
Example
The sample recipe has 10 lines with 1 blank line; with “Skip blank lines” on, 9 steps are numbered 1. to 9..
With zero padding, start 1 and 120 lines, numbers look like 001, 002 … 120, which sort correctly in spreadsheets.
Frequently asked questions
How do I make a custom pattern?
Choose Custom and type a pattern with {n} where the number goes, such as “Q{n}. ” or “Step {n} – ”. If you leave out {n}, the number is added at the end of your text.
Can I number in tens or count down?
Yes. Set Step to 10 to get 10, 20, 30, or use a negative step like -1 to count down from your start number.
How does Remove numbers work?
It removes a number at the start of each line, with or without a dot, bracket, colon or dash after it, and the space that follows. Numbers inside the text are kept.