Add & Remove Line Numbers
Add customizable line numbers with start index, step, padding, and separators, or strip existing numbering.
Related text tools
All Text toolsFind & Replace
Search and replace text with live match previews, case matching, whole-word, and regex modes.
Extract Emails & URLs
Extract unique email addresses, URLs, domains, phone numbers, and numbers from raw text or logs.
Whitespace & Invisible Character Visualizer
Highlight spaces, tabs, CRLF/LF line breaks, NBSP, and zero-width characters, then strip hidden artifacts in one click.
Word Counter
Analyze text with word, character, sentence, paragraph, line counters, reading time, readability score, and keyword density.
About Add & Remove Line Numbers
Add customizable line numbers to code, logs, or lists—with custom starting number, increment step, zero-padding, and separators—or strip existing line numbers cleanly.
How to use Add & Remove Line Numbers
- 1
Switch between Add Line Numbers and Remove Line Numbers mode.
- 2
Paste your lines of text and configure start number, step, separator (such as ". " or ": "), zero-padding, and blank-line skipping.
- 3
Copy the numbered output or download it as a plain .txt file.
Frequently asked questions
Can I start numbering from 0 or an arbitrary line offset?
Yes. Set the Start number field to 0, 100, or any line number to match excerpts from larger code files.
What does Zero-pad do?
Zero-padding aligns short numbers with leading zeros (like 01, 02, 10) based on the total line count so columns stay aligned in monospace fonts.
What numbering styles can Remove Line Numbers strip?
It strips leading numeric prefixes followed by common delimiters including periods, parentheses, colons, hyphens, brackets, or pipes.
