Text & writing ● Local processing

Line Number Adder

Add aligned sequential numbers to each line while keeping blank lines and line breaks.

Preparing tool…
Try a small example

Try a small example

Load the fictional example in a cleared form. Check the options, run the tool if needed, and compare the result below.

Add right-aligned sequential numbers starting at 1 to each line, including blank lines. A final line break is preserved without creating a phantom numbered line. Paste text and run the tool. Each actual line, including empty lines between line breaks, receives a number starting at 1. Numbers align when there are 10 or more lines. A final line break stays at the end and is not treated as an extra line. Numbers are plain text: existing numbers are not detected and running the tool twice adds another prefix.

Lines to number

Ada

Sam

Expected output

1. Ada
2. 
3. Sam

The example is unavailable until the tool is ready.

Text is processed in your browser.

✓ Local processing✓ No account✓ Inputs processed here✓ Free

Quick answer

Add right-aligned sequential numbers starting at 1 to each line, including blank lines. A final line break is preserved without creating a phantom numbered line.

The page and its assets load from the site; this operation uses your entered values only in this browser and does not send them to a calculation endpoint.

How to use it

Paste text and run the tool. Each actual line, including empty lines between line breaks, receives a number starting at 1. Numbers align when there are 10 or more lines. A final line break stays at the end and is not treated as an extra line.

Limits

Numbers are plain text: existing numbers are not detected and running the tool twice adds another prefix.

Frequently asked questions

Are blank lines counted, and what about the final line break?

Each actual line is numbered, including blank lines between line breaks. A final line break is preserved without adding an extra numbered line.

Will it recognize numbers already at the start of a line?

No. It adds plain-text prefixes, so existing numbers stay in place and a second run adds another prefix.