Skip to main content
Tools Star Hub

Add Line Numbers

Number each line of pasted text. Set the starting number and the separator.

What is Add Line Numbers?

Add line numbers puts a number and a separator in front of each line without changing the line itself.

Loading tool…

This tool runs in your browser. Inputs, files and generated values stay on this device. Favorites and recently used tools, if you use them, store only tool names in local storage — never passwords, documents or QR contents. See the privacy policy.

Add Line Numbers — Number Each Line of Text — Tools Star Hub

What this tool does

Paste several lines and put a number in front of each one. You choose the starting number and the characters between the number and the line.

How to use

  1. Paste the text. Each line stays as you typed it.
  2. Set the starting number. 1 is the usual start. A whole number below 0 is allowed.
  3. Set the separator. The default is a period and a space.
  4. Press Add numbers, then copy the numbered lines or clear the form.

Examples

  • A three-line list

    Lines “First line”, “Second line”, and “Third line” with start 1 and separator “. ” become “1. First line”, “2. Second line”, and “3. Third line”.

  • Continue a list at 10

    Starting number 10 and separator ") " turns the first pasted line into “10) ” plus the original line.

Main features

  • The line text is not trimmed or rewritten.
  • A custom separator, such as ") " or a tab.
  • A starting number other than 1.

How it works

The text is split on line breaks. Each line gets the starting number plus its position, then the separator, then the original characters on that line. Empty lines are numbered too, because they are still lines.

Tips

  • If the text already has numbers, remove them first or you will get two numbers on each line.
  • Use a tab as the separator when you want to paste the result into a spreadsheet.

Limitations

A final line break creates a trailing empty line, and that empty line is numbered. Soft wraps inside the box are not new lines. Only real line breaks are.

See the disclaimer for what these tools do not cover.

FAQ

Does this change spelling or spacing?
No. The characters after the separator are the original line.
Can I start at 0?
Yes. 0 and negative whole numbers are accepted. A decimal such as 1.5 is not.
Is my input sent to a server?
No. The lines and the starting number stay in this tab. They are not sent to a server.
How do I number lines in text?
Paste the text, set the starting number and the separator, such as a period and a space, then add numbers and copy the result.
Are empty lines numbered?
Yes. Every real line break starts a new numbered line, including empty lines and a trailing empty line at the end.