Add Line Numbers
This free line numbering tool prefixes every line of your list, transcript, log or script with a number — with enough formatting control to match whatever convention your context expects.
How to use
- Paste your lines into the editor, one entry per line.
- Pick a prefix format: 1., 1), 1: or [1].
- Set the start number and step, then choose zero or space padding for alignment.
- Copy the numbered result; it updates live and never leaves your browser.
Frequently asked questions
How does the padding width get decided?
The tool looks at the last number in the batch (start plus step times the number of lines minus one) and pads every number to that width. With 98 lines starting at 1, the last number is 98, so every number is two digits wide: 01 through 98. Choosing zero or space only changes the pad character.
Can I number from a value other than 1?
Yes. Set the start number to any integer — 0 for zero-based lists, 100 to continue an existing document, or any offset your convention requires. Negative starts work too; the minus sign simply occupies its own column of width.
Does the tool modify my line contents?
No. Only the prefix is added, followed by a single space. Lines are not trimmed, re-indented or reformatted, and empty lines are numbered like any other line so the numbering stays aligned with your original rows.
What happens with empty input?
An empty input produces an empty output — zero numbered lines — rather than an error. The tool only sees your text once you type something, so this case mainly matters for programmatic use.
Is my text uploaded anywhere?
No. Numbering happens locally in your browser as you type. Nothing is sent to a server, nothing is stored, and nothing is logged.
Related tools
About this tool
This free line numbering tool prefixes every line of your list, transcript, log or script with a number — with enough formatting control to match whatever convention your context expects. Four prefix styles cover the common cases: 1. for ordered lists, 1) for legal or exam documents, 1: for logs and protocols, and [1] for code comments and error messages. The start number and step are yours to set, so you can number from 0 or 100, count by fives, or leave gaps for handwritten additions. Alignment is handled properly instead of left to chance: the numeric part is padded with zeros or spaces to the width of the largest number in the batch, so column 12 lines up under column 1 no matter how long your list is — the difference between a readable numbered document and a ragged mess. Your line contents are never rewritten: no trimming, no rewrapping, no hidden cleanup; empty lines stay empty lines with a number of their own. Numbering an empty input simply produces an empty output rather than an error. The result updates live as you type and everything runs locally in your browser: nothing is uploaded, nothing is stored, nothing is logged.