Qgenx Tools

Text Diff Checker

Compare original and modified text side by side locally in your browser with added, removed, and unchanged line counts and zero uploads.

Runs in your browser
0
Added
0
Removed
0
Unchanged
0
Diff lines

About this tool

Both inputs are split into lines, normalized according to your case and whitespace toggles, and aligned using a Longest Common Subsequence (LCS) matrix in memory. Added lines are prefixed with +, removed lines with -, and unchanged lines with two spaces.

How to use the diff checker

  1. Paste the original text into the left box and the changed text into the right box.
  2. Read the differences. Lines that were removed, added or changed are highlighted line by line.
  3. Use Swap to exchange the two texts if you pasted them the wrong way round.
  4. Copy the diff to share the changes, or use Clear to start again.

What the comparison shows

The checker compares the two texts line by line and then within changed lines, so you can see exactly which words moved, were replaced or were deleted. A line that only gained a word shows the new word, so small edits do not look like whole rewrites.

Whitespace and line breaks are compared as they are unless you tick Trim spaces, so an extra blank line is a real change. Ignore case treats Draft and draft as the same word. This is useful for code and contracts, where a single character can matter.

A worked example

The sample texts are two drafts of a short report. Draft 2 changes three numbers, one plan and one deadline, and it adds a line about hiring. The diff marks each change, so you can check every edit without rereading the whole document.

  • Check what changed between two versions of a contract before you sign.
  • Compare a translated text with the original to confirm no sentence was dropped.

Who uses a text diff

  • Editors and writers reviewing changes from a colleague or a client.
  • Developers comparing a configuration file, a SQL query or a snippet of code.
  • Legal and compliance staff checking an agreement against a previous draft.
  • Students comparing their own draft with a model answer.
  • Anyone who wants to be sure what changed before they publish.

Tips and common mistakes

  • Make sure both texts use the same line endings. A mismatch can show every line as changed.
  • Trailing spaces count as differences. Clean the text first with the Whitespace Cleaner if they are not important.
  • For long documents, compare one section at a time, so the highlighted changes are easy to follow.
  • Both texts are compared in your browser. Nothing is uploaded, so confidential drafts stay on your device.
  • A diff shows what changed, not whether the change is correct. Read the highlighted lines carefully.

Frequently asked questions

No. Diff calculation runs 100% inside your browser with zero network calls.

Related browser tools