Line Numbering
Workspace
The Line Numbering tool prefixes every line of your text with its line number, so you can reference lines in code, poems, legal documents, meeting notes, or error logs. Paste text in, click Process, and each line comes back numbered in order. It runs entirely in your browser, so your pasted text never leaves your device.
How to Use the Line Numbering
- Paste or type your multi-line text into the workspace textarea.
- Click Process.
- Read the numbered lines in the Result panel.
- Use Copy to put the result on your clipboard, or Download to save it as a file.
- Click Clear to empty the workspace and start over.
Worked Example
Pasting these four lines and clicking Process:
First line
Second line
Fourth line
produces:
1 | First line
2 | Second line
3 |
4 | Fourth line
Each line gets its 1-based number followed by a space, a vertical bar, and another space. Note the blank third line: it still receives a number (“3 |” with nothing after it), so the numbering of the lines below it stays aligned with the original text.
Limitations
- Numbering always starts at 1; there is no option to start at a different number or to number only selected lines.
- The separator is fixed at ” | ” (space, vertical bar, space); you cannot switch to a dot, parenthesis, or tab separator.
- Blank lines are numbered like any other line, which can make the output look gappy if your text has many empty lines.
- There is no option to skip blank lines, number only non-empty lines, or strip the numbers back off again.
- Line breaks are what define lines: wrapped display lines in a narrow window are not counted separately.
Frequently Asked Questions
Can I start numbering at 0 or 10?
No. Numbering always starts at 1 and increases by one per line. If you need a different starting number, adjust the numbers after copying the output.
Are blank lines numbered?
Yes. A blank line still gets a number, as the worked example shows with “3 |” for the empty third line, so the numbers stay matched to the original line positions.
Can I change the separator between the number and the text?
No. The tool always uses ” | ” between the number and the line content.
Is my pasted text uploaded anywhere?
No. Numbering runs in your browser, and the tool offers only Copy and Download for the result. Nothing is saved between sessions.
Related Tools
From the Blog
How to Back Up Your Files So One Failure Doesn’t Lose Everything
Most people back up their files only after losing them once. A laptop is stolen, a drive stops spinning, a phone goes…
Read article →How to Check an Image’s Dimensions Before You Upload It
Check an image's width, height, and file size before uploading, avoid upscaling, and test it on your site.
Read article →How to Pick a Colour From an Image (Without Guessing)
Pick an exact colour from any image with an eyedropper, save the hex code, test contrast, and keep your palette small.
Read article →