Add Line Numbers

Remove Ads
Remove Ads

Result

Numbered Text
Remove Ads

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

OptionEffectExample output
Start valueBegin at any number100, 101, 102...
IncrementStep by N10, 20, 30...
Zero-paddingAlign widths001, 002 ... 010
SeparatorNumber-to-text divider1. / 1) / 1: / 1 →
Skip blanksNumber content onlyblank 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.