Add Line Numbers
Number lines and add a prefix or suffix to each.
Free
Runs in your browser
About this tool
Add Line Numbers puts a number in front of every line in your text. You can also add the same text before or after each line, for example quotes and commas to turn a list into code.
How to use Add Line Numbers
- Paste your lines.
- Choose the number format, prefix and suffix.
- Copy the result.
Questions people ask
How do I wrap each line in quotes?
Untick “Add numbers”, type " as the prefix and ", as the suffix. Each line becomes "item", ready for an array or SQL list.
What does zero padding do?
It adds leading zeros so all numbers have the same width, like 01 to 12. This keeps columns aligned and makes files sort correctly.
Are empty lines numbered?
Not by default. Untick “Skip empty lines” to number every line, including blank ones.
More text tools
See all 19 →
Character CounterCount characters against X, SMS and SEO limits.
Text RepeaterRepeat text many times with a separator.
Invisible CharacterCopy blank and zero-width characters.
Readability CheckerFlesch reading ease, grade level and long sentences.
Word CounterCount words, characters, sentences and reading time.
Case ConverterUPPERCASE, lowercase, Title Case, Sentence case and more.