Add Line Numbers to Text
Number every line of text with a custom start and separator.
Number every line of text with a custom start and separator. Free, instant and private in your browser.
Loading the interactive tool… This page needs JavaScript to run the Add Line Numbers to Text.
How to use Add Line Numbers to Text
- Paste or type your text into the editor.
- Choose the transformation or options you need.
- Run the tool and review the result.
- Copy the finished text into your document, CMS, or project.
How Add Line Numbers to Text works
The tool puts a number in front of every line of your text. You choose the starting number and what follows it: a period and space, a bracket and space, a colon and space, or a tab. Numbers go up by one for each line, empty lines are numbered as well, and the start value may be any whole number, including 0 or a negative one.
Worked example
Input: lines a, b, c with start 5 and colon separator → Output: 5: a, then 6: b, then 7: c on separate lines.
Common uses
- Number lines of code or a poem for discussion.
- Reference specific lines in a review comment.
- Create an ordered list from plain lines of text.
Best for
- writing and editing
- social media text
- content cleanup
Tips for better results
- Choose a tab separator to paste into spreadsheets.
- Paste representative text rather than a small sample when checking counts or formatting.
- Review the result before replacing your original content.
- Keep a copy of important source text before bulk transformations.
Frequently asked questions
Can I start from a different number?
Yes, set any starting number.
Is my data sent to a server?
No. This tool runs in your browser, so what you enter stays on your device.
Do I need an account to use Add Line Numbers to Text?
No account or sign-up is needed. Just open the tool and use it.
Related tools
- Word Counter — Count words, characters, lines, sentences and reading time.
- Fancy Text Generator — Turn plain text into stylish Unicode fonts for bios and posts.
- Line Break Remover — Convert multiline text into paragraphs.
- Remove Accents from Text — Strip diacritics and accents from letters.
- Remove Numbers — Strip all digits from text.
- Text Diff — Compare two texts line by line.