Line Numbering Tool – Add or Remove Line Numbers Free

Add or remove line numbers from any block of text instantly with this free online line numbering tool. Configure the starting number, increment step, zero-padding width, and a fully custom template — use %n for the number and %t for the original line. Choose your separator (space, dot, colon, tab), skip blank lines, and output in ascending or descending order. Also works in reverse: strip existing line numbers from already-numbered text in one click. Perfect for code snippets, transcripts, scripts, and document formatting.

Numbering Settings

First line number

Increment per line

e.g. 3 → 001

%n = number, %t = line

Separator

Preview:1. Hello world
Input
Output

How to Use the Line Numbering Tool

Features:

  • Configure start number, increment step, and zero-padding width.
  • Custom templates using %n for number and %t for original line.
  • Strip existing line numbers from already-numbered text.
  • Skip blank lines and choose ascending or descending order.

How to use:

  1. Enter your text in the Input area.
  2. Configure numbering options as needed.
  3. View instant results in the Output area.
  4. Click Copy to copy results, or Clear to start over.

Tips:

  • All processing runs entirely in your browser — your data never leaves your device.
  • Works instantly with no server requests or API calls.