Back to Blog
🔍

Comparing Two Blocks of Text

You have two versions of a contract, or two snippets of code, and you know someone changed a few words. But which words?

The Power of Diffs

Instead of reading both documents side-by-side and playing a game of "Spot the Difference," you can use a Text Diff tool.

The tool uses algorithms (like the Myers diff algorithm) to calculate the shortest sequence of edits required to turn the old text into the new text.

It highlights exactly what was:

  • 🔴 Removed (usually in red)
  • 🟢 Added (usually in green)

Instantly find typos, unauthorized edits, and code changes with a single click!

Try it yourself!

Put this theory into practice using our free, client-side tool.

Open Tool