Add Line Numbers

Put a number in front of every line.

Also called: number lines in text, line counter with numbers.

FreeNo sign-upRuns in your browser
TEXT & WRITING

Add Line Numbers

Put a number in front of every line.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Add Line Numbers (12 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Add Line Numbers

Paste text and every line gets a number in front: 1., 2., 3. — useful for lists, code reviews, scripts and legal clauses.

How to use the Add Line Numbers

  1. Enter your textType or paste your text.
  2. Press Run toolThe result appears right under the button.
  3. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

The result the Add Line Numbers gives for a short sample note that contains a date, an e-mail address, a web address, a phone number and prices (produced by the tool itself).

Result:

1. Café Olé opened on 12 March 2025 in Lahore.
2. Email hello@example.com or visit https://example.com/menu for the menu.
3. Call +92 300 1234567 to order; delivery is free over 1500 rupees.
4. The café serves 3 kinds of coffee and 2 kinds of tea.

Good to know

What you need
You type or choose: Input text
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Are empty lines numbered?

Yes, every line gets a number, so line numbers match the original.

Can I remove the numbers later?

Use Find & Replace with a regular expression like ^\d+\.

More tools in Text & Writing

See all Text & Writing tools