Free instant line numbering

Text Line Numberer

Paste any text and get every line numbered instantly. Choose the starting number, zero-padding, separator style, and whether blank lines get skipped.

Your text

0 lines

Numbered result

0 numbered

Add clean, consistent line numbers to any text

Number code snippets, scripts, checklists or documentation exactly the way you need them formatted.

Fully customizable

Pick your starting number, padding width and separator style to match any format you need.

Blank lines, your way

Keep every line numbered, or skip blank lines while still preserving the spacing.

Copy or download

Grab the result instantly with one click, or save it as a ready-to-use text file.

How to use the text line numberer

  1. Paste your textAdd any list, script, code snippet or paragraph into the input box.
  2. Set your formatChoose a starting number, zero-padding width, separator style and blank-line behavior.
  3. Copy or downloadGrab the numbered result with one click, or save it as a .txt file.

About line numbering and when it's useful

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.

Great for code snippets

Number a pasted snippet before sharing it in a tutorial, bug report or documentation.

Great for checklists

Skip blank lines to keep a numbered checklist or outline looking clean and sequential.

Great for references

Use consistent padding when line numbers need to align neatly in a fixed-width column.

Text line numberer FAQ

How do I add line numbers to text online?

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.

Can I change where the numbering starts?

Yes. Set the Starting number field to any value, including 0, and the first line will use that number.

What does zero-padding do?

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.

What happens to blank lines?

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.

Is this line numbering tool free and private?

Yes. It is completely free with no account required, and your text is processed locally in your browser rather than uploaded anywhere.

Try other tools

Keep working with text using these free browser tools.