Text & Code Diff Checker

Compare two versions of configs, JSON, SQL, or prose line-by-line locally using LCS diffing.

How It Works & Reference

Paste original text on the left and modified text on the right, then click Compare. Optional toggles let you ignore trailing spaces or blank lines.

Diff Output Legend

PrefixMeaningColor
+ (plus)Line added in modified textGreen
- (minus)Line removed from original textRed
(space)Unchanged context lineNeutral

Frequently Asked Questions

How does the diff algorithm work?

It runs a Longest Common Subsequence (LCS) line diff directly in JavaScript to find minimal additions and deletions.

Is my source code or config uploaded?

No, comparison runs 100% offline in your browser.

Can I compare JSON objects?

Yes — format both JSON payloads with our JSON Formatter first, then paste them here for a clean line diff.

Related Tools