Add Line Numbers
Prefix every line of your text with a line number. Great for lists and code snippets.
Numbered lines make a list easy to reference and a code snippet easier to discuss. Add Line Numbers prefixes every line of your text with its number, so 'line 12' actually points somewhere.
How to use add line numbers
- 1. Paste your text or list.
- 2. Each line is prefixed with its number.
- 3. Copy the numbered text.
When to use Add Line Numbers
Reference a list
Number items so you can point to a specific one in a discussion.
Annotate a snippet
Add line numbers to code you're sharing so others can cite exact lines.
Create a ranking
Turn a plain list into a numbered one.
The numbering format
Each line gets its number, a full stop and a space: "1. text". Numbers are right-aligned, so in a list of 10 or more lines the text column still lines up (" 9." above "10."). Blank lines are numbered too, and so is a final empty line if your text ends with a line break — delete that last break if you don't want an extra number at the end.
Frequently asked questions
Does numbering start at 1?
Yes — lines are numbered from 1 in order.
Are blank lines numbered too?
Every line gets a number as it appears; remove empty lines first if you don't want them counted.
Is my text private?
Yes — it's processed in your browser.
