Remove Duplicates
Remove duplicate lines or comma-separated values from your text.
text
formatter
A Developer's Guide to the Remove Duplicates Tool
The Remove Duplicates tool is a simple yet powerful utility for cleaning up lists of data. It can process text with either newlines or commas as delimiters and provides several options to control how "duplicate" is defined.
Features
- Multiple Delimiters: The tool can parse lists where items are separated by New Lines or by Commas.
- Case Sensitivity Control: You can choose whether the comparison should be case-sensitive ("Apple" and "apple" are different) or case-insensitive ("Apple" and "apple" are the same).
- Whitespace Trimming: An option to automatically trim leading and trailing whitespace from each item before comparison, ensuring that
" apple "
is treated the same as"apple"
. - Sort Options: You can either Preserve the order of the first occurrence of each unique item or Sort the final list alphabetically.
- Live Results: The output is updated in real-time as you edit your text or change the options.
- Duplicate Count: A handy card shows you exactly how many duplicate items were removed from your input.
How to Use
- Paste Your Text: Enter your list into the "Input" text area.
- Configure Options:
- Delimiter: Select "New Line" or "Comma" based on your input format.
- Case Sensitive: Toggle this switch depending on your needs.
- Trim Whitespace: It's usually best to leave this on to avoid issues with extra spaces.
- Order: Choose whether to keep the original order or sort the final list.
- View the Result: The "Result" text area will display the unique items from your list, formatted with the delimiter you selected. The "Duplicate(s) Removed" card will show you how many items were filtered out.
- Copy: Click the "Copy" button to grab the cleaned list.