Skip to content

Add Line Numbers

Number every line, with your own start and format.

How to use the add line numbers

Three steps, all in your browser.

  1. 1

    Add your text

    Type, paste or open a .txt file. Press Sample to try an example.

  2. 2

    Choose the order

    Pick an order or format. The result updates live.

  3. 3

    Copy or download

    Copy the result in one click or save it as a .txt file.

Add Line Numbers: what to know

Add Line Numbers puts a number in front of every line of your text. Choose the number to start from, the separator (a period, parenthesis, colon or tab) and whether to pad numbers with zeros so they line up (01, 02 ... 10).

Turn on 'Skip empty lines' to leave blank lines unnumbered, so numbering continues across paragraph gaps without counting them.

The result is plain text, ready to paste into a document, email, forum post or spreadsheet. With the tab separator, numbers and text land in separate spreadsheet columns.

Popular uses

  • Numbering steps, questions and checklist items
  • Adding line numbers to code snippets for review
  • Referencing lines in legal or academic text
  • Preparing numbered lists for plain-text email

Tips for the best result

  • Use zero padding when numbers will be sorted as text later.
  • Use a start number to continue numbering from a previous page.
  • Remove numbering later with Find and Replace in regex mode: find ^\d+\. and replace with nothing.

Read how JustYourText works and our privacy details. Text you type or paste is processed in your browser and is never sent to our server.

Frequently asked questions

Yes. Set any start number, for example to continue a list from a previous page.

A period (1.), a parenthesis (1)), a colon (1:) or a tab, which lines numbers up neatly when you paste into a spreadsheet.

No. Every tool runs in your browser, so the text you type or paste is processed on your device and is not sent to our server or stored. Reloading or closing the page clears it.

Yes. Every tool is free with no sign-up and no limits on use. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers. Copy and Download work on mobile too.