Text with duplicates

Result

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 3

Case-sensitive (default)

Line 1
Line 2
Line 3
Line 1
Line 2
Line 3

Case-insensitive

Line 1
Line 2
Line 3
Line 1
line 1
Line 2
Line 3

This 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

All Tools

See all available tools