"What actually changed?" is one of the most common questions in any technical work — between two drafts, two config files, two exports of the same data. A good diff answers it in seconds; the wrong tool gives you a wall of false positives.
What a diff is really doing
A text diff doesn't understand your content — it finds the shortest set of additions and removals that turns file A into file B, line by line. That's why moving a paragraph can show as a full delete-and-re-add even though the content is identical: from the diff algorithm's perspective, it vanished from one place and appeared in another.
Paste two versions of a text and see exactly what was added, removed, or unchanged.
Open Diff CheckerReading the output
Lines marked added exist in the new version but not the old one. Lines marked removed existed in the old version but were dropped. Everything else is unchanged and shown as context, so you can see where the changes sit. A small, tightly-clustered diff usually means a targeted edit; a diff scattered across the whole file often means formatting changed (line endings, re-indentation) even if the content didn't.
When a plain text diff isn't the right tool
Text diffs compare line by line, which breaks down for structured data where the same information can be written in a different order:
- JSON — reordering keys changes every line in a text diff, even though the data is identical. Use a JSON Compare tool instead — it walks the actual structure and reports only real value changes, ignoring key order.
- CSV / spreadsheets — a text diff treats a reordered row as a delete-and-add. A CSV Diff Checker compares row content directly, so reordering doesn't create false changes.
Common false alarms
Before you assume a diff means a real change, check for these frequent false positives:
- Trailing whitespace — invisible on screen, but a diff sees it as different text.
- Line-ending differences — files edited on different operating systems can flag every line as changed.
- Re-ordering — sorted vs. unsorted lists of the same items look completely different to a naive diff.
Making diffs part of your workflow
The most valuable habit is comparing before you commit — a config change, an exported dataset, a document revision — rather than discovering the difference after something breaks. All three of our comparison tools run locally, so you can safely diff sensitive configs, API responses or internal documents without uploading them anywhere.