woori.today
Family Sites

Add Line Numbers

Prefix each line with a starting number and separator.

Add Line Numbers: Input / Result

Input

alpha
beta

Result

1. alpha
2. beta

How it works

Splits the input at line breaks and prefixes each resulting line with a counter starting at 1, followed by `. `. Empty lines are counted as lines too.

A practical use

Use numbered lines when reviewers need to point to a specific row in a code excerpt or meeting note. `Apples Pears` becomes `1. Apples 2. Pears`.

When something goes wrong

If the line count looks unexpected, check for blank lines and a trailing line break in the input. The numbers become part of the output text; remove them later if you need the original lines back.

Tool-specific question

Does an empty line receive a number?

Yes. Every item produced by splitting on line breaks is numbered, including empty lines. Whitespace on a whitespace-only line is preserved.

How to use

  1. Enter an input or choose settings; you can start with first second.
  2. Paste text, then choose the transformation, separator, or portion to process.
  3. Run Add Line Numbers, then compare the result with the example 1. first 2. second before copying or downloading it.

Options

The input area shows the accepted format and available controls for this tool.

Privacy

No. Your input is handled in the browser you are using. Privacy

Related tools