Blog
Text tools

Line numberer online

Paste a list — one item per line — and add a sequence number in front of every line. Configure which number to start from, what step to count by, and which separator to place between the number and the text.

Result

Lines numbered —

All calculations run locally in your browser: parsing, chart, export. Disconnect the network and the page keeps working.

Facts and limits of this method

Starting number Any integer, including zero and negative numbers
Step Any non-zero integer — count every other line (step 2) or backwards (negative step)
Separator Period, bracket, dash or colon, with a trailing space
Skip empty lines On by default — numbering doesn't get thrown off by blank lines in the list

When it misleads you

How it is calculated

The text is split into lines. The number counter is set to the starting value from the "start from" field.

For each line: if "skip empty lines" is on and the line is blank, no number is added and the counter isn't advanced. Otherwise the current number and separator are prepended to the line, and the counter advances by the step value.

The separator is a fixed set of four choices (period, bracket, dash, colon), each already including a trailing space for readability.

The result counter shows how many lines actually got a number — that is, how many times the main case ran, rather than the empty-line skip.

Questions and answers

Can I start numbering from something other than 1?

Yes, type any integer into the "start from" field — for example 0 or 100.

How do I number every other line (1, 3, 5...)?

Set the step to 2.

How do I add the number at the end of the line instead of the start?

There's a separate tool for that — "end-of-line numberer."

Is my text sent anywhere?

No, all the processing runs in your browser.

Related tools

All tools