Number Lines Tool

Add line numbers to a pasted list.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use Number Lines Tool

  1. Paste your source text in the input box.
  2. Select Convert to generate the output.
  3. Review the output before copying it.

How it works

Add line numbers to a pasted list. Prefix each line with its 1-based position.

Formula or processing rules

Prefix each line with its 1-based position.

Worked example

Two lines beginning with apple and pear receive the numbers 1 and 2.

Example text lengths in UTF-16 code units
Input · 10
Output · 16
Worked example
MeasureValue
Source textapple pear
Result1. apple 2. pear

Pros and cons

Pros

Add line numbers to a pasted list. The sample provides an immediate check of the expected output.

Cons

Blank rows have positions and receive a number.

Troubleshooting

Check the input format and compare your case with the built-in sample. Blank rows have positions and receive a number.

Frequently asked questions

How do I use the text I get back?

Copy the output into the document, list, or compatible tool where you need it.

How does the transformation work?

Prefix each line with its 1-based position.

Can I try a sample first?

Two lines beginning with apple and pear receive the numbers 1 and 2.

What should I check before using the result?

Blank rows have positions and receive a number.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.