ToolHarbor

Line Numbering Tool

Add line numbers to any text instantly. Choose separator style, start number, padding, and skip empty lines.

Features

  • Add line numbers with multiple separator styles (dot, paren, colon, tab, space)
  • Configurable start number
  • Auto-pad numbers for aligned output
  • Option to skip empty lines
  • Instant results as you type
  • Copy the numbered text with one click

How to Use

  1. 1Paste your text into the input area
  2. 2Choose a number format (1. Line, 1) Line, 1: Line, etc.)
  3. 3Set the starting number (default is 1)
  4. 4Toggle padding and skip-empty-lines options
  5. 5Copy the numbered output using the Copy button

Examples

Basic line numbering

Input

First line
Second line
Third line

Output

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

Input

apples
bananas
cherries

Output

1) apples
2) bananas
3) cherries
Starting from 10

Input

Item A
Item B
Item C

Output

10. Item A
11. Item B
12. Item C
Skip empty lines

Input

Line one

Line three

Line five

Output

1. Line one

2. Line three

3. Line five

How to Add Line Numbers to Text

Adding line numbers to text is a common task when preparing code snippets for documentation, creating numbered lists from plain text, referencing specific lines in a file, or formatting data for presentations. This tool automatically prepends a sequential number to every line in your input.

You can choose from several separator styles to match your needs. The "1. Line" format creates a traditional numbered list. The "1) Line" style is common in academic and legal documents. The "1: Line" format is familiar to programmers. Tab and space separators are useful when the output will be pasted into spreadsheets or fixed-width contexts.

The start number option lets you begin numbering from any integer — useful when you are continuing a list from a previous section or need to match existing line references. Combined with auto-padding, the numbers stay neatly aligned regardless of how many lines you have.

The skip empty lines option leaves blank lines unnumbered while still preserving them in the output. This is particularly useful when working with code or structured text where blank lines serve as visual separators and should not receive a number.

All processing happens locally in your browser. No data is sent to any server, so you can safely number confidential documents, source code, or private notes without privacy concerns.

Frequently Asked Questions

Related Tools