🔢

Text Line Numberer

Add or remove line numbers from any block of text. Choose start number, separator and padding. Free, instant, runs entirely in your browser.

📝 Text Tools Free Browser-based
Tool

Why Use a Line Numberer?

Adding line numbers to text is useful for code review feedback ("see line 42"), generating numbered lists, creating exam questions, or formatting terminal output for documentation. This tool lets you customise the start number, separator style and zero-padding to match any format requirement.

Separator Styles

StyleExample output
Period space1. First line
Paren space1) First line
Colon space1: First line
Pipe1 | First line
Tab1   First line

Tips

Enable Skip blank lines to avoid numbering empty lines — the counter advances only for lines with content. Use Remove Line Numbers to strip any existing numeric prefixes matching common formats (1. 1) 1: etc.) from pasted text.

'Is my data uploaded to a server?', 'a' => 'No. Everything runs locally in your browser using JavaScript. Your data never leaves your device.'], ['q' => 'Can I start numbering from a number other than 1?', 'a' => 'Yes — change the Start number field to any value including 0.'], ['q' => 'How does Remove Line Numbers work?', 'a' => 'It strips any leading numeric prefix followed by a common separator (., ), :) from each line using a regular expression.'], ]" />