Add Line Numbers
Prefix every line of your text with a number. Set where the count starts, choose a separator, pad with leading zeros, and skip blank lines.
Numbered live as you type. Nothing leaves your browser.
Options
Separator
0 lines · 0 numbered
How to add line numbers to text online
Paste your text
Drop or type your text into the input box. Each line is numbered live below as you type.
Set the starting number
Enter the number the first line should start from, and every line after it counts up by one.
Choose a separator and options
Pick a dot, parenthesis, or colon separator, then toggle leading-zero padding and skip blank lines to taste.
Copy the result
Check the line count above the output and click Copy to clipboard.
Why use this tool
Numbers update as you type
Every line is renumbered the instant you edit the text or change an option, with no run button to press.
Start from any number
Begin the count at 1, 0, 100, or wherever you need, and the rest of the lines follow in sequence.
Three separator styles
Format each number as a dot (1.), a parenthesis (1)), or a colon (1:) to match the list style you want.
Aligned leading-zero padding
Padding sizes every number to the width of the largest one, so a list running to 120 lines prints 001 through 120 and stays aligned.
Skip blank lines
Leave empty lines unnumbered while the count advances only on lines that carry content, keeping the original gaps in place.
Runs entirely in your browser
Everything happens on your device. Nothing is uploaded, and it keeps working offline once loaded.
About this tool
This tool numbers the lines of any block of text. It splits your input on line breaks, then walks down the list adding a number to the front of each line, counting up by one as it goes. You control where the count starts, which separator sits between the number and the text, whether the numbers are padded with leading zeros so they line up, and whether empty lines are numbered or left alone.
The separator can be a dot (1.), a parenthesis (1)), or a colon (1:), matching the ordered-list style you need. Leading-zero padding sizes every number to the width of the largest one, so a list that runs to 120 lines prints as 001 through 120 and stays aligned in a fixed-width column. Skip blank lines is handy for numbered poetry, transcripts, or code where you want the numbering to track only the lines that carry content while the blank gaps stay put. Numbers update the instant you type or change an option, and the count above the output shows how many lines went in and how many were numbered.
Everything happens in your browser, so even a long document never leaves your device. Once you have numbered the lines you can reorder them with the line sorter, clear stray indentation and trailing spaces with the whitespace remover, or check the totals with the word counter.
Frequently asked questions
- How does adding line numbers work?
- Paste your text into the input box. The tool splits it into lines, adds a number to the front of each one starting from the number you set, and shows the result below. It renumbers instantly whenever you edit the text or change an option, and the copy button puts the numbered text on your clipboard.
- What do the separator options do?
- The separator is the character that sits between the number and the line text. Dot gives you 1. line, parenthesis gives you 1) line, and colon gives you 1: line. Pick whichever matches the ordered-list or outline style you are working in.
- What does skip blank lines do?
- With skip blank lines on, empty or whitespace-only lines are left exactly as they are and are not given a number, and the count only advances on lines that contain text. With it off, every line is numbered, including the blank ones.
- Does leading-zero padding change the numbers?
- No. Padding only adds zeros in front so the numbers share a common width and line up neatly, for example 007 instead of 7 in a list that reaches three digits. The underlying count is unchanged.
- Is my text uploaded anywhere?
- No. Everything runs in your browser. Your text never leaves your device, never touches a server, and is not stored or logged.
- Is there a limit on how much text I can number?
- There is no hard limit. The tool comfortably handles tens of thousands of lines. For very large inputs you may notice a brief pause while your browser renumbers the text.
Related tools
Line Sorter
Sort lines alphabetically or in natural order, shuffle them, remove duplicate lines, trim whitespace, and reverse line order.
Whitespace Remover
Clean up messy text by trimming lines, collapsing extra spaces, removing blank lines, and stripping line breaks.
Word Counter
Count words, characters, sentences, and paragraphs, plus keyword density and a readability grade.
Alternating Case Generator
Turn text into aLtErNaTiNg caps, the mocking SpongeBob style.
Case Converter
Switch text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.
Email Extractor
Pull every email address out of any text, then deduplicate, sort, lowercase, and copy the clean list.