Number Lines Online
Paste your text above to add a number to the start of every line. Choose from five numbering styles, set a custom start value, skip blank lines, and pad numbers with leading zeros for clean vertical alignment. Useful for code, legal documents, and transcripts. Nothing is uploaded.
Related text manipulation tools
The five numbering styles
Dot style (“1. 2. 3.”) is the standard format for numbered lists, agendas, and most general documents. Parenthesis style (“1) 2) 3)”) is common in legal drafting and formal outlines. Dash style (“1 – 2 – 3”) works well for transcripts and dialogue. Bracket style (“[1] [2] [3]”) is the standard convention for footnotes, citations, and academic referencing. Plain style (“1 2 3”) adds just the number with a space, useful when you want the least visual clutter or need to pipe the output into another tool that expects a simple numeric prefix.
Leading zeros and why alignment matters
Without leading zeros, a list running past 9 items develops a ragged left edge. Lines 1 through 9 have a single-digit number, while line 10 onward has two digits, which pushes the actual text content out of alignment as soon as the numbering crosses that boundary. This is a minor visual issue in a short list but becomes a real readability problem in a document with 50 or 100 numbered lines, where the misalignment compounds and makes the list harder to scan.
The Leading Zeros option fixes this by checking the total number of lines in your text and padding every number to match the same digit width. A 45-line document gets two-digit padding automatically (01, 02, 03 up to 45), while a 150-line document gets three-digit padding (001, 002, up to 150). Every line’s number occupies the same horizontal space, so the actual text content lines up in a clean vertical column regardless of how large the final number gets.
Setting a custom start value
The Start At field lets the sequence begin anywhere, not just at 1. This matters when numbering a continuation of an existing document, such as picking up a numbered list at item 51 because items 1 through 50 already exist elsewhere, or renumbering a partial excerpt from a longer numbered source without needing to manually offset every line by hand afterward.
Skip Empty Lines
Text with blank lines between paragraphs or sections, common in scripts, transcripts, and any document with visual spacing, creates a problem for straightforward line numbering: the blank lines get numbered too, which breaks the sequence away from matching the actual content items. Skip Empty Lines solves this by pausing the counter on blank lines rather than skipping the numbering altogether, so blank lines stay unnumbered while the surrounding content keeps a clean, unbroken 1, 2, 3 sequence.
Where numbered lines are used
Programmers and developers
Adding reference numbers to a code snippet, log file, or configuration block before sharing it in documentation or a bug report makes it possible to say “the error is on line 14” instead of describing the location in prose. This is particularly useful for pasting unformatted code into a chat message, ticket, or email where the recipient’s tool does not automatically display line numbers the way a code editor does.
Legal and transcript work
Numbered paragraphs in contracts, court filings, and deposition transcripts are often a formal requirement, since line-item referencing lets one party or the court cite an exact clause or statement without ambiguity. Parenthesis or dot style are the conventional choices in most legal drafting contexts. If the source document has inconsistent line breaks before numbering, the remove empty lines tool can clean that up first so the final numbered sequence lines up correctly.
Writers and academics
Numbering the lines of a poem for a workshop critique, formatting a bibliography with sequential reference numbers, or numbering lyric lines for a musical score all rely on the same underlying need for a precise, citable line reference. Bracket style matches the conventional footnote and citation format most academic styles expect.