Add Line Numbers to Text
Add sequential line numbers to every line, with a chosen start, separator, and zero padding.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Processed locally in your browser. Your text never leaves this tab.
How to Use Add Line Numbers to Text
- Paste your text. Each line will get its own number.
- Set the options. Choose the starting number, the separator style, and how many digits to zero pad to for a neat aligned column.
- Add the numbers. Every line is prefixed with its number in order.
- Copy the result. Click Copy result. It all runs in your browser.
Frequently Asked Questions
Can I start numbering from something other than 1?
Yes. Set the starting number to any value, including 0, and the lines count up from there.
What does zero padding do?
It pads each number with leading zeros to a fixed width, so 1 becomes 01 or 001. That keeps the numbers aligned when the count reaches double or triple digits.
Which separators can I use?
A period, a parenthesis, a colon, a tab, or a plain space between the number and the line, so you can match the style you need.
Does it number blank lines?
Yes. Every line is numbered in order, including blank ones, so the numbering matches the line positions exactly.
Is my text uploaded?
No. The numbering runs in your browser and your text never leaves the tab.
Related Tools
Duplicate Line Remover →
Strip duplicate lines from text. Case toggle, trim-before-compare, optional sort, stats. Free, offline, client-side,…
Calculate Number Divisors →
Calculate Number Divisors and Find all divisors of any positive integer, instantly. Free, offline,…
Calculate Number Product →
Calculate Number Product - Multiply any list of numbers, instantly. Free, offline, client-side -…
Calculate Number Sum →
Calculate Number Sum Add any list of numbers, instantly. Free, offline, client-side - with…
Change Number Base →
Convert integers between bases 2-36 (binary, octal, decimal, hex). Arbitrary precision via BigInt. Free,…
Check Number Palindrome →
Check whether a number is a palindrome in strict or digits-only mode, with nearest…
Convert Number to Negadecimal →
Convert numbers to negadecimal (base -10) and back. BigInt for arbitrary precision. Step-by-step derivation.…
Convert Number to Power of Ten →
Convert any number to scientific, engineering notation, and metric prefix. Power-of-10 ranges, BigInt-exact powers.…
Convert Number to Power of Two →
Find nearest power of 2, binary form, bit width, IEC prefix (Ki/Mi/Gi/Ti). BigInt up…
Create Number Palindrome →
Create palindromes from any number - 5 modes including mirror, reverse-and-add (196 problem), next/previous…
Email Subject Line Tester →
Score email subject lines - length, spam triggers, emoji count, inbox preview. Tips to…
Find Maximum Number →
Find the largest value in a list of numbers, including decimals and negatives.