Handytool
UtilityFreeRuns locally

Add line numbers

Number the lines of any text with a configurable start, step, separator, zero-padding, and skip-empty option.

Separator
Text
0 lines0 bytes
Numbered text
1 lines3 bytes

Everything runs in your browser — your text is never uploaded.

About the Add line numbers

Add line numbers prefixes every line of your text with a sequential number. Set the starting value and step, choose the separator between the number and the text, zero-pad the numbers so they align neatly, and optionally skip blank lines. It's the quick way to turn a plain list or snippet into a numbered reference — instantly and entirely in your browser.

Add line numbers features

  • 01

    Custom start, step, and separator

    Begin at any number, count up by any step, and pick the separator — dot, parenthesis, colon, tab, or space — between the number and the line.

  • 02

    Aligned zero-padding

    Pad numbers to equal width so 1–100 line up in a tidy right-aligned column instead of a ragged edge.

  • 03

    Skip empty lines

    Choose whether blank lines are numbered or left empty, so the numbering follows only your actual content.

Add line numbers FAQ

How do I add numbers to each line of text?
Paste your text and the lines are numbered automatically starting at 1. Adjust the start, step, and separator to taste, then copy or download the result.
Can I start numbering from a value other than 1?
Yes. Set the "Start" field to any number (including negatives) and the "Step" field to count up by 1, 5, 10, or any interval you like.
What separators are available?
A period ("1. "), parenthesis ("1) "), colon ("1: "), a tab, or a single space — pick whichever suits your list or code.
Does it skip blank lines?
Only if you enable "Skip empty lines." With it on, blank lines stay blank and don't consume a number; with it off, every line is numbered.
Is my text uploaded anywhere?
No. Line numbering runs in your browser and your text never leaves the page.

Related tools

Utility

Explore other tools

All tools