Add Line Numbers

Add sequential line numbers to your text or code. Customize the starting number, separator, and padding. Perfect for code review, documentation, and text reference.

What Is a Line Number Adder?

A line number adder places a sequential number at the start of every line. It is a simple way to make code, logs, and long documents easier to reference during review or discussion.

Common Uses

  • Code review: Refer to a specific line without counting manually.
  • Document discussion: Point reviewers to "line 42" instead of quoting a whole paragraph.
  • Data processing: Add an index column before importing text into a spreadsheet.
  • Teaching: Walk through an example line by line.
  • Print preparation: Number lines for proofreading and annotation.

Formatting Options

Choose whether to start at one, how many digits to show, and which separator to use. Zero-padded numbers keep columns aligned in monospaced fonts. If you need to remove numbering later, use Find and Replace or a text-cleaning tool rather than deleting each number by hand.

Examples

Line numbers

Input:

First line
Second line
Third line

Output:

1. First line
2. Second line
3. Third line

How to Use Add Line Numbers

  1. 1Paste your text or code
  2. 2Set starting number
  3. 3Copy the numbered result

Frequently Asked Questions

Can I start from a different number?

Yes, customize the starting number (e.g., start from 100).

Can I change the separator?

Yes, choose between dot, colon, parenthesis, or space as separator.