Number pasted logs or code for tickets, or strip numbers before re-pasting into an editor.
Line Number Tool
100% FreeAdd or remove line numbers from pasted text — pipe, dot, colon, tab, or space separators.
Output (3 lines)
1 | function hello() {
2 | return "world";
3 | }Embed This Tool
Easy to EmbedAdd Line Number Tool to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/line-number-tool/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="Line Number Tool">
</iframe> Advertisement
How to Use
- 1 Paste text
- 2 Choose add or remove
- 3 Pick separator and start index
- 4 Copy the output
Features
- Add and remove modes
- Five separators
- Zero-pad option
- Client-side
Why it Matters
Bug reports and code reviews often need numbered snippets without opening an IDE.
Frequently Asked Questions
Remove mode?
Start at 0?
Diff tools?
Related Tools You Might Like
Duplicate Line Remover
Strip duplicate lines from any list, preserving the first occurrence and original order. Case + whitespace toggles, optional alpha sort.
Find Duplicate Lines
Find which lines repeat and how often — with counts. Optionally copy a unique list (first occurrence wins).
Text Sorter
Sort lines five ways — alphabetical, natural (item2 < item10), length, numeric, random shuffle. Reverse, case toggles, blank-line handling.
Text Reverser
Reverse text by characters, words, lines, or words-within-each-line. Grapheme-aware so emoji and accents survive intact.
Alphabetize List
Alphabetise any line list A→Z instantly. Case toggle, blank-line cleanup, natural sort available for numbered names.