TEXT · DIFF

Text Diff Checker

Compare two texts and find the differences. Paste or upload your files, click Find Difference, and get a clear side-by-side view with word-level highlighting.

Original text
Changed text
Collapse unchanged
Paste text above and click Find Difference to see results.

What is a String Diff Viewer?

A string diff viewer compares two pieces of text and highlights every difference — added characters (green), removed characters (red), and unchanged text. It supports both line-level diffs and character-level diffs for spotting subtle single-character changes.

Unlike a JSON diff, a string diff works on any plain text — code, prose, config files, CSV data, or anything else you can paste.

How to compare two text strings online

  1. Paste the original text into the left panel.
  2. Paste the modified text into the right panel.
  3. Differences are highlighted instantly.
  4. Switch between line-level and character-level diff for different granularities.

Frequently Asked Questions

What is the difference between a line diff and a character diff?

A line diff compares entire lines and marks lines as added or removed. A character diff marks the exact characters that changed within each modified line. Character diff is more precise but can be harder to read for large changes.

Can I diff source code with this tool?

Yes. The tool works on any plain text, including source code in any language, SQL queries, configuration files, and prose.

Is there a size limit?

No. All diffing runs in your browser with no upload. Very large texts may take a moment to process, but there is no hard size limit.

Why would I use a string diff instead of a JSON diff?

Use a string diff when your data is not valid JSON — for example, plain text, code snippets, CSV, XML, or YAML. For JSON specifically, the JSON Diff Viewer gives more meaningful semantic results.