Text Compare and Diff
Compare two lists in your browser: union, intersection, lines only on one side, and a unified-style diff. Separate them with a --- line.
What this text compare and diff does
The report shows the union in first-seen order, the lines present in both texts, the lines unique to each side, and a line diff built from the longest common subsequence. The diff marks a line with - when it exists only in the first text and + when it exists only in the second.
How to use it
Text Compare and Diff: paste the two texts into the box above, set Separator line (default "---"), and press Run to get the comparison below.
Worked example
Input:
apple
banana
cherry
---
banana
cherry
date
Output:
== Union (4) ==
apple
banana
cherry
date
== Intersection (2) ==
banana
cherry
== Only in the first text (1) ==
apple
== Only in the second text (1) ==
date
== Line diff ==
- apple
banana
cherry
+ date
A line starting with - exists only in the first text; + only in the second.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads two texts and returns comparison; reloading the page discards both.
The report shows the union in first-seen order, the lines present in both texts, the lines unique to each side, and a line diff built from the longest common subsequence. The diff marks a line with - when it exists only in the first text and + when it exists only in the second.
Compare two lists in your browser: union, intersection, lines only on one side, and a unified-style diff. Separate them with a --- line.
How to use it
Text Compare and Diff: paste the two texts into the box above, set Separator line (default "---"), and press Run to get the comparison below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads two texts and returns comparison; reloading the page discards both.
What to Expect
Best for
- Converting two texts to comparison when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
apple banana cherry --- banana cherry date
Sample output
== Union (4) == apple banana cherry date == Intersection (2) == banana cherry == Only in the first text (1) == apple == Only in the second text (1) == date == Line diff == - apple banana cherry + date A line starting with - exists only in the first text; + only in the second.
Frequently asked questions
How do I use the text compare and diff?
Text Compare and Diff: paste the two texts into the box above, set Separator line (default "---"), and press Run to get the comparison below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.