Add Line Numbers

Number every line of a list, script or code snippet as you type. Pick the format (1. 1) 1: 1 - or a tab), the first number, zero-padding such as 01, 02, and whether blank lines are skipped. Switch to Remove to strip numbers that are already there, for example from a copied numbered list.

What to do
Numbers
Your text
Result
Lines in
0
Lines out
0
Blank lines in
0
Longest line
0

Everything runs in your browser. What you type never leaves this device.

Features

  • Formats: 1. 1) 1: 1 - tab or space

  • Start from any number

  • Zero-padded numbers (01 ... 10) so columns line up

  • Skip blank lines so only real items are counted

  • Remove mode strips existing numbers like "12. " or "3) "

  • Copy or download the result

  • Runs in your browser: your text is never uploaded. Free, no signup

When numbering helps

Serial numbers for a list

Number names, items or questions before pasting into a document or WhatsApp message.

Scripts and transcripts

Number lines so reviewers can say "change line 14".

Cleaning copied lists

Remove the numbers from a copied numbered list so you can sort it or paste it into a sheet.

Numbering options

Formats and padding

  • Choose the separator that suits the place you paste into: "1. " for documents, "1) " for messages, tab for spreadsheets (number and text land in separate columns).
  • Pad with zeros makes every number the same width, so 01 to 99 line up and sort correctly as text.
  • Skip blank lines leaves empty lines unnumbered and does not count them.

Removing numbers

Remove strips a number at the start of a line followed by . ) : - | a tab or spaces. Lines without a leading number are left as they are. After removing, you can re-sort with Sort Lines and number again.

Other line tools

Add Line Numbers - FAQ