Add Line Numbers to Any Block of Text

Paste your text, pick a numbering style, and get numbered lines in one click nothing you type ever leaves your browser.

Add line numbers to text without touching a spreadsheet or a code editor. This tool takes a plain block of text — a script’s dialogue, a contract’s clauses, a checklist, or any list broken across separate lines — and places a number at the start of every line that holds content. Set the style you want, paste your text, and the counting is done for you. There’s no account and nothing to install: open the page, run the tool, and move on.

What is a line numbering tool?

A line numbering tool takes text broken across separate lines and adds a sequential number to the start of each one, the same way a code editor numbers lines down the left margin or a legal document numbers its clauses. Doing this by hand means counting lines, typing each number, and starting over if you insert or delete a line partway through. This tool does the counting and the typing for you — paste the text once, choose a format, and every line is renumbered correctly in one pass.

How it works

  1. Bring in your text. Type directly into the box on the left, drop in a .txt file, or use the Paste button to pull text straight from your clipboard.
  2. Choose how the lines should read. Pick one of the four built-in formats, or write your own pattern using letters, roman numerals, or any prefix you like.
  3. Take the numbered version with you. Click Add Line Numbers, then copy the result to your clipboard or download it as a plain text file.

If your pasted text has stray blank lines scattered through it, use Remove Empty Lines first to strip them out — that way your final numbering runs in an unbroken sequence instead of leaving gaps where the blank lines used to be.

Choose exactly how each line is numbered

Four styles are ready to use as-is, and a fifth lets you build your own:

FormatExample
Numbered with a period1. First line
Bracketed[1] First line
Dashed1 - First line
Parenthetical(1) First line
Lettered (custom)a) First line
Roman numerals (custom)I. First line
Your own wording (custom)Step 1: First line

Picking up where an earlier document left off? Set a custom starting number in the toolbar instead of beginning at 1, and the count continues from there.

Everything happens in your browser

No copy of your text is sent anywhere. Line Number Adder counts lines, tracks your undo steps, and keeps a working draft entirely through JavaScript running on your own machine. If your connection drops or the tab closes mid-edit, nothing is lost — your most recent input sits in your browser’s local storage until you clear it, ready to reappear the next time you open the page.

  • No upload, no server round trip
  • Nothing to sign in for
  • Your last input and output are kept locally and restored automatically
  • Undo and redo edits before you commit to a final numbering

Where people use this

Scripts and dialogue

Give each line of dialogue in a script or screenplay a number, so a director or actor can call out “line 12” during a read-through without confusion.

Contracts and drafts

Mark every clause of a contract or policy draft with a number, so reviewers can point to a specific clause instead of describing where it sits on the page.

Poetry and citation

Attach reference numbers to verse lines for footnotes, academic citation, or a close reading that needs to point back to an exact line.

Study notes and checklists

Turn a loose set of facts or steps into an ordered sequence you can work through, tick off, or recite in order.

Code snippets and tutorials

Add numbers to an example block so a written walkthrough can refer to “line 4” and nobody has to count lines by hand.

Setlists and running orders

Keep a song or segment order straight during rehearsal, a live show, or an event schedule that needs a fixed sequence.

Frequently asked questions

Does this tool number blank lines?

No. A blank line is skipped rather than counted, so gaps in your original text stay as gaps instead of taking up a number of their own.

Can I renumber text that already has numbers in it?

Yes. If your text already starts with a period, brackets, dashes, or parentheses around a number, the tool removes that old numbering first and applies the new format cleanly, so you don’t end up with “1. 1. First line”.

Will my text be saved anywhere online?

No. The whole process runs locally in your browser through JavaScript. Your text is held only in that browser’s local storage, on your own device, and is never sent to a server.

Can I start numbering from something other than 1?

Yes. Set a value in the Start At field before you number your lines, which is useful when a list is continuing from an earlier document or an earlier section of the same one.

What happens if I close the tab by accident?

Nothing is lost. Your last input is saved as you type, so reopening the page brings it straight back. Text only clears once you press Clear and confirm.

Other Text Tools
Case Converter ___ Word Counter ___ Remove Duplicate Lines ___ Remove Extra Spaces from Text
Character Counter ___ Fancy Text Generator ___ Fancy Name Generator
Remove Empty Lines from Text ___ Backwards Text Generator ___ URL Slug Generator: Single & Bulk
Text Duplicator ___ Passive Voice Checker ___ Strong Password Generator
Remove Line Breaks Now ___ Text Sorter A to Z Online ___ Date Format Converter

Scroll to Top