Number Lines

Add sequential numbers to the start of each line, with your choice of starting number, separator and zero padding.

Options
Use \t for a tab.

Processed in your browser. Nothing you type is uploaded.

How it works

Lines are numbered in order from the starting number. The separator is placed between the number and the line text. With padding on, numbers get leading zeros so they all have the same width, which keeps columns aligned and makes the lines sort correctly as text.

Rules this tool follows

  • The separator can include \t for a tab.
  • With “Leave empty lines unnumbered” on (the default), blank lines are skipped and do not use up a number.
  • Negative starting numbers are allowed.

Example

Input

Preheat the oven
Mix the dry ingredients

Add the eggs

Output

1. Preheat the oven
2. Mix the dry ingredients

3. Add the eggs

Common uses

  • Turning instructions into numbered steps.
  • Adding line numbers to code or text before sharing or reviewing it.
  • Numbering entries in a list for reference.

Limitations and notes

  • Existing numbers at the start of lines are not detected or replaced; remove them first with Remove Numbers if needed.

All text cleaners