Comparison keys are separate from output text
Whitespace trimming and lowercase conversion are applied to a temporary key. The first original line is retained exactly, so normalization does not silently rewrite its visible content.
Paste text and instantly remove duplicate lines while preserving order.
Enter the text containing duplicate lines to clean.
Click to remove all duplicate lines, keeping the first occurrence.
Click copy to grab the deduplicated text output.
This tool de-duplicates newline-separated text with controls for letter case, surrounding whitespace, and output order. It keeps the original version of the first matching line. That makes the behavior suitable for cleaning simple lists while preserving capitalization and spacing from the chosen occurrence.
A concrete input and expected output from the current implementation.
Input
Bee Honey Bee Honey
Expected output
Bee Honey
With case sensitivity on, whitespace trimming on, and order preservation on, the second Bee and the padded Honey line match earlier normalized keys and are removed.
Whitespace trimming and lowercase conversion are applied to a temporary key. The first original line is retained exactly, so normalization does not silently rewrite its visible content.
Each normalized key is checked once in input order. Disabling order preservation sorts the surviving original lines after duplicate detection.
The first occurrence is kept. Later lines with the same comparison key are removed.
No. Trimming affects comparison only. The retained first line keeps its original spaces.
The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.
Count words, characters, sentences, and paragraphs in any text instantly.
Convert text between uppercase, lowercase, title case, sentence case, and more.
Paste text and hear it read aloud using Web Speech API. Adjust voice, speed, and pitch in real time.
Compare two blocks of text side-by-side and highlight differences instantly.
Strip extra whitespace, fix line breaks, and normalize text for clean output.
Search and replace text with support for regex, case-sensitive, and whole-word matching.