Add Line Numbers
Result
| Numbered Text |
|---|
Share on Social Media:
Add Line Numbers — Reference Any Line Precisely
"See line 47" only works if the lines are numbered. Whether you're preparing code for review comments, citing a script or contract, indexing data rows, or turning a plain list into a numbered one, this free tool prepends line numbers instantly — with full control over start value, increment, padding, and separator. In-browser, no signup.
Formatting Options
| Option | Effect | Example output |
|---|---|---|
| Start value | Begin at any number | 100, 101, 102... |
| Increment | Step by N | 10, 20, 30... |
| Zero-padding | Align widths | 001, 002 ... 010 |
| Separator | Number-to-text divider | 1. / 1) / 1: / 1 → |
| Skip blanks | Number content only | blank lines stay unnumbered |
Why Padding Matters
Unpadded numbers misalign the moment you cross a power of ten — line 9 and line 10 start their text at different columns, and a 100-line block looks ragged. Zero-padding (01, 02 ... 99 or 001 ... 100) keeps every line's content flush, which is the difference between a reference list that reads cleanly and one that fights the eye. The tool auto-detects the needed width or lets you set it.
Where This Gets Used
- Code review — paste a snippet with numbers so comments can say "line 12: rename this" unambiguously, even outside an IDE.
- Legal and scripts — line-numbered pages let people cite exact locations in depositions, contracts, and screenplays (the industry standard).
- Data prep — add a row index to a plain list before import or analysis.
- Teaching and documentation — numbered examples students and readers can point to.
Need the reverse? Numbered text can be cleaned with our find-and-replace tool using a pattern match on the leading numbers.
Free and Instant
Thousands of lines numbered locally in an instant — no upload, no account, no limits.