Line Tools
Remove blank lines, trim, dedupe, and sort.
Blog

Line tools, in one pass.

Remove blank lines, trim whitespace, dedupe, and sort with a checkbox. Perfect for lists, logs, and notes.

Input
Output
Output appears here.

Clean up messy line-based text in one pass

Paste a list, a log, or copied text and apply several line operations at once. Remove blank lines drops empty and whitespace-only rows; Trim strips leading and trailing spaces; Remove duplicates keeps the first occurrence of each line; and Sort orders the result A→Z or Z→A. Combine them — the live count shows how many lines remain.

Whole vs adjacent duplicates

Whole-list dedupe removes every repeat anywhere; “Adjacent only” removes a line only when it equals the line directly above it — useful for collapsing runs without reordering. Turn on “Ignore case” to treat Apple and apple as the same.

Local and private

Everything runs in your browser, so pasted data — emails, IDs, log lines — never leaves your device.

FAQ

Does it handle Windows line endings?
Yes. CRLF, CR, and LF are all recognized; output is normalized to LF newlines.
What order are the operations applied?
Trim first, then blank-line removal, then dedupe, then sort, then optional numbering — so a trailing space never blocks a duplicate from being detected.