Add Line Numbers

Add line numbers to your text with customizable format, start number, step, and padding options.

FreeInstantNo SignupPrivate
Start
Step
Format
0 chars0 words0 lines
0 chars0 words0 lines

All processing happens in your browser. Your data never leaves your device.

How It Works

Paste your text and line numbers are added instantly. Choose from several format presets like "1. ", "1: ", "[1] ", or "(1) ". Set a custom start number and step to control the sequence. Enable zero padding for aligned numbers. You can skip empty lines entirely or keep them unnumbered. All processing happens in your browser.

Why Use This Tool

Add line numbers to code snippets, legal documents, scripts, or any text that needs numbered references. Useful for code reviews, document citations, and creating formatted lists.

Frequently Asked Questions

Can I start numbering from a custom number?

Yes. Set the start number to any value. Combined with a custom step, you can create sequences like 10, 20, 30 or 100, 200, 300.

How does skip empty lines work?

When enabled, empty lines are removed from the output entirely. Only lines with content get numbered.

What does 'number only non-empty lines' do?

Empty lines are kept in the output but don't receive a number. This preserves your text's paragraph structure while only numbering content lines.

Is there a line limit?

No hard limit. The tool processes text of any size instantly in your browser. Very large files (100,000+ lines) may take a moment.

Add Line Numbers Online β€” Free Line Numbering Tool