QuikTool

Text Diff Checker

Compare two texts online and see added and removed lines side by side.

Runs in your browser. Nothing is uploaded.

What is Text Diff Checker?

A diff checker compares two pieces of text and shows exactly what changed between them: which lines were added, which were removed and which stayed the same. Developers use diffs to review code, compare configuration files and API responses, check what a deployment changed, and merge edits from different people. Writers and editors use them to see what changed between two drafts.

This online diff checker puts your original text on the left and the changed text on the right and compares them as you type. Added lines are green with a plus sign and removed lines are red with a minus sign, so the result is readable even without colour. When a line was edited rather than replaced, the individual words that changed are highlighted inside it, which makes a one-word edit easy to spot. You can switch between side-by-side and inline views, and long stretches of unchanged text are folded away so a small edit in a big file stays easy to find.

You can ignore differences in whitespace or in upper and lower case, swap the two sides with one click, and copy or download the result as a standard unified diff that works with git and patch. Large texts are compared in a background worker so the page stays responsive. Everything runs in your browser and nothing you paste is uploaded, so it is safe to compare private code and documents.

How to use

  1. Paste the original text in the left box and the changed text in the right box. The comparison updates as you type, or press Compare.
  2. Read the summary to see how many lines were added and removed.
  3. Switch between the side-by-side and inline views, and expand any folded block of unchanged lines.
  4. Tick Ignore whitespace or Ignore case to hide differences you do not care about.
  5. Copy the result or download it as a .diff file to share it or use it as a patch.

Example

Input

Original: the quick brown fox
Changed: the slow brown fox

Output

- the quick brown fox
+ the slow brown fox
(the words "quick" and "slow" are highlighted)

Frequently asked questions

What does ignore whitespace do?
It ignores spaces and tabs at the start and end of each line and treats runs of spaces inside a line as one, so re-indenting a block does not show up as a change. Differences between Windows and Unix line endings are always ignored.
Why is a moved line shown as removed and added?
A line diff compares text in order and does not track moves. A line that moved appears as a removal in its old place and an addition in its new place.
Can I use the result as a patch?
Yes. Download the .diff file or copy the unified diff. It uses the standard format with three lines of context around each change, so tools such as git apply and patch can read it.
Is my text uploaded?
No. Both texts are compared in your browser and nothing is sent to a server.