Remove Extra Spaces
Trim lines and collapse repeated spaces while keeping line breaks.
Deduplicate a line-based list without sorting it. Each first occurrence remains in its original position.
Loading workspace…
Preparing the controls for this tool. Your files have not been selected or uploaded.Remove repeated lines while keeping the first occurrence. Choose whether comparisons should ignore letter case.
Your files and inputs are processed in your browser and are not uploaded. Download or copy results before leaving. Normal site and library requests still reach the hosting service.
The lines apple, pear, apple become apple, pear. In case-insensitive mode, Apple and apple match, and the first spelling is kept.
Input: apple pear apple Output: apple pear
Spaces are part of a line, so "apple" and " apple" are different. Clean whitespace with Remove Extra Spaces first if that is appropriate. This compares complete lines; it does not deduplicate CSV records by selected keys.
No. It keeps the first matching line and retains input order. Use Sort Lines afterward if you need alphabetical or numeric ordering.
Blank lines are entries too. Repeated identical blank lines are removed like other duplicates.
Files and inputs are processed locally in your browser and are not uploaded. The hosting service receives normal website and library requests. Download or copy results before leaving.