Add Line Numbers to Text
This tool adds a number to the start of every line of text. You choose where to start, what comes after the number, and whether to pad and skip empty lines.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Add Line Numbers to Text online
- Paste the text. Type or paste your lines.
- Set the start and separator. Number to start from and what follows it.
- Choose padding. Pad with zeros or skip empty lines.
- Copy the result. Copy or save the numbered text.
Why use this free Add Line Numbers to Text
- Any start number
- Five separators
- Zero padding
- Skip empty lines
- Tab for spreadsheets
- Share by link
What it does
Paste a text and each line gets a number in front of it, such as 1. first and 2. second. Numbering helps when you discuss a text, quote lines of code or lyrics, or check that nothing was lost. You can start at any number, including 0, and numbers can also count down by starting low and using negative numbers.
Separators
After the number you can add a full stop and space, a bracket, a colon, a tab or a space. The tab is useful when you paste into a spreadsheet, since each number lands in its own column. The full stop is good for lists in documents. Pick the one that matches where the text is going.
Padding and empty lines
With padding on, the numbers are given leading zeros so that they line up, such as 01 and 10 in a list of ten lines. With skip empty lines on, blank lines are left without a number and do not use one up, which suits a text split into paragraphs.
A worked example
The text "first, second, an empty line and fourth" becomes "1. first / 2. second / 3. / 4. fourth", where a slash marks a line break. With skip empty lines on, the empty line gets no number and the last line is numbered 3.
Removing numbers later
To take numbers off again, use the find and replace tool with a regular expression for digits at the start of a line. The tool only adds numbers. It does not renumber a text that already has them, so remove old numbers first if you need to start again.
Using the tool
The Add Line Numbers to Text works again whenever the text or an option changes. Undo and redo step back through your earlier text.
Add Line Numbers to Text: frequently asked questions
How do I add line numbers to text?
Can I start from 0?
Can I skip blank lines?
How do I make numbers line up?
Can I use a tab after the number?
Can anyone see the text I put into the Add Line Numbers to Text?
Can I chain the Add Line Numbers to Text with another tool?
Related searches for Add Line Numbers to Text
- Add Line Numbers to Text online
- free Add Line Numbers to Text
- Add Line Numbers to Text online free
- Add Line Numbers to Text for mobile
- Add Line Numbers to Text without sign up
- convert add line numbers to text
- add line numbers to text converter
- Add Line Numbers to Text – Text & Writing Tools
Add Line Numbers to Text is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.