Add / Remove Line Numbers

Number every line with your own start, step and separator, or remove existing line numbers.

Runs in your browser Free
Processed locally in your browser.

Number your lines

Line numbers help when sharing code snippets, referencing lines in legal texts, turning a list into an ordered one or editing poetry and scripts.

Numbering options

  • Start number and increment step
  • Separator such as '1.', '1)' or '1 -'
  • Zero-padding such as 001, 002
  • Skip empty lines

Remove numbers

Clean leading numbers from text copied from numbered sources such as PDFs, web pages or code editors in one click. Processing happens in your browser.

How to use Add / Remove Line Numbers

  1. Paste your text.
  2. Choose add or remove numbers.
  3. Set the start, step and separator.
  4. Copy the result.

Why use this tool?

No more numbering long lists by hand or deleting numbers one by one.

FAQ

Which number formats can be removed?

Leading numbers followed by '.', ')', ':', ']', ' -', a tab or a space, such as '1.', '12)' or '003:'.

Can I number in steps of 10?

Yes, set the step to 10 to number 10, 20, 30 and so on.

Are empty lines numbered?

Not if the skip empty lines option is on.

Related tools