Skip to content
ToolsOnDuty - free online tools
Text Tools

Add Line Numbers

Number each line with a custom start, separator, zero padding and blank-line skipping.

Free browser toolRuns in your browserNo sign-up

About the Add Line Numbers

This tool adds a sequential number to the start of every line, which is handy for referencing steps, code, lists and instructions.

Pick the starting number and separator style, pad numbers with zeros so they line up, and choose whether blank lines are numbered or skipped.

It is great for turning a plain list into a clearly numbered one you can paste anywhere.

Key features

  • Custom start number and separator style
  • Optional zero padding for aligned numbers
  • Skip blank lines
  • Copy the numbered text instantly

How to use

  1. 1Paste your lines into the box.
  2. 2Set the start number, separator and options.
  3. 3Click Add line numbers and copy the result.

Examples

Number lines
Input: apple, banana (on separate lines)
Output: 1. apple / 2. banana

Each line is prefixed with its position in the list.

Frequently asked questions

What does zero padding do?
It pads numbers with leading zeros so they all share the same width, for example 01, 02 ... 10, keeping your list neatly aligned.
Can I start numbering from zero or another value?
Yes. Set any starting number, including 0 or a larger value, and numbering continues from there.
Is my text uploaded anywhere?
No. Numbering happens entirely in your browser, so your text never leaves your device.

Open a related tool to prepare your files or refine the finished result.