File Diff Checker

Paste two versions of a file and get the exact differences highlighted, green for insertions, red for deletions, amber for in-place changes. Works on code, configs, prose, CSV data and JSON. No download and no sign-up: paste and compare.

How to diff two files

  1. 1

    Paste the original

    Put the "before" version into the left panel.

  2. 2

    Paste the modified version

    Put the "after" version into the right panel.

  3. 3

    Tune the comparison

    Tick "ignore whitespace" to hide formatting-only changes, or "ignore case" to compare without letter case.

  4. 4

    Read the result

    Added, removed and changed lines are colour-coded in the comparison table, with a summary of additions, deletions and unchanged lines on top.

How the comparison works

The tool compares the two texts line by line in a single pass. A line is reported as modified when the content at the same position differs on both sides. There is no view mode to pick: the side-by-side table is the result.

  • Grey rows are lines that match on both sides.
  • Green rows are lines present only in the modified text.
  • Red rows are lines present only in the original text.
  • Amber rows are lines that exist in both texts but differ.

Because the comparison is positional, inserting a block of lines shifts everything below it, and those lines are reported as changed.

Ignoring what doesn’t matter

The tool offers two toggles to keep the comparison focused:

  • Ignore whitespace, formatting-only changes won’t appear.
  • Ignore case, useful for SQL keywords or configuration keys.

Algorithm

The comparison runs in a single pass, so results appear near-instantly even for large files. It does not attempt to find a longest common subsequence the way git diff does; two files with content added at the top will report the rest of the file as modified.

Common uses

  • Code review before opening a PR, to sanity-check what you actually changed.
  • Config auditing between a staging and production environment file.
  • Content proofing between a draft and a final article.
  • License comparison when upstream dependencies ship new LICENSE files.
  • Data reconciliation across two CSV exports from different systems.

Common mistakes

  • Diffing two minified files. They are one line each, so everything is reported as “whole line changed”. Pretty-print both sides before pasting.
  • Diffing files with different line endings. CRLF and LF are compared as exact characters, so every line shows as changed; normalize the line endings before pasting.
  • Confusing whitespace-only diffs with logic changes. Use the “ignore whitespace” toggle when a teammate reformatted a file.

Frequently Asked Questions

The text you paste is transmitted to our servers as part of the page request, because the comparison runs on the page. Nothing is uploaded as a file, but avoid pasting secrets you would not want to share.

No. The comparison is always line based. A minified JSON file is a single line, so any change reports the whole line as changed; format both sides before pasting to see only the real differences.

No. The tool is a visual comparison only: there is no patch export. If you need a patch file, compare the two files on your own machine with git diff --no-index and save the output.

There is no hard limit. Tens of thousands of lines are fine; very large files may take a couple of seconds before the comparison appears.

Related Tools

Tool available in other languages