Catch a config typo
API_TIMEOUT=3000API_TIMEOUT=30000One extra zero turns a 3-second timeout into a 30-second one. A diff checker spots this in seconds — eyeballing two .env files often misses it.
Compare two blocks of text or code side-by-side with line and word diff.
Last updated
function greet(name) {+function greet(name) { console.log("Hello, " + name);+ console.log(`Hello, ${name}!`);return name;+
return name.toUpperCase();
}+
}
greet("world");+greet("World");A diff checker compares two pieces of text or code and highlights what was added, removed, or changed. Developers use diffs constantly: reviewing code, debugging configuration changes, comparing API responses, validating migrations, and understanding edits before committing them.
Reading diffs is a core developer skill. It separates *real behavior changes* from harmless reformatting and helps you spot the one altered character in a 200-line block. Once you internalize the green / red / yellow rhythm, code review becomes much faster.
Two flavors of diff matter most: *line diff* (which lines changed) and *word diff* or *character diff* (what changed inside a line). A good diff tool lets you switch between them depending on whether you're comparing source code or paragraphs of text.
Drop the original text on the left and the new version on the right. Code, JSON, plain prose, config files — anything works.
Use line diff for source code or structured data. Switch to word diff when comparing paragraphs of text where wording is what matters.
Enable *ignore whitespace* if you only care about meaningful changes; enable *ignore case* when comparing logs or text where casing is incidental.
Removed content appears in red on the left; added content appears in green on the right. Modified lines often appear as one of each, side by side.
Edit either side and watch the diff update live. This is great for crafting a clean patch before opening a pull request.
Conventions used by Coddy's diff checker — and by git diff, GitHub, and most other diff viewers.
| Marker | Meaning | Where it shows up |
|---|---|---|
Red / - | Line removed from the original | Left pane |
Green / + | Line added in the new version | Right pane |
| Yellow / both | Line modified — partial change inside a line | Both panes |
| No color | Unchanged line — common between both versions | Both panes |
@@ ... @@ | Hunk header from git diff — line numbers | Terminal git diff output |
| Word diff | Character or word-level change inside a modified line | Highlighted within a yellow line |
API_TIMEOUT=3000API_TIMEOUT=30000One extra zero turns a 3-second timeout into a 30-second one. A diff checker spots this in seconds — eyeballing two .env files often misses it.
The user can login.
The user can log in.
Word diff highlights login → log in. A line diff would just show the whole line as changed; a word diff isolates the actual edit.
{ "id": 42, "status": "draft", "published": false}{ "id": 42, "status": "published", "published": true}The diff makes it obvious that two related fields changed together. This is the fastest way to verify that a state-changing API call did what it was supposed to.
git diff, pull request views, and IDE compare panels are all the same idea.