Free Add Line Numbers to Text Online
Use this free tool to add line numbers to any text or code. Fast, private, and works directly in your browser.
Loading tool…
What is Add Line Numbers?
Add Line Numbers prefixes each line of your text with a number, with options for the starting number, separator, and zero-padding. It is handy for code listings and references. It runs entirely in your browser.
How to use this tool
- Paste your text.
- Set the start number and separator.
- Copy the numbered output.
Features
- Add a number to every line
- Choose the starting number
- Custom separator (e.g. dot, colon, tab)
- Optional zero-padding
- Runs entirely in your browser
This tool runs in your browser. Your files and text are not uploaded to our servers, and we do not store your input.
Frequently asked questions
Can I start from a number other than 1?+
Yes. Set any starting number you like.
Can I align the numbers?+
Yes. Enable zero-padding to keep the numbers a fixed width.
Is my text uploaded?+
No. Everything runs in your browser.
Related tools
Looking for more Text Tools?
Browse the full collection of free, browser-based tools.