Compare text sets
Compare line-based lists as intersection, directional differences and union in encounter order.
The example value has been entered. Check it immediately or change the value.
Input is processed in the browser. Refreshing returns a sample value.
Instructions and example
No. Set comparison discards frequency and retains encounter order. Use a frequency tool when repeated counts matter.
Comparing apple, banana, pear against banana, kiwi gives banana in common, apple and pear only on the left, and kiwi only on the right.
Case and spaces are exact; empty lines are excluded. Repeated values collapse within each set.
Frequently asked questions
Are repeated-value frequencies compared?
No. Set comparison discards frequency and retains encounter order. Use a frequency tool when repeated counts matter.
Are Apple, apple and surrounding spaces equivalent?
Case and spaces are exact; empty lines are excluded. Repeated values collapse within each set.
Calculation criteria and reference materials
- MDN — JavaScript String
Case and spaces are exact; empty lines are excluded. Repeated values collapse within each set.
Verification of calculation criteria: · Calculation·verification principles · Report errors