Line Numbering Tool

Add line numbers, remove a matching number prefix or renumber pasted text with a chosen starting value.

On-device No sign-up Free to use

Apply line numbers controls

Showing an example. Edit to see your own.

?

Up to 20,000 lines and 200,000 characters. Blank lines, LF, CRLF and CR endings, and a final line break are preserved.

?

Remove or reformat only when a line starts with digits followed by this exact delimiter. Other leading digits stay as text.

?

Used when adding or reformatting line numbers.

More options

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Reformat a prefix without deleting ordinary numbers.

The nonblank lines become 1. First, 2. 40 is plain text and 3. Last. The blank line and final line break remain.

Loading the tool. Your result will appear here.

https://usefreetools.net/line-numbering-tool · 20 November 2026

Was this helpful?

How to use Line Numbering Tool

  1. Paste the text without deleting its blank lines.
  2. Choose Add, Remove or Reformat and set the number prefix rules.
  3. Apply the line numbers and compare the first and last lines.
  4. Copy or save the converted text with its line breaks.

Example: Line Numbering Tool

Reformat a prefix without deleting ordinary numbers.

You add
Reformat; old delimiter: closing parenthesis; new delimiter: period; start: 1. Text: 3) First, a blank line, 40 is plain text, Last, and a final line break.
You get
The nonblank lines become 1. First, 2. 40 is plain text and 3. Last. The blank line and final line break remain.

Supported inputs and limits

  • Up to 200,000 characters and 20,000 lines.
  • Starting numbers are whole values from 1–999,999 and the resulting sequence must stay within the stated numeric range.
  • Only a decimal prefix matching the selected period, closing parenthesis, colon, dash or tab rule is removed.
  • Blank lines remain unnumbered;
  • CRLF, CR, LF and a final line break are preserved.
More details

Check numbered content before stripping prefixes.

Add is the initial action.

Choose zero to six number digits; padding adds leading zeros and does not change the numeric range.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

Prefixes and content are different

A line number is extra text at the start of a line. Removal therefore needs a clear boundary, such as a number followed by the selected punctuation and space. Keep a copy of the original when the document contains dates, quantities or numbered headings.

Questions about Line Numbering Tool

Will it remove a number that belongs to my text?

Removal looks for the selected number-prefix pattern. A leading digit alone is not enough. Choose the separator carefully and review lines that already begin with numbers.

Do empty lines receive numbers?

Blank lines stay in place and receive no number. A trailing line break is preserved, so paragraphs and the final line ending do not silently merge.

Can numbering start after one?

Set the starting value before adding or reformatting numbers. The result follows the selected sequence, rather than treating old prefixes as new starting values.

Why did a prefix remain after removal?

Its spacing, punctuation or number shape did not match the rule. Adjust the selected prefix format instead of stripping arbitrary leading characters.

Page updated · Project managed by Tony Hines · Report a problem with Line Numbering Tool