How does it work?
This tool keeps only the duplicate lines from your text, removing any lines that appear only once. You can choose whether the comparison should be case-sensitive or case-insensitive.
Example of keeping only duplicates
Original text
Line 1
Line 2
Line 3
Line 1
Line 4
line 1
Line 2
Line 5
Line 3Case-sensitive (default)
Line 1
Line 2
Line 3
Line 1
Line 2
Line 3Case-insensitive
Line 1
Line 2
Line 3
Line 1
line 1
Line 2
Line 3This tool is useful for:
- Finding repeated items in a list
- Identifying duplicate entries in data
- Analyzing text for repetitive content
- Extracting common elements from multiple sources
- Detecting potential data entry errors
Options:
- Case sensitive comparison: When enabled, "Line" and "line" are treated as different lines. When disabled, they are considered the same line.
Note:
This tool preserves all occurrences of duplicate lines in their original order. If you want to remove duplicate lines instead of keeping only the duplicates, use the "Remove duplicates" tool.
Related Tools
- Remove Duplicates - Remove duplicate lines from text
- Group and Count - Group similar lines and count occurrences
- Sort Text - Sort lines alphabetically
- Grep - Filter lines matching a pattern
- Inverted Grep - Filter out lines matching a pattern
All Tools
See all available tools