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
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 -…
Sum Calculator: Add a List of Numbers →
Paste numbers separated by commas, spaces or new lines and get the exact total,…
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.…
Power of 10 Calculator →
Work out 10 to any power, raise any number to a power such as…
Power of 2 Calculator →
Calculate 2 to any power up to 2^1000 exactly, or find the nearest power…
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.
Find Minimum Number →
Find the smallest value in a list of numbers, including decimals and negatives.