Add/Remove Line Numbers
Last updated: 2026 · Free online tool
What is Add/Remove Line Numbers?
Free online tool to add line numbers in front of each line of text or strip existing ones, with a custom starting number and separator for code, logs, or lists.
How to Use
- 1 Select mode — Choose add or remove mode.
- 2 Enter text — Enter your text.
- 3 Copy result — Copy the result.
Related Tools
Sort & Remove Duplicates Free online tool to sort text lines alphabetically or with natural sort and remove duplicate lines, with options for sort direction, case sensitivity, empty-line removal and statistics showing how many duplicates were removed.
Text Diff Checker Free online tool to compare two texts and highlight added, deleted, and changed lines. It runs line-by-line comparison with the Myers diff algorithm, the same family Git uses, and supports inline diff within lines.
Find & Replace Free online find and replace tool for text and code. Search with plain text or regular expressions, toggle case sensitivity and replace all matches at once, right in your browser.
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.