Add line numbers

Number every line, your way.

Add line numbers

Separator

0 lines · 0 characters

0 lines · 0 characters

Results update as you type.

Runs in your browser. Nothing uploaded.

How to add line numbers

  1. Paste your text into Input.
  2. Pick a start number and a separator, and choose whether to pad numbers or skip blank lines.
  3. Copy or download the numbered text.

Common uses

  • Turn steps or instructions into a numbered list for a document or email.
  • Number lines of code or log output so you can refer to them in a review.
  • Add ranks to a list of results or names.

Tips for numbered text

  • Pad numbers for long lists. With 10 or more lines, Pad with zeros turns 1 into 01, so the numbers line up and sort correctly in a spreadsheet or file manager.
  • Use a tab to paste into a spreadsheet. With Tab as the separator, the numbers and the text land in two columns when you paste them into Excel or Google Sheets.
  • Start at 0 to match code. Lists and arrays in most programming languages count from zero; set Start at to 0 to match them.
  • Keep paragraphs readable. Turn on Skip empty lines so blank lines between paragraphs stay blank and the count carries on across them.