Free Add Line Numbers to Text Online

Add line numbers to any text for free. Choose 1. or [1] style, a custom pattern, start number, step and zero padding, skip blank lines. Runs in your browser.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Number Lines of Text for Reviews, Scripts and Code →

About the Add Line Numbers tool

Numbered lines make text easier to discuss. A reviewer can say “see line 14” instead of quoting a whole sentence, a teacher can reference a line of a poem, and a recipe or checklist is simpler to follow when every step has a number. Adding those numbers by hand is slow and breaks the moment you insert a new line.

Paste your text and this tool adds a number to the start of every line instantly. Pick a ready-made format such as “1.”, “1)”, “[1]”, “1:” or a tab after the number, or build your own pattern with {n} marking where the number goes, for example “Line {n}: ” or “Q{n}. ”. You can start from any number, count in steps of 2, 5 or 10, and pad with zeros so that 01 to 99 line up neatly in monospaced text.

Blank lines are handled sensibly. With “Skip empty lines” on, they stay in place but receive no number, so paragraphs in a script or lyrics stay separated without gaps in the numbering. Everything is calculated in your browser.

How to use Add Line Numbers

  1. Paste your text into the “Your text” box or click “Sample”.
  2. Choose a style in “Number format”, or pick “Custom pattern…” and type a pattern using {n}.
  3. Set “Start at” and “Step” if you do not want 1, 2, 3.
  4. Turn on “Pad with zeros” to align numbers, and decide whether to “Skip empty lines”.
  5. Click “Copy” or “Download” to take the numbered text with you.

Features

Seven built-in formats

1. 1) 1: 1 - [1] 1 | and tab-separated numbering.

Custom patterns

Place the number anywhere with {n}, e.g. “Step {n} → ”.

Any start and step

Start at 0, 100 or a negative number and count by any step.

Zero padding

Pads to the width of the largest number so columns align.

Blank line handling

Keep empty lines unnumbered so the sequence has no gaps.

When to use it

  • Number the lines of a poem or legal clause for a class discussion or contract review.
  • Turn a plain list of steps into a numbered set of instructions.
  • Prefix exam questions with “Q1.”, “Q2.” using a custom pattern.
  • Add line numbers to a code snippet before pasting it into an email or document.

Frequently asked questions

How do I number only non-empty lines?

Switch on “Skip empty lines”. Blank lines remain in the output but do not get a number, and the count continues on the next line with text.

Can I start numbering from a number other than 1?

Yes. Type any whole number into “Start at”, including 0 or a negative number, and use “Step” to count by 2, 10 or any other increment.

How do I make numbers like 01, 02, 03?

Turn on “Pad with zeros”. The tool pads every number to the width of the largest one, so 1–9 become 01–09 when you have 10 or more lines.

Can I put text around the number?

Choose “Custom pattern…” and write something like “Line {n}: ” or “#{n} ”. Every {n} is replaced with the line number.

Is there a line limit?

No fixed limit. Tens of thousands of lines number instantly because everything runs in your browser’s memory.

Related tools