Compare Two Texts and See the Differences

Published 2026-05-29

Try Text Diff Tool free →

The problem

You have two versions of something — a config file, a code snippet, a contract draft, an API response — and you need to know exactly what changed. Reading both side by side and trying to spot differences manually is slow and error-prone, especially when the changes are subtle: a single character, a swapped line, a removed comma.

Git has diff, but that only works for tracked files. If you are comparing two Slack messages, two database records, two email drafts, or two outputs from different environments, you need a tool that takes arbitrary text and highlights the differences.

How it works

  1. Paste the original text in the left panel.
  2. Paste the modified text in the right panel.
  3. See the diff instantly — added lines are highlighted in green, removed lines in red, and changed lines show the specific characters that differ.

Everything runs in your browser. Neither version is sent anywhere.

When to use this tool

Tips for better diffs

If you are comparing JSON, format both sides first (use the JSON Formatter) so the diff is line-by-line rather than one giant blob. The same goes for minified code or SQL — formatting first makes the meaningful differences stand out.

For configs, sort the keys alphabetically on both sides before diffing. Otherwise a reordered but identical config will show up as entirely changed.

Why I built it

I often need to compare things that are not in a git repo — API responses from two environments, config files from different servers, text that someone pasted in a chat. Opening a terminal to use diff means saving both texts to temporary files first. This tool skips that step entirely.


Related tools

Joe — Software engineer with 20+ years of experience. Built ToolRack to provide fast, private tools without the bloat.