Writing utility

Add Line Numbers

Add sequential numbers to every nonblank line while preserving the original order, spacing, and blank-line structure.

Source and numbering

Choose the first number and the literal separator placed before each nonblank line.

Use a whole number from 0 to 999999.

Inserted exactly as entered. The default is a period and one space.

Add source lines, then choose the starting number and separator.

Numbered result

The complete numbered text stays separate from the original source.

Total lines0
Lines numbered0
First number
Final number

No numbering has been run yet.

Runs in this browser. No upload by this tool. Your original lines remain unchanged. Review the result before sharing.

How to use Add Line Numbers

  1. Paste or type the source text with one item per line.
  2. Enter the whole number that should appear on the first nonblank line.
  3. Choose the separator placed between each number and its line, such as . , ) , or : .
  4. Select Add line numbers.
  5. Review the numbered result, especially blank lines and existing indentation.
  6. Copy the complete current result or download it as a local TXT file.

Blank and whitespace-only lines stay in place and do not advance the numbering sequence.

Examples

Number instructions

Start at 1 and use . to create a conventional numbered instruction list.

Continue an existing list

Start at 10 when the new lines should continue after items one through nine.

Use closing parentheses

Enter ) as the separator to produce lines such as 1) Review the draft.

Create reference labels

Use : as the separator to create compact references such as 25: Invoice received.

Preserve grouped spacing

Blank lines between groups remain blank, while numbering continues with the next nonblank line.

Frequently asked questions

Does the tool change my original text?

No. The source remains in its original field. The tool creates a separate numbered result.

Are blank lines numbered?

No. Empty and whitespace-only lines remain unchanged and do not advance the number sequence.

Can numbering begin at zero?

Yes. Enter 0 as the starting number.

Can numbering begin at another value?

Yes. Use any whole starting number from 0 to 999999.

Can I change the period after each number?

Yes. The Separator field accepts literal text, including spaces, parentheses, colons, dashes, or an empty value.

Are existing spaces preserved?

Yes. The original content of each nonblank line is inserted unchanged after the separator, including existing indentation and trailing spaces.

Are the lines sorted or cleaned?

No. The tool preserves line order and content. It does not sort, trim, deduplicate, capitalize, or otherwise clean the source.

Can I create Roman numerals or letters?

No. This version creates consecutive decimal whole numbers only.

Is my text uploaded?

No upload is performed by this tool. Numbering, copying, and TXT creation run in the browser.

Why should I review the output?

The chosen separator and any existing indentation may affect readability. Review the complete result before sharing or replacing another source.

Method and limitations

The tool normalizes CRLF and CR line endings to LF, reads the source as an ordered sequence of logical lines, and assigns consecutive decimal numbers to nonblank lines only.

Each numbered line is built from the current number, the literal Separator value, and the unchanged original line. Empty and whitespace-only lines stay in their original positions and do not consume a number.

Copy text and Download TXT resolve the current Source, Starting number, and Separator immediately before creating the artifact. The original source field is never overwritten automatically.

Limit: This version does not create Roman numerals, alphabetic labels, zero-padding, nested numbering, custom increments, line sorting, cleanup, file uploads, or batch processing.