Text & String Utilities100% Client-Side

Add Sequential Line Numbers

Paste a block of text to put a sequential number before each line. Set the number to use for the first row and choose a separator that fits the output, such as a period and a space. You can also enable leading zeroes so that smaller numbers use the same width as the largest one in the list. Blank lines receive numbers as well.

Configuration Options
Input
33 chars•3 lines
Output

How to Use the Add Line Numbers to Text Online

  1. 1Paste the exact lines you want numbered, including blank lines that should have their own positions.
  2. 2Set the starting number and enter the text to insert between each number and its line.
  3. 3Turn on zero padding if you want the numeric labels to align across a digit boundary.
  4. 4Review the end of the result for any numbered empty line created by a final newline.

Input & Output Examples

Start at 8, enter a pipe with a space on each side as the separator, and enable leading zeroes.

Input Sample
alpha
beta
gamma
Expected Output
08 | alpha
09 | beta
10 | gamma

Starting at 3 with a colon and space still assigns a number to the blank second line.

Input Sample
top

bottom
Expected Output
3: top
4: 
5: bottom

Practical Developer Workflows

  • Number checklist items before copying them into a plain-text handout.
  • Continue an existing sequence from a chosen starting value after appending new rows.
  • Create a line-numbered fixture whose labels include a custom separator.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Yes. Enter the number you want beside the first line. Each following line increments it by one. This is useful when numbering a selected excerpt that should retain the positions it had in a longer text.

Explore Other Tools

12 suggested tools

View all tools