How to Use This Tool
Add / Remove Line Numbers lets you prefix every line in your text with a sequential number, or strip existing line numbers from numbered text.
Available Options (Add Mode)
- Separator — The character(s) placed between the line number and the line content. Common choices include
. (period-space), ) (parenthesis-space), or : (colon-space).
- Start from — The starting number for the first line. Defaults to 1, but you can start from 0 or any other number.
- Pad numbers to width — Adds leading zeros so all numbers have the same width. For example, with width 3, line 1 becomes "001", line 10 becomes "010".
Common Use Cases
- Adding line numbers to code snippets for reference or teaching
- Numbering steps in a set of instructions or procedures
- Creating numbered lists for documents or presentations
- Stripping line numbers from copied source code taken from tutorials
- Preparing line-numbered references for legal or academic documents