JSON Parser

Text Diff Checker — Compare Two Texts

Paste two versions of any text and see exactly which lines were added, removed or left alone. Removed lines are red, added lines are green, and a summary shows the counts. It runs in your browser, so documents, configs and code never leave your device.

How to compare two texts

  1. Paste the original into Original and the new version into Changed.
  2. Read the Differences panel: lines starting with + are new, lines starting with − were removed, unmarked lines are unchanged.
  3. Turn on Ignore case or Ignore whitespace to hide differences you don't care about.

How the comparison works

The tool compares line by line. A line that was edited shows up as the old line removed and the new line added, because the line as a whole differs. With Ignore whitespace, runs of spaces and tabs are treated as a single space and leading or trailing spaces are ignored. With Ignore case, Hello and hello count as the same line. Only the comparison is relaxed: removed and added lines are shown exactly as you typed them, and unchanged lines are shown from the Changed version.

OriginalChangedResult
port=8080port=8080Unchanged
debug=truedebug=false− debug=true, + debug=false
name = appname = appUnchanged with Ignore whitespace

Common uses

  • Reviewing edits to an article, contract or email draft.
  • Comparing two versions of a configuration file, .env file or log output.
  • Checking what changed between two copies of a code snippet or SQL script.
  • Verifying that a file really is identical after a migration or copy.

Text diff or JSON diff?

A line diff is ideal for prose and plain files. For structured data, where key order or formatting can change without the meaning changing, use JSON Diff, which compares by key and value. Format the data first with the JSON parser if you do want a line comparison. For SQL, run both versions through the SQL formatter before comparing.

Frequently asked questions

How do I compare two texts?
Paste the original into the first box and the modified version into the second. The differences appear immediately below, with removed lines in red and added lines in green.
Can it ignore whitespace or case?
Yes. Turn on Ignore whitespace to skip spacing differences, or Ignore case to treat upper and lower case as equal.
Is my text uploaded?
Everything runs in your browser — nothing you enter is uploaded to a server.
Handles JSON files up to 20MB smoothly