Add or Remove Line Numbers Online – Number Lines Add or remove line numbers.
100% offline
Input33 chars · 3 lines
Output42 chars
Numbered · 3 lines
1. first line
2. second line
3. third line

About Add or Remove Line Numbers Online – Number Lines

Add line numbers to any block of text, or strip existing numbers back off. Paste a code snippet, a log file, a list, or a document and number every line with a single click — choosing where the count starts and what separator follows each number.

Numbered lines make it easy to reference a specific row in a review, a bug report, or a tutorial ("see line 42"). When you need the raw text back, the remove action takes the numbers off again. Everything runs entirely in your browser: the text you paste never leaves your device, so it works offline and keeps private snippets private.

Features

  • Add line numbers with a custom start offset and separator
  • Remove line numbers to recover the original text
  • Best-effort stripping handles ". ", ": ", " | ", and tab separators
  • Runs fully offline — nothing you paste is ever uploaded

How to use

  1. Paste or type your text into the input pane.
  2. Choose Add to number the lines, or Remove to strip existing numbers.
  3. In Add mode, set the start number and separator in the toolbar.
  4. Copy the numbered (or cleaned) result from the output pane.

Frequently asked questions

How do I start numbering from a number other than 1?

Set the Start field in the toolbar to any value — for example 0 to begin at zero, or 100 to match an excerpt that begins partway through a larger file. Each line increments from there.

Can I change what comes after the number?

Yes. The Separator field controls the text between the number and the line. The default is ". " but you can use a colon, a pipe, a tab, or anything else that suits your output.

Will Remove always recover the exact original text?

Removal is best-effort: it strips a leading number plus its separator from each line. Numbers added by this tool come off cleanly, restoring the original. Lines that never had a number prefix are left untouched.

Is my text uploaded anywhere?

No. All numbering and stripping happens locally in your browser. Your input never leaves your device, so the tool works offline and is safe for private code and logs.

Everything runs locally in your browser — your input is never uploaded.