Fully customizable
Pick your starting number, padding width and separator style to match any format you need.
Paste any text and get every line numbered instantly. Choose the starting number, zero-padding, separator style, and whether blank lines get skipped.
Number code snippets, scripts, checklists or documentation exactly the way you need them formatted.
Pick your starting number, padding width and separator style to match any format you need.
Keep every line numbered, or skip blank lines while still preserving the spacing.
Grab the result instantly with one click, or save it as a ready-to-use text file.
Line numbers make it possible to refer to a specific location in a piece of text without ambiguity, which is why they show up everywhere from legal documents and scripture to source code and error messages. A code editor numbers lines so a stack trace can point directly to "line 42" instead of describing its location in words. A screenplay or legal contract numbers lines so a reviewer can say "see line 17" during a discussion instead of quoting a whole sentence. Numbering style matters too: zero-padding, for example turning 7 into 007, keeps every number the same visual width, which matters when line numbers sit inside monospaced text or a table column, since unpadded numbers of different lengths break vertical alignment. Choosing whether to number blank lines is a smaller but real decision — some formats, like strict line-reference systems, need every physical line counted including blanks, while others, like a numbered checklist, look cleaner when blank spacing lines are left out of the count entirely.
Number a pasted snippet before sharing it in a tutorial, bug report or documentation.
Skip blank lines to keep a numbered checklist or outline looking clean and sequential.
Use consistent padding when line numbers need to align neatly in a fixed-width column.
Paste your text into the input box. Every line is numbered automatically in the output panel, updating live as you type or change any setting.
Yes. Set the Starting number field to any value, including 0, and the first line will use that number.
Zero-padding pads every number to the same width with leading zeros, for example turning 7 into 007, which keeps numbers aligned in monospaced text or code.
By default every line gets a number, including blank ones. Turn on Skip blank lines to leave empty lines unnumbered while still keeping them in place.
Yes. It is completely free with no account required, and your text is processed locally in your browser rather than uploaded anywhere.
Keep working with text using these free browser tools.