Runs 100% in your browserYour data never leaves your device. zero uploads.

Online Diff Checker

Original
Loading...
Modified
Loading...
Diff Result
+8-6
Original
Modified
1
function calculateTotal(items) {
1
function calculate(items, tax = 0) {
2
let total = 0;
2
let total = 0;
3
for (let i = 0; i < items.length; i++) {
3
for (let i = 0; i < items.length; i++) {
4
total += items[i].price;
4
total += items[i].price * items[i].quantity;
5
}
5
}
6
return total;
6
return total * (1 + tax);
7
}
7
}
8
8
9
const cart = [
9
const cart = [
10
{ name: "Apple", price: 1.50 },
11
{ name: "Banana", price: 0.75 }
10
{ name: "Apple", price: 1.50, quantity: 2 },
11
{ name: "Banana", price: 0.75, quantity: 3 },
12
{ name: "Orange", price: 2.00, quantity: 1 }
12
];
13
];
13
14
14
console.log("Total:", calculateTotal(cart));
15
const taxRate = 0.08;
16
console.log("Total with tax:", calculateTotal(cart, taxRate));

GitHub-Style Visualization

Side-by-side diff view with character-level highlighting, just like GitHub's pull request interface.

Advanced Diff Algorithm

Powered by the industry-standard Myers diff algorithm used by Git for accurate and reliable text comparisons.

100% Client-Side

All processing happens in your browser. No data is uploaded or stored on any server.

How to use the diff checker

Getting started

  • Paste or type your original text on the left and modified text on the right
  • Click "Open" to load files directly from your computer
  • Toggle "Ignore whitespace" or "Ignore case" to focus on meaningful changes

Understanding results

  • Green highlights indicate additions, red shows removals
  • Character-level differences are highlighted within modified lines
  • Copy or download the diff output for documentation and code reviews

For Developers

Compare source code versions, review Git changes, debug configuration files, and validate API responses.

For Writers

Track document revisions, compare article drafts, review editorial changes, and verify translations.

For Teams

Review policy changes, compare specifications, validate proposals, and audit data between sources.

Frequently asked questions

What file types can I compare?

Any text-based content: source code (JS, Python, Java, C++), markup (HTML, XML, Markdown), data formats (JSON, CSV, YAML), config files, and plain text.

Is my data secure?

Yes. All comparison happens locally in your browser. No data is sent to any server, uploaded, or stored anywhere.

How accurate is the diff algorithm?

We use the industry-standard Myers diff algorithm, the same algorithm used by Git and other professional version control systems.

Is there a file size limit?

The tool handles substantial text sizes efficiently. For very large files (>1MB), enable "Ignore whitespace" to improve performance.

Can I export the diff results?

Yes. Copy to clipboard or download as a text file. The exported format follows standard diff conventions compatible with most development tools.

100% private — your data never leaves your browser

No registration, no tracking of your content, no server uploads. Don't just take our word for it:

No server, no uploads

Your files and text are processed entirely on your device. Nothing is ever sent to us.

Works offline

Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.

Verify it yourself

Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.