Add Line Numbers
Add a number to the start of every line, with a custom start value, increment, separator and padding.
0 lines numbered
How it works
Paste your text and every line gets a number prefix instantly. You control where the
numbering starts, how much it increments, which separator sits between the number and the
line (., ), :, a dash, a pipe, a tab or anything you
type), and whether numbers are zero-padded or right-aligned so long lists stay in a tidy
column. Blank lines can be skipped so they don't consume a number, and "Remove existing
leading numbers" strips a previous 1. / 1) style prefix before
renumbering โ useful for fixing a list that got out of order.
Everything runs in your browser with plain JavaScript: your text is never uploaded, so it is safe for logs, code, contracts and anything else confidential. Use Copy result for the clipboard, or Download .txt to save the numbered text as a file.
Frequently asked questions
How do I add line numbers to text?
Paste your text into the top box and the numbered version appears in the output box straight away, and every line gets a "1. ", "2. ", "3. " prefix by default. Then use Copy result to put it on your clipboard, or Download .txt to save it as a file.
Can I start numbering from a number other than 1, or count in steps?
Yes. Set "Start at" to any number (including 0 or a negative value) and "Increment by" to the step size. For example, start at 10 with an increment of 5 gives 10, 15, 20. You can also pick a separator (a dot, bracket, colon, dash, pipe, tab or your own text) and zero-pad or right-align the numbers so long lists line up in a neat column.
Is my text uploaded to a server?
No. The numbering runs entirely in your browser with JavaScript, so nothing you paste is sent anywhere, logged or stored. That makes it safe for log files, source code, contracts and other confidential text, and it keeps working after the page has loaded even if you go offline.