Add Line Numbers

Number every line of text: choose the start, step, style and separator, skip blank lines, or remove existing numbers.

Runs in your browserNo sign-upWorks offline
Ctrl+Enter to run
Input131 characters
Output
✓ ReadySample content shown

What the Add Line Numbers does

Add Line Numbers puts a number in front of each line of text, for steps in a recipe or procedure, lines of a script or poem, points in minutes, or code you are discussing. Choose the starting number and step, plain numbers or numbers padded with zeros or aligned, what goes after the number, and whether blank lines are skipped. Switch to Remove numbers to strip existing numbering from pasted text.

How to use it

  1. Paste your text on the left.
  2. Set the start and step, and choose the number style and separator.
  3. Tick Skip blank lines to keep gaps unnumbered.
  4. Copy or download the numbered text.

Example

The five-line recipe sample with one blank line becomes “1. Preheat the oven”, “2. Mix the flour and sugar”, a blank line, “3. Add the eggs” and “4. Bake for 25 minutes”. With the zero-padded style starting at 9, the numbers read 09, 10, 11 and 12, so they line up.

Choosing a style

Padded numbers (01, 02 … 10) keep columns tidy and sort correctly in file lists. Aligned numbers use spaces instead of zeros. A tab after the number pastes neatly into spreadsheets as a separate column.

Counting by 10 (10, 20, 30) leaves room to insert lines later, a habit from old programming languages that is still handy for drafts.

Questions people ask

Is my text sent anywhere?

No. Everything happens in your browser as you type, so private notes, lists and documents never leave your device.

Can it remove numbers too?

Yes. Choose Remove numbers; numbers like 1. 2) 3: or a number and tab at the start of each line are taken off.

Can I start from 0 or count down?

Yes. Start at 0, or use a negative step such as -1 to count down.

Will it number code correctly?

Yes. Every line keeps its spaces and tabs after the number, so indentation is preserved for code reviews and teaching.

Related tools