Language:
View:
Original
Modified
Compare text and code side-by-side online
Paste two versions of any text or code and see differences highlighted side-by-side with syntax coloring for JSON, YAML, SQL, Python, and more. Comparison happens locally — safe for proprietary code.
Frequently Asked Questions
- How does the diff algorithm work?
- The tool computes a line-level diff similar to git: unchanged lines align, additions and deletions are highlighted so you can scan for what actually changed.
- Can I compare confidential code safely?
- Yes — both inputs are compared in your browser and never transmitted. That is the key difference from many online diff sites.
- What is the best way to diff JSON?
- Format both documents first so keys line up, or use the dedicated JSON Diff tool which compares by structure rather than by line.
- Does it support word-level differences?
- The primary view is line-based, which is the most reliable for code. For prose, line diffs still show changed lines clearly.