AXS TXTAXS TXT

Add Line Numbers

Prefix every line of your text with a line number. Great for lists and code snippets.

Numbered lines make a list easy to reference and a code snippet easier to discuss. Add Line Numbers prefixes every line of your text with its number, so 'line 12' actually points somewhere.

How to use add line numbers

  1. 1. Paste your text or list.
  2. 2. Each line is prefixed with its number.
  3. 3. Copy the numbered text.

When to use Add Line Numbers

Reference a list

Number items so you can point to a specific one in a discussion.

Annotate a snippet

Add line numbers to code you're sharing so others can cite exact lines.

Create a ranking

Turn a plain list into a numbered one.

Frequently asked questions

Does numbering start at 1?

Yes — lines are numbered from 1 in order.

Are blank lines numbered too?

Every line gets a number as it appears; remove empty lines first if you don't want them counted.

Is my text private?

Yes — it's processed in your browser.

Your text is processed entirely in your browser and never uploaded — read more on the security page. Looking for more? Browse our full set of text tools or read guides on the blog.