Add line numbers

Prefix each selected line with a configurable sequence number.

Nothing is uploaded; processing happens in this browser.

How to use the Add line numbers

What does the Add line numbers do?

Add sequential numbers to pasted lines with a custom start, step, padding and separator; It applies this page-specific rule: the first numbered line receives the starting value.

Which inputs does this tool use?

To add sequential numbers to pasted lines with a custom start, step, padding and separator, enter Input text, Start, Step, Minimum digits; keep every value in the same example; select Process text when the values are ready; Start with a familiar case covered by this rule - Minimum digits adds leading zeroes without truncating larger values - so the expected result can confirm the settings.

How should the tool result be read?

For a result intended to add sequential numbers to pasted lines with a custom start, step, padding and separator, minimum digits adds leading zeroes without truncating larger values; read minimum digits together with the original input text rather than as an isolated answer, and confirm that its units or structure match the intended use.

Can numbering begin at zero or a negative number?

When the goal is to add sequential numbers to pasted lines with a custom start, step, padding and separator, yes.

How do I produce 001, 002 and 003?

When using the page to add sequential numbers to pasted lines with a custom start, step, padding and separator, set start to 1, step to 1 and minimum digits to 3.

Limits and accuracy

When using this tool to add sequential numbers to pasted lines with a custom start, step, padding and separator, when blank lines are skipped they remain in the output and do not advance the sequence; check the result in its intended destination before relying on it for important work; keep input text until the output has been checked in its intended destination.

How add line numbers works

The first numbered line receives the starting value. Each subsequent numbered line adds the step, allowing ordinary 1, 2, 3 sequences as well as countdowns or intervals.

Minimum digits adds leading zeroes without truncating larger values. A width of three formats 7 as 007. The separator is inserted literally between the number and original line.

When blank lines are skipped they remain in the output and do not advance the sequence. Disable the option when physical line positions, including blank lines, need identifiers.

Frequently asked questions

Can numbering begin at zero or a negative number?

Yes. Start accepts zero and negative integers, and step may also be negative.

How do I produce 001, 002 and 003?

Set start to 1, step to 1 and minimum digits to 3.

Do blank lines change the sequence?

Not while the skip blank lines option is enabled. Disable it to number and count every physical line.