Text Line Tools

Sort, deduplicate, trim, number, and reshape lists of lines — entirely in your browser.

input · 8 lines
1
2
3
4
5
6
7
8
output · 5 lines3 removed
1
2
3
4
5

Your Data Never Leaves Your Device

Every tool runs entirely in your browser. Nothing you type is uploaded, stored, or logged on our servers.

100% Client-Side

Text Line Tools applies the line-oriented operations you would otherwise reach for sort, uniq, and sed to do — deduplicating, sorting, trimming, filtering blanks, wrapping each line in a prefix and suffix, and numbering — with everything updating live as you adjust the settings.

Operations run in a fixed, deliberate order: trim, remove blanks, deduplicate, sort, affix, then number. That sequence matters, because trimming before deduplicating means two lines differing only in trailing spaces are correctly recognised as the same, and numbering last means the numbers reflect the final result rather than the original input. Numeric sorting is offered separately from alphabetical for the same reason: A-Z puts 100 before 9, which is rarely what you want for a list of IDs or versions.

FAQ

Enable "Remove duplicates" — the first occurrence of each line is kept and later repeats are dropped. Turn on "Ignore case when comparing" to treat Apple and apple as the same line.

Yes. "Show only duplicated lines" inverts the filter and returns just the lines that appear more than once, which is useful for auditing a list rather than cleaning it.

Alphabetical sorting puts 100 before 9, because it compares character by character. Numeric sort reads the first number on each line and orders by value, so 9 comes before 10 and 100.

Trim, then remove blanks, then deduplicate, then sort, then prefix and suffix, then line numbering. That order means whitespace differences do not defeat deduplication, and numbering reflects the final line count.

It copies the output back into the input pane so you can run a second pass with different settings — useful when one set of operations cannot express what you want in a single step.

No. Everything runs in your browser, so you can safely paste internal lists, log excerpts, or email addresses.