Boneyard Tools

Add Line Numbers to Text

Paste text to put a number in front of every line. Choose the starting value, the step between numbers, and the separator, and pad numbers so they line up.

How to add line numbers

  1. Paste or type your text into the input box.
  2. Set the start number, step, and separator, and turn on padding if you want aligned numbers.
  3. Copy or download the numbered text.

Examples

Number a short list

apples
bananas
cherries
1. apples
2. bananas
3. cherries

Frequently asked questions

Can I start counting from a number other than 1?

Yes. Set any start value, including 0, and the numbers count up from there using your chosen step.

How does the padding option work?

Padding makes every number the same width so the text lines up. With a visible separator it pads with zeros, like 01 and 02, and with a space separator it pads with spaces.

Can I skip blank lines?

Yes. Turn on skip blank lines and empty lines stay empty, while numbering stays continuous on the lines that have text.

Does it keep my Windows or Mac line endings?

Yes. CRLF, CR, and LF line endings are all preserved, so the numbered text keeps its original breaks.

Is my text private?

Yes. Everything runs in your browser and nothing is uploaded to a server.

Related tools