Skip to content
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

Getting ready. Input becomes available when the tool is ready. If this message stays, reload or check that JavaScript is enabled. Use anonymized examples instead of personal data, access tokens, or internal logs. Browser-side processing does not guarantee that input is safe.

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 (dedupe/sort)” to compare Apple and apple as the same text.

What stays in the browser

The line transformation does not submit input text to our server. Cloudflare Web Analytics separately measures page views and load performance. This does not guarantee the security of your browser or extensions; use anonymized examples instead of real personal data, credentials, or internal logs. See our Privacy Policy.

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?
For enabled options: trim, blank-line removal, dedupe, sort, then numbering. Only blank-line removal is on by default. Turn on both trim and dedupe if a trailing space should not stop two lines from matching.