Which duplicate is kept?
You can keep either the first or last occurrence. The retained line keeps its original spelling unless trimming is enabled.
Find repeated or one-off lines, inspect frequencies, and sort or shuffle the live result.
Workspace
Preparing line cleanup…
0 considered, 0 distinct, 0 duplicate occurrences, and 0 result lines.
Add lines to populate the report.
Matching options affect comparison only; the retained line keeps its original content unless edge trimming is enabled.
You can keep either the first or last occurrence. The retained line keeps its original spelling unless trimming is enabled.
Yes. The Output control can return one of every distinct line, only lines that occur more than once, or only lines that occur once.
Yes. Numeric sorting accepts lines that are entirely valid numbers. Other lines remain grouped after numeric values.
Turn on Ignore repeated spaces and tabs to compare lines after collapsing runs of horizontal whitespace. The retained line itself is not rewritten by that matching rule.
Visually equivalent composed and decomposed text, such as two encodings of café, can be matched as duplicates while preserving the original kept line.
It contains every distinct retained line and its occurrence count. Values that could be interpreted as spreadsheet formulas are safely prefixed when exported.
Random ordering is an intentional action. If the source or options change, the live unique list is shown until you shuffle the updated result again.