Skip to main content
⚡ JSDiff
Documentation Online Demo About Blog Changelog GitHub ⭐ 中文

Open Source JavaScript Diff Library

Powerful text, JSON & code comparison based on Myers Difference Algorithm. Trusted by 5000+ developers worldwide.

⭐ 5.2k GitHub Stars 📦 8M+ Weekly Downloads 🔒 100% Private
⭐ Star on GitHub 🚀 Try Online Demo 📖 Read Docs
npm install diff

Why Choose JSDiff?

⚡

High Performance

Myers O(ND) algorithm - same algorithm used in Git. Efficiently handles large documents.

🔒

Privacy First

All processing happens locally. No data sent to servers. Your code stays yours.

📦

Multiple Formats

JSON, Text, Characters, Words, Lines, and Patch formats. One library, all use cases.

🔌

Chrome Extension

Use offline with our browser extension. No internet required after install.

🌍

Multi-language

Full support for English and Chinese. More languages coming soon.

🆓

Completely Free

MIT License. Use in personal and commercial projects without restrictions.

Quick Start

1. Install

npm install diff

2. Import

import * as Diff from 'diff';

3. Compare

const diff = Diff.diffJson(oldObj, newObj);

View full documentation →

Online JSON Diff Tool

✓ Free   ✓ No Signup   ✓ Privacy First   ✓ Works Offline

GitHub Features FAQ Guide 🔌 Chrome Extension

            

Trusted by Developers Worldwide

Join thousands of developers who use JSDiff every day

⭐ 5.2k

GitHub Stars

📦 8M+

Weekly Downloads

👥 10k+

Monthly Users

🌍 150+

Countries

⭐⭐⭐⭐⭐

"JSDiff has become an essential tool in our development workflow. The JSON comparison feature is incredibly accurate and the privacy-first approach gives us peace of mind."

JD
John Doe
Senior Developer @ TechCorp

Read more testimonials →

About Documentation Privacy Policy Terms of Service GitHub

© 2026 JSDiff. Open source under MIT License.