Add/Remove Line Numbers

Line number tool that adds numbers in front of every line of text or strips existing ones. Set a custom starting number and separator for code, logs or lists, free in your browser.

Embed

Embed this tool on your site

Powered by Patrache Studio DevTools
Last updated: 2026 · Free online tool

What is Add/Remove Line Numbers?

Line number tool that adds numbers in front of every line of text or strips existing ones. Set a custom starting number and separator for code, logs or lists, free in your browser.

How to Use

  1. 1
    Select mode— Choose add or remove mode.
  2. 2
    Enter text— Enter your text.
  3. 3
    Copy result— Copy the result.

Related Tools

Frequently Asked Questions

Four separators are supported: dot (1. ), colon (1: ), tab (1\t), and space ( 1 ).

Yes, you can start from 0 or any number you want.

Zero-padding adds leading zeros like 001, 002 to align digit places.

No, common line number formats are automatically detected and removed.

No. All processing is performed in the browser.

This site uses cookies for better experience and advertising. Learn more

Please allow ads on this site

To use these tools, allow ads on this site. Advertising keeps this service free.

Open your ad blocker, turn off blocking for this site, then check again.