Dev

Diff Checker

Compare two text or JSON versions side by side or inline with word-level highlights. Export clean unified patches locally.

Paste the original and the changed text
Original / Changed -
or drop files here
Compare as
View
Differences -
Added, removed, and changed lines appear here
Settings Word highlights, all context
How It Works

How to Use Diff Checker in 3 Steps

1

Add Both Versions

Paste the original text on the left and the modified version on the right, or drop two files. Select JSON to ignore key-order formatting.

2

Inspect the Differences

Review removed lines in red, added lines in green, and word-level edits inline. Toggle Side by side or Inline and jump between changes.

3

Export Your Patch

Copy or download a unified .diff patch for Git, or save a standalone color-coded HTML diff report for code reviews.

FAQ

Diff Checker: Frequently Asked Questions

What diff algorithm does this tool use?

Line comparison uses Myers diff algorithm via jsdiff, matching standard Git behavior. Changed lines then run a second word-by-word pass for inline highlights.

How does JSON comparison mode work?

The tool parses both inputs, sorts object keys recursively, and formats each side with two-space indentation. Formatting differences disappear so only real value changes appear.

What do Ignore whitespace and Ignore case do?

Ignore whitespace treats spacing and indentation changes as equal. Ignore case matches uppercase and lowercase letters, while exported patches still keep your exact original text.

Is there a file size limit?

Files up to 50 MB load in the browser. The table renders up to 20,000 rows for speed, while downloaded patch files remain complete.

Can I apply the downloaded patch with Git?

Yes. Rename the original and changed headers to your target file paths, then run git apply changes.diff or patch.

Is my text uploaded anywhere?

No. JavaScript processes all text and archives inside your browser tab. Your files never leave your device.

Toolity Dev

Explore All Dev Tools

Format, minify, inspect, and validate code and developer payloads locally.

Copied to clipboard