Developer tools

Diff Checker

Diff Checker: Compare Text

Compare two texts by line, word or character, side by side or unified, with ignore options, stats and a downloadable patch.

About this tool

About Diff Checker

Paste two versions of anything (code, a contract clause, a config file, an API response, a translated paragraph) and see exactly what changed. In Lines mode the side-by-side view lines up both versions with their original line numbers, colours removed lines red and added lines green, and highlights the words that changed inside each modified line, so a single edited number stands out. The Unified view shows the same changes in the familiar plus-and-minus format from git. Switch to Words for prose or Characters for typos and IDs. Ignore whitespace, case or blank lines when formatting noise hides the real edits, and long unchanged stretches fold away with a click to expand. The header counts additions, deletions, changed and unchanged lines with a similarity percentage. Open files directly on either side, swap them, and download a standard unified .diff patch. Everything is compared in your browser, so private documents and source code stay on your device. With your own AI key connected, an optional AI button summarizes what changed in plain English.

Built and maintained by Abhi JainUpdated

How to Compare Two Texts

  1. 1

    Add both versions

    Paste the old version into Original and the new one into Changed, or use Open on each side to load files.

  2. 2

    Choose how to compare

    Under Compare by pick Lines, Words or Characters; for lines, choose Side by side or Unified.

  3. 3

    Filter out noise

    Tick Ignore whitespace, Ignore case or Ignore blank lines, and Hide unchanged lines to focus on the edits.

  4. 4

    Save the result

    Click Copy patch or .diff to get a unified diff of the changes.

Diff Checker: questions and answers

How do I compare two text files?

Click Open above each panel and choose the two files, or drag a file onto each side. The comparison updates instantly and the files never leave your computer.

What is the difference between side-by-side and unified diff?

Side by side shows the old and new versions in two columns, aligned line by line, which is easiest to read. Unified shows one column where removed lines start with − and added lines with +, the format used by git diff and code review tools.

What does Ignore whitespace do?

Lines that differ only in spaces, tabs or indentation are treated as the same, like git diff -w. It's useful when code was re-indented or reformatted and you only care about real changes.

Can I apply the downloaded .diff file?

Yes. It is a standard unified diff of the exact texts with three lines of context. The header uses the names of the files you opened (or original.txt and changed.txt for pasted text), so check they match your file paths before running patch or git apply. Ignore options only change what you see, never the patch.

How does the diff work?

It uses the Myers difference algorithm (via the open-source diff library), which finds the smallest set of insertions and deletions that turns one text into the other, then pairs removed and added lines to show word-level changes.

Can AI summarize the differences?

Yes, optionally. Click AI to get a plain-English summary of what changed, grouped by theme, with old and new values. It uses your own AI key, and only the differences (a unified diff, not the unchanged text) are sent, straight from your browser to your provider. The comparison itself never needs a key.

Ready-made Diff Checker presets