Add Line Numbers to Text
Paste text to put a number in front of every line. Choose the starting value, the step between numbers, and the separator, and pad numbers so they line up.
How to add line numbers
- Paste or type your text into the input box.
- Set the start number, step, and separator, and turn on padding if you want aligned numbers.
- Copy or download the numbered text.
Examples
Number a short list
apples bananas cherries
1. apples 2. bananas 3. cherries
Frequently asked questions
Can I start counting from a number other than 1?
Yes. Set any start value, including 0, and the numbers count up from there using your chosen step.
How does the padding option work?
Padding makes every number the same width so the text lines up. With a visible separator it pads with zeros, like 01 and 02, and with a space separator it pads with spaces.
Can I skip blank lines?
Yes. Turn on skip blank lines and empty lines stay empty, while numbering stays continuous on the lines that have text.
Does it keep my Windows or Mac line endings?
Yes. CRLF, CR, and LF line endings are all preserved, so the numbered text keeps its original breaks.
Is my text private?
Yes. Everything runs in your browser and nothing is uploaded to a server.
Related tools
Remove Line Breaks
Remove line breaks and paragraph breaks from text online. Flatten copied text into one line, keep spaces tidy, then copy the result. Free and private.
Sort Lines
Sort lines of text alphabetically or numerically online. Reverse the order, ignore case, and remove duplicate lines, then copy the result. Free and private.
Remove Duplicate Lines
Remove duplicate lines from text online and keep the first of each. Options for case sensitivity and trimming whitespace. Free, instant, and private.
Word Counter
Free online word counter. Paste text to count words, characters, sentences, paragraphs and reading time instantly. Works in your browser and stays private.
Bullet List Maker
Turn lines of text into a bullet or numbered list online. Pick dash, asterisk, dot, arrow or numbers, add indent, then copy. Free and private.
Caesar Cipher
Encode and decode text with the Caesar shift cipher. Pick any shift, see the result live, and brute force all 25 shifts. Runs entirely in your browser.