← All text tools

Add line numbers

Number every line of a text, with your choice of format.

  • Free
  • No sign-up
  • Works on any device

About Add line numbers

Puts a number in front of every line of your text, with a format you choose, such as 1. or 1) or 001. Good for referencing lines in legal drafts, code snippets, poems and lists you want to discuss by number. Empty lines can be numbered or skipped depending on the options.

How to use Add line numbers

  1. Type or paste your text in the box above.
  2. The result appears instantly as you type.
  3. Copy the result or download it as a file.

Why use this tool?

Also known as

Frequently asked questions

Can I start numbering from a number other than 1?

Use the start option to begin at any number, which is useful when you are pasting a section from the middle of a longer document and want numbers to match.

Is Add line numbers free?

Yes. Add line numbers on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools