Add Line Numbers

Add line numbers to text or code.

Text

About Add Line Numbers

Paste text or code and add line numbers to each line. Choose a separator (e.g. pipe, dot, colon) and optionally right-align the numbers for readability. Useful for sharing code snippets with line references or for logs and reports.

Frequently Asked Questions

What format are the line numbers?
By default each line is prefixed with the line number followed by a separator (e.g. "1 | " or "1."). You can choose the separator and whether to right-align numbers.
Is my text sent to a server?
No. All processing is done entirely in your browser.
Can I use this for code?
Yes. Adding line numbers to code snippets helps when discussing specific lines in documentation or support tickets.