Line Number Adder

Add sequential decimal numbers to text lines with a configurable starting number.

Processing stays in this browser. Input is limited to 100,000 characters.

Adds a decimal number followed by a dot and one space to every logical line, including blank lines. A terminal newline does not create an extra numbered line.

Adding line numbers

Add sequential decimal numbers to text lines with a configurable starting number. Paste text into Input text, enter Starting number (0–1,000,000), then select Process text. The original input is retained so you can inspect the result before copying or downloading it. Changing input or an option clears the previous output and download.

A reproducible example

Load the example and run the tool to get 1. alpha, 2. beta and 3. gamma on separate lines. Change the start to 10 to get 10, 11 and 12. The example button replaces both the current input and its settings; use it before entering important work, or keep a source copy elsewhere.

Exact behavior and limits

Adds a decimal number followed by a dot and one space to every logical line, including blank lines. A terminal newline does not create an extra numbered line. Numbers are prefixes in the output itself, not editor decorations. Existing prefixes are not detected or replaced: numbering an already numbered line adds another prefix. The start must be an integer from zero through one million. Leading zeros in the setting do not produce padded output.

Numbering retains the line terminators received by the algorithm. Pasted CRLF or CR can first be normalized to LF by the browser textarea. The result therefore preserves logical lines, not necessarily the byte encoding of your source file; keep that source if exact bytes matter.

Troubleshooting and reviewing output

If the first output number is unexpected, check Starting number: the example action resets it to one. Input may contain whitespace-only lines and those lines are numbered too. Empty input is rejected. Work is limited to 100,000 UTF-16 code units, so split larger documents into separate runs and set the next starting number explicitly.

Use Line Number Remover to remove this exact decimal-dot-space format. Line Range Extractor selects a range without writing numbers into its output.