Add Line Numbers to Text
Prefix every line of text with a line number. Free, private and instant.
How to use the Add Line Numbers to Text
- Paste your text with one item per line.
- Choose the number to start from and the separator, such as a full stop and space.
- The numbered lines appear as you type, with Copy and Download .txt buttons.
Example
Worked example (run through this tool)
- Input: alpha, beta, gamma on three lines
- Result: 1. alpha, 2. beta, 3. gamma (start at 1, separator ". ")
Limitations
- Every line is numbered, including empty ones.
- Numbers are plain text, so they will not update if you edit the list later.
- It does not align numbers when the count passes 9, 99 and so on.
About this tool
Number each line of a block of text or code. Set the starting number and separator.
Add Line Numbers to Text is part of ToolStack Hub's Text Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Frequently asked questions
Is the Add Line Numbers to Text free?
Yes. Add Line Numbers to Text is completely free with no sign-up, limits or watermarks.
Is my data private when I use the Add Line Numbers to Text?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.