Pasting a list into an email and referring to “the third item” gets confusing fast — especially when the list changes. Numbered lines make every row referenceable, whether you’re reviewing code, proofreading a manuscript, or assigning tasks. To add line numbers by hand is tedious and error-prone; this free tool does it instantly.
Paste your text, pick a format (1., 01., [1], (1), 1:), set your separator and starting number, and this free add line numbers tool produces cleanly numbered output ready to copy. It can skip blank lines, and the reverse mode strips numbering back off — handy when you want the original list back. No signup, no uploads — everything runs in your browser.
Add Line Numbers to Text
Number every line instantly — or strip numbers back off.
For "1." and "01." the format already ends with a dot; the separator is added after it. Use a tab or two spaces for code.
🔒 100% private — everything runs in your browser, nothing is uploaded.
How to Add Line Numbers to Text
- Paste your text into the input box — one item per line.
- Choose a mode: “Add numbers” for numbering, “Strip numbers” to remove existing numbering.
- Pick a number format:
1., zero-padded01.,[1],(1), or1:. - Set the separator that goes between the number and your text — a space, a tab, or two spaces.
- Set the starting number (default 1) — useful when numbering continues a previous list.
- Decide about blank lines: the “skip empty lines” option keeps them unnumbered and doesn’t consume a number.
- Watch the live result update as you type, then copy or download the numbered text.
Features That Set This Tool Apart
- Live conversion: the result updates as you type — no submit button needed.
- Five number formats: plain, zero-padded, bracketed, parenthesized, or colon — pick the style your document needs.
- Custom separators and start numbers: tabs for code, custom starts for continuing lists across documents.
- Skip-empty-lines option: blank lines stay blank instead of getting numbers they don’t need.
- Reverse mode: strip numbering off with one click when you want the original list back.
- 100% in-browser: your text never leaves your device.
Numbering Formats Compared
The right format depends on where the text is going. Plain (1.) is the universal default — readable everywhere, from emails to Word documents. Zero-padded (01.) keeps numbers aligned in monospace contexts like code comments and terminal output, and it sorts correctly as plain text (line 02 before 10, unlike 2 vs 10).
Bracketed ([1]) and parenthesized ((1)) styles stand out visually, which helps when the numbers are reference markers rather than part of the content — legal drafts, review checklists, and citation lists often use these. The colon (1:) style reads like a label, common in transcripts and log annotations.
The separator matters too. A single space is fine for prose; a tab creates clean columns in code editors and spreadsheets; two spaces give the numbers breathing room in documents. This add line numbers tool defaults to a single space but accepts any separator up to 8 characters, so you can match whatever style guide you’re following.
Practical Uses for Numbered Lines
Code review: when you add line numbers before pasting a snippet into a chat or ticket, reviewers can say “line 14 has a bug” instead of quoting the whole block. Proofreading: editors number manuscript lines so corrections reference exact positions. Data entry: when transcribing a list, numbers let you track how far you’ve gotten and spot skipped rows.
Teaching: numbered lines in a poem or code sample let a class discuss “line 7” without ambiguity. Checklists: numbering tasks makes delegation concrete — “you take items 1–5, I’ll take 6–10.” Log analysis: numbering log lines before sharing them means everyone in the thread refers to the same line.
Starting numbers earn their keep when a list spans multiple messages or documents: continue at 51 in the second file and references stay unique across the whole set. And zero-padded numbers keep everything aligned when the list grows past 9, 99, or 999 — the tool computes the padding width from your total automatically.
Line numbering has a long history in publishing and programming alike — numbered lines make every reference unambiguous, which is why editors, lawyers, and developers all rely on them. For the broader concept, see the overview of line numbers.
Stripping Numbers Back Off
Sometimes numbering was a means to an end: you numbered lines for a review, and now you need the clean original back. Doing that by hand means deleting a prefix from every line — exactly the kind of repetitive edit that’s easy to get wrong. The strip mode in this tool reverses the process with one click.
The stripper recognizes all five formats this add line numbers tool produces — 1., 01., [1], (1), 1: — plus close variants like 12), with or without leading whitespace. It only removes a match at the start of a line, so numbers inside your content (“I have 3 apples”) are never touched. Lines that don’t start with a number pass through unchanged, and the tool reports how many lines it stripped.
One caution: strip mode can’t distinguish a number you added from one that was always there. If your original text had lines starting with “2024 was a year…”, stripping will leave them alone (no separator after the number), but a line like “3. Buy milk” will lose its “3. ” even if it was part of the original. When in doubt, keep a copy of the original text — or strip a copy, not the only version.
Add Line Numbers: Frequently Asked Questions
How do I add line numbers online?
Paste your text into this add line numbers tool, choose a number format like 1. or [1], and the numbered result appears instantly. You can customize the separator, the starting number, and whether blank lines are skipped, then copy the result or download it as a .txt file. Everything runs in your browser.
Can I start numbering from a number other than 1?
Yes. Set the Start at field to any number — 0, 50, 1001, whatever your document needs. This is useful when numbering continues a list from another file or page, so line references stay unique across the whole set. Zero-padded formats automatically adjust their width to fit the largest number.
How do I number lines without numbering blank lines?
Keep the Skip empty lines option ticked (it’s on by default). Blank lines are then left completely untouched — no number, and no number consumed — so your visible items stay sequentially numbered while paragraph breaks remain clean. Untick it if you want every physical line numbered, including blanks.
Can I remove line numbers from text?
Yes — switch to Strip numbers mode and paste the numbered text. The tool removes leading number prefixes in all common formats (1., 01., [1], (1), 1:, 12)) and reports how many lines it cleaned. Numbers inside your content are never touched; only prefixes at the start of a line are removed.
Will this work for code with indentation?
Yes. The number and separator are prepended to each line as-is, so leading spaces and tabs are preserved after the prefix. For code, choose a tab or two-space separator so the numbers form a clean column. The output is plain text you can paste into any editor, chat, or ticket system.
Related Free Tools
- Text Cleaner — tidy up messy text before numbering it.
- Sort Lines Alphabetically — order your lines, then add numbers.
- Word Counter — count words, characters, and lines in any text.
- All Free Tools — browse the complete collection of free online utilities.
Numbered lines make text referenceable, reviewable, and organized. With this free tool to add line numbers, you get five formats, custom separators, smart blank-line handling, and a reverse mode — all instant and private. Paste your text above and number it in seconds.