Add Line Numbers
Prefix every line with a sequential number, with a custom start, separator and zero padding.
To add line numbers, paste your text above and choose the starting number, the separator style and whether numbers should be zero-padded to equal width. Numbering is applied to every line including blank ones, so line positions stay accurate.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why number lines in a document?
Should the numbers be part of the text?
How to use the add line numbers
- 1Enter or paste your text.
- 2Set the start at.
- 3Choose the separator.
- 4Turn "Pad with zeros" on or off as needed.
- 5The result appears immediately — copy or download it.
Embed this tool
Put the working add line numbers on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more.Columns to Lines ConverterSwitch between a delimited single line and one item per line, in either direction.Line SorterSort lines alphabetically, numerically, by length or in reverse — with natural-order support.Remove Duplicate LinesDelete repeated lines from a list, keeping the first occurrence of each unique line.Remove Line BreaksTurn multi-line text into a single line, joining with a space, comma or custom separator.Text Wrap & TruncateHard-wrap text at a line width, or truncate it to a maximum length.
Last updated
More text tools