QuickFreeTools

Online Add Line Numbers

Add line numbers to text. Each line is prefixed with its number (1, 2, 3...) with configurable separator and padding.

Frequently Asked Questions

What format are the line numbers?
You can choose the separator (e.g. space, colon, tab) and whether to right-align numbers with padding (e.g. 1 vs 10) for alignment.
Does it work with empty lines?
Yes. Empty lines are still counted and get a number so the output stays in sync with the original line count.
Why use line numbers?
To reference specific lines in code, logs, or documents, or to paste numbered text into reports or tickets.

Related Text Tools