Add / Remove Line Numbers
Prefix every line with a sequential number, or strip existing numbering back out, entirely client-side.
About this tool
The Line Numberer adds sequential numbers to the start of every line in a block of text, or strips numbering that is already there — a task that comes up when preparing code snippets for documentation, formatting numbered reference lists, annotating log output for a bug report, or cleaning up text copy-pasted from a numbered source.
In "Add" mode, choose a starting number, a separator style — dot-space ("1. "), paren-space ("1) "), or tab — and whether numbers should be zero-padded to a consistent width. In "Remove" mode, the tool strips a leading number-plus-separator pattern from each line. Auto-detect mode recognizes all three separator styles per line, so a file with mixed numbering still cleans up correctly.
Everything runs as plain string and regex operations in your browser. The tool reports how many lines were actually modified so you can spot-check that the pattern matched what you expected.
