Text Diff Checker

Compare text, code, config, or JSON snippets locally and highlight additions, removals, and unchanged content.

Compare two pieces of text, code, config, logs, or JSON in your browser. This diff checker shows added, removed, changed, and unchanged content without uploading your snippets to a remote comparison service.

Runs locally in your browser. Compared text, JSON, settings, and generated diffs are not uploaded.

Comparison happens locally in this browser tab. Text, code, JSON, settings, generated diffs, and copied output are not uploaded or placed in the URL.

How to use Text Diff

  1. Paste the original version on the left and the changed version on the right.
  2. Choose line diff for paragraphs, logs, and config files, word diff for edited sentences, character diff for tiny changes, or JSON mode for normalized formatted JSON.
  3. Turn on Ignore whitespace when indentation or spacing should not count. Turn Case-sensitive off when letter case should be ignored.
  4. Compare the snippets, review the highlighted additions and deletions, then copy the summary or plain text diff.

Examples

Copy patterns and edge cases worth checking.

Compare two text snippets

Original: The signup form saves drafts.
Changed: The signup form saves draft answers.
Word diff highlights the added word answers and shows the summary counts.

Compare code or config

Use Ignore whitespace when indentation changed but the actual values did not.

timeout: 3000
retries: 2

changed to

timeout: 5000
retries: 2
cache: true
Line diff marks the timeout change and the new cache line.

Compare formatted JSON

Invalid JSON is shown as a local parse error with the side that failed.

{"name":"Ada","roles":["admin"]}

changed to

{"roles":["admin","editor"],"name":"Ada"}
JSON mode parses both inputs, pretty-formats them, then compares the normalized JSON.

FAQ

Short answers before you paste real data.

Does this diff checker upload my text?

No. Text comparison, JSON parsing, diff rendering, summary generation, and copy actions run in the current browser tab.

When should I use line, word, or character diff?

Use line diff for code, config, logs, and paragraphs. Use word diff for sentence edits. Use character diff for short strings where one symbol matters.

How does JSON diff mode work?

JSON mode parses both inputs as standard JSON, pretty-formats valid values with stable indentation, and compares the formatted output line by line.

Can I compare very large files?

This browser tool is intended for snippets and small files. Very large character-level comparisons can be slow, so the tool asks you to use line mode or a smaller snippet when needed.

Related tools

Useful next steps that also run locally in your browser.