Free Online Add Line Numbers to Text Tool

Prefix each line of text with its line number. Useful for referencing specific lines in code, documents, or lists.

How to Use the Add Line Numbers

1

Paste your text.

2

Line numbers are added automatically.

3

Copy the numbered text.

Frequently Asked Questions

What format are the line numbers?
Each line is prefixed with its number followed by a period and space (e.g., '1. First line').
Does it handle blank lines?
Yes, blank lines are numbered like any other line.
Can I customize the format?
The tool uses a standard numbering format. For custom formats, use a code editor.

Related Tools