Add Line Numbers to Text

The Add Line Numbers tool puts a number in front of every line of your text. Paste a list, notes, a script, song lyrics or code, choose a format like “1.” or “1)”, and copy the numbered result in one click.

It’s free, needs no sign-up and runs entirely in your browser, so your text is never uploaded.

Add Line Numbers
Options
Your text stays in your browser and is never uploaded. Up to 500,000 characters.

How to Use the Add Line Numbers Tool

  1. Paste your text into the box, with one item on each line.
  2. Pick a number format: 1. Line, 1) Line, 1: Line, 1 – Line, [1] Line, 1 Line, or a number followed by a tab.
  3. Set where to start and how to count. Start at 1, 0, 100 or any whole number, and count by 1, 2, 5 or 10.
  4. Choose your options: skip blank lines, add leading zeros (01, 02) or remove spaces at the start of each line.
  5. Press “Add line numbers,” then copy the result. If you change an option afterward, the result updates on its own.

Example

With the “1.” format, start at 1 and “Don’t number blank lines” turned on, this list:

Buy milk
Call the dentist

Pay the phone bill

becomes:

1. Buy milk
2. Call the dentist

3. Pay the phone bill

Options Explained

  • Don’t number blank lines: empty lines stay empty and the count continues on the next line with text. Turn it off to give every line a number, including empty ones.
  • Add leading zeros: pads every number to the same width (01 to 99, or 001 to 100 and up), so the list lines up neatly and sorts in the right order.
  • Remove spaces at the start of each line: cleans up indented text before the numbers are added.
  • Tab format: puts a tab after each number, so you can paste the result into a spreadsheet and get the numbers in their own column.

When to Add Line Numbers to Text

  • Lists and to-dos: turn a plain list into a numbered checklist for an email or chat.
  • Scripts, poems and lyrics: number lines so people can say “look at line 12.”
  • Code snippets: add line numbers before sharing code in a document or a class handout.
  • Teachers and students: number questions, reading passages or vocabulary lists.
  • Data work: give rows an ID before pasting them into a spreadsheet.

Frequently Asked Questions

How do I add line numbers to text?

Paste your text into the box above, choose a format and press “Add line numbers.” Each line gets a number at its start, and you can copy the result with one click.

Can I start numbering from a number other than 1?

Yes. Type any whole number in “Start at,” such as 0, 10 or 101. This is handy when you continue a list that was numbered somewhere else.

Can I number every other line or count by 10?

You can count by any whole number with “Count by,” for example 2, 5 or 10. Every line with text still gets its own number.

Does the tool change the order of my lines?

No. Your lines stay in the same order. Only a number is added in front of each one.

Will this make a real numbered list in Word or Google Docs?

The numbers are plain text, so they won’t renumber themselves if you move lines later. For a list that updates on its own, use the numbering button in your word processor.

Is my text saved or uploaded?

No. Everything happens in your browser, and your text is never sent to a server.

Related Tools