Prepend a line number to every line of your text. Useful for code reviews, legal documents, numbered lists, and anywhere you need to reference specific lines. Customise the start number, separator style, and more.
Line numbers make it easy to reference specific parts of a document without ambiguity. Whether you're reviewing code with a colleague, marking up a legal contract, creating a numbered script, or preparing a worksheet, having numbered lines removes all guesswork.
This tool handles any plain text — paste in a poem, a list, a log file, or anything else and get clean numbered output in seconds.
When this is on, all numbers are padded to the same width as the largest number. For example, if your text has 100 lines the numbers will appear as 001, 002 … 010 … 099, 100. This keeps the text columns aligned when viewed in a monospace font.
Yes. Set the start number to 0 and the first line will be numbered 0, the second 1, and so on. This is useful for zero-indexed arrays or programming examples.
When enabled, blank lines are left unnumbered and the counter does not advance for them. The numbering only counts non-empty lines. This is useful when your text has paragraph breaks that you want to preserve without wasting a number on the empty gap.
This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.