Add Line Numbers
Number every line of your text with a custom starting number, step and separator. Free, instant and private — the numbering happens right in your browser and nothing is uploaded.
How to use the Add Line Numbers tool
- Paste your text. Drop the lines you want to number into the box above — a list, a paragraph, a code snippet or a transcript.
- Set the numbering. Choose the starting number, the step between numbers and the separator (for example
.,)or:). Padding keeps everything neatly aligned. - Copy or download. Grab the numbered text with the copy button, or download it as a
.txtfile.
About this tool
Adding line numbers by hand quickly becomes tedious and easy to get wrong, especially once a list grows past a dozen entries. This free line numbering tool prefixes every line with a running number and your chosen separator, so you can build ordered lists, reference specific rows when reviewing code or logs, create numbered quiz questions, or label steps in a procedure. The step control lets you count by twos, tens or even backwards, and padding aligns single- and double-digit numbers into a tidy column.
The separator accepts any characters, so you can produce 1. text, 1) text, 1 - text or a tab-aligned layout. All numbering is done locally in your browser — your text is never uploaded, stored or logged, which keeps private notes, drafts and internal logs on your own device.
Frequently asked questions
Can I start numbering from a number other than 1?
Yes. Set “Start at” to any whole number, including 0 or a negative number. Combine it with the “Step” field to count by twos, fives, tens, or downwards using a negative step.
What does “Pad numbers to equal width” do?
It adds spaces (or leading zeros, if you enable that option) in front of shorter numbers so that 1 through 9 line up with 10 through 99 in a neat column. This keeps monospaced output aligned and easy to scan.
Will blank lines get a number?
By default every line is numbered, including empty ones. Enable “Skip empty lines” to leave blank lines unnumbered while the count continues on the next non-empty line.
Is my text sent anywhere?
No. The numbering runs entirely in your browser with JavaScript. Nothing you paste leaves your device, so the tool is safe for confidential content and works offline once the page has loaded.