Text Toolsavailable

Line Number Tool

Add, remove, and format line numbers in copied text.

Input

Type or paste text. Processing happens only in this browser.

OutputRead-only

Read-only, selectable output.

Options

Operation

The first line number.

Amount added for each numbered line.

0 disables zero-padding.

Text before each number.

Text between the number and line.

Text after the separator.

Remove mode safely detects common 1. Text, 1) Text, and 001: Text patterns. These formatting fields also let it reverse the custom format currently shown.

Line number statistics

Input lines
0
Output lines
0
Lines numbered
0
Line numbers removed
0
Empty lines
0
Input characters
0
Output characters
0
Input UTF-8 bytes
0 B
Output UTF-8 bytes
0 B

Add line numbers

Add a number to every line with live output. Choose a starting value, step, optional zero-padding, and the exact prefix, separator, and suffix around each number.

Empty lines and safe removal

Blank lines remain in place. You can choose whether they consume a number. Remove mode recognizes common, anchored formats and also reverses the current custom format, so ordinary numeric content such as dates and addresses is left alone.

How to use

  1. Paste or type text in the input editor.
  2. Choose Add or Remove and adjust the options.
  3. Review the live output, then copy, download, or reuse it as input.

Privacy

Your text stays in your browser. Nothing you enter is uploaded or automatically saved.

Frequently asked questions

Can numbering start at 0?

Yes. Any finite integer, including zero or a negative value, can be the starting number.

Can I increment by 5 or 10?

Yes. Set Step to any non-zero whole number.

Can I number blank lines?

Yes. Number empty lines is on by default, and can be turned off without removing those lines.

Can I remove line numbers again?

Yes. Remove mode handles common dot, parenthesis, and colon formats plus the current custom format.

Will it remove numbers that are part of my text?

It only removes unambiguous number markers at a line start, such as 1. followed by whitespace or the end of the line.

Practical guide

When to use it

Use it to label excerpts for review, troubleshooting, or discussion, then remove those labels again when they are no longer needed.

Three steps

  1. Paste the lines to number or unnumber.
  2. Set the start number, increment, separator, and empty-line behavior.
  3. Review the output before copying it into an email, issue, or document.

Example and a common mistake

Start at 10 with an increment of 10 to produce 10: first item, 20: second item.

Removal relies on the selected number format; arbitrary digits at the start of a real line should not be treated as generated labels.

Text

Available

Word Counter

Count words, characters, sentences, and lines in text.

Text

Available

Sort Lines

Arrange text lines alphabetically or in reverse order.