Skip to content
AlroundConverter

Add line numbers

Number the lines of a text or remove existing line numbers.

Runs in your browser – your files are not uploaded

How to use Add line numbers

  1. 1

    Paste your text into the input field.

  2. 2

    Choose “Add numbers” or “Remove numbers” and set the options.

  3. 3

    Copy or download the result.

About Add line numbers

This tool adds a number in front of each line of your text. Choose the start number, the step, and a separator such as “1.”, “1)”, “1:”, a tab or a pipe. Numbers can be padded so that they line up, and empty lines can be left unnumbered.

The remove mode does the opposite: it strips leading numbers followed by a dot, parenthesis, colon, pipe, tab or space from every line – useful for cleaning up code copied from a website or a numbered list.

Frequently asked questions

Can I count in steps of 10?

Yes. Set the step to 10 (and the start, for example, to 10) to get 10, 20, 30 … – the classic BASIC style.

Does removing numbers touch numbers inside the line?

No, only a number at the very beginning of a line, followed by a separator, is removed.

Will removal also delete numbers that are part of the text?

It can: a line that genuinely starts with a number and a space or dot, such as “2024. A year…”, loses that number too. Check the output if your lines start with numbers on purpose.