Add line numbers

Paste your text, pick a format and a starting number: every line gets numbered, ready to copy.

πŸ”’ Your text stays in your browser: nothing is saved or sent anywhere.

When line numbers come in handy

Compilers and interpreters report problems by line only ("error at line 42"): numbering the snippet you share on a forum, in a chat, or in a code review lets whoever is helping you reply by pointing to the exact line, with no counting by hand. Line numbering is also standard in legal documents and contracts, where clauses are referenced by line, and in interview transcripts, where quotes need to be cited with precision β€” think of a court deposition, where every line of the record is numbered for exactly this reason.

Which format to choose

The "1." format is the classic ordered-list style and the most readable in documents; "1)" is common in notes and meeting minutes. The "001" format with leading zeros keeps the columns perfectly aligned even past line 99 and is ideal for logs and lists that will be sorted alphabetically: without the zeros, line 10 would sort before line 2. The custom starting number is useful when you paste an excerpt from a larger file: if your block starts at line 120 of the source, the numbering can pick up right from there.