Add sequential line numbers to text with custom start, separator, and zero-padding. Perfect for code review, citations, and references. Free online.
A line number adder prefixes each line of text with a sequential number, producing output that is easy to reference, cite, or quote. While most code editors render line numbers visually in the gutter, those numbers are not part of the file content — copying the text loses them. This tool actually inserts the numbers into the text itself, so they survive copy-paste, email, PDF export, and chat messages.
1.), colon (1:), bracket ([1]), tab, or any custom character between number and text001, 002) so they align in monospace fontsCode review comments reference specific lines — pasting numbered code into a chat thread is faster than sharing a screenshot. Legal documents and academic papers cite text by line for precise quotation. Translators use line-numbered source files to keep parallel translations aligned. Educators distribute numbered handouts so the whole class can find the same passage instantly. QA testers attach numbered logs to bug reports so engineers can pinpoint the failing line.
The default 1. text format reads naturally in prose contexts. The [1] text bracket format is preferred in scientific writing because brackets visually separate the index from the content. The tab separator produces output that pastes cleanly into spreadsheets, where the number lands in column A and the text in column B.
All numbering happens client-side in your browser. The text you paste is never transmitted, logged, or stored anywhere.
Count words and characters with the Word Counter. De-duplicate text with Remove Duplicate Lines. Sort lines alphabetically with Sort Lines.
Yes. Change the start number to any value.
You can type any separator: period-space, colon, tab, dash, etc.
It adds leading zeros so all numbers have the same width (e.g., 01, 02... 99).
Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools