Why Text Deduplication & Sorter Is Essential?
Whether scrubbing email marketing lists, deduplicating SEO keywords, or filtering database dump IDs, raw text often contains duplicate lines and messy whitespace. This tool removes duplicates and formats thousands of rows in milliseconds entirely in browser memory.
Common Output Formats
- SQL IN clauses:Converts lists into ready-to-paste SQL
('a', 'b')clauses for WHERE IN queries. - JSON string arrays:Exports unique lines as a clean JSON string array for config files and APIs.
- Comma and semicolon joins:Separates unique values with commas or semicolons for email distribution.
How the conversion runs
processText() reads the whole block, splits it into lines, normalises each line for comparison while keeping the original for output, and keeps the first occurrence of every repeated value. It reports the original line count, the unique count and how many were removed, so you can see whether the operation did what you expected before you copy the result back.
Edge cases and hard limits
Comparison is by whole line. A line with a trailing space, different capitalisation or a different separator is treated as distinct unless the relevant option is switched on, which is deliberate — silently merging near-duplicates can destroy data. Order is preserved by first appearance, not sorted. Very large inputs are processed in one pass on the main thread, so hundreds of thousands of lines will pause the page.
Privacy: processed in your browser
The list is processed in memory and the result stays in the textarea; nothing is saved, so a customer export pasted here does not persist after the tab closes.
Frequently asked questions
Why were my duplicates not removed?
Usually invisible differences: a trailing space, a different case, or a different separator. Turn on trimming and case-insensitive comparison and retry.
Does it keep the first or the last occurrence?
The first, and the original order is preserved so the output still reads in the sequence you pasted.
Is there a size limit?
No hard cap, but the pass runs in the main thread; for very large lists paste in chunks to keep the interface responsive.