Prefix every line with a sequential line number — perfect for code samples and references.
Prefix every line of text with a line number. Free online line numbering tool. Every line gets a sequential number followed by a separator, starting at 1.
| Input | Output |
|---|---|
| first item second item third item | 1. first item 2. second item 3. third item |
Yes — they become part of the text. Use numbered output for reviews, quotes and tickets, not for code you intend to run.
Numbering starts at 1. To reference a section of a larger file, note the offset in your comment or paste from the first line you need.