Add line numbers to each line of your text.
🔢 Adds line numbers to each line. Useful for code review, transcripts, and references.
This tool adds line numbers to each line of your text, formatted with right-aligned numbers and consistent spacing. Useful for code review, transcripts, and any text you need to reference by line.
Three input lines named First line, Second line, and Third line become:
1. First line 2. Second line 3. Third line
Numbering starts at 1 and follows the original line order. A single newline at the very end of the input is ignored, so it does not create an additional empty numbered row.
The numbers are padded so that the text column remains aligned as the count grows. Without that padding, a two-digit line number would push its text one character farther right than a one-digit number. Keeping the content column stable makes long logs and review documents easier to scan.
The generated numbers are plain text; later edits to the copied document will not renumber automatically.
More tools you might find useful
Count how often each character appears in text.
Turn CSV/TSV data into GitHub-ready Markdown tables.
Pull all email addresses out of any text.
Find and replace any text instantly.