01What is Diff Checker?
Diff Checker shows you exactly what changed between two pieces of text. Paste the old version into Original and the new one into Modified, and the result updates as you type. It is handy when you have two copies of a config, a SQL script or an API response and no git repo to compare them in. The comparison is done by jsdiff, the open-source diff library for JavaScript. It is based on the algorithm Eugene Myers described in his 1986 paper An O(ND) Difference Algorithm and Its Variations, the same family git uses by default. It looks for a short edit script, so a single inserted line does not make everything after it look different. The Diff by setting picks the unit: lines, words or chars. Words mode splits on word boundaries and, in the library version we ship, treats a change in the amount of whitespace between words as no change at all. Chars mode compares every single character, spaces included. The View setting picks the layout. Side by Side always works on whole lines, whatever Diff by says. It puts line numbers on both sides and pairs a removed block with the added block that replaced it. Inline follows Diff by. In lines mode each line gets a minus or plus marker. In words or chars mode the text flows as one paragraph, with deletions struck through in red and insertions in green. The stats bar counts added, removed and unchanged units in the current mode. Swap exchanges the two boxes. Copy Diff puts the result on your clipboard with minus and plus prefixes. Here is a worked case. Compare The quick brown fox with The quick red fox in words mode. Inline view strikes out brown and adds red, and the stats show 1 added, 1 removed, 3 unchanged. In lines mode the same edit would mark the whole line as removed and re-added. Know where it gets picky. There is no ignore-whitespace, ignore-case or ignore-blank-lines switch in lines mode. A file saved with Windows CRLF endings compared against the same file with LF endings shows every line as changed. A missing final newline makes the last line show up as changed too. Copy Diff output reads well in a chat message, but it has no hunk headers, so git apply will not accept it. Both texts stay inside your browser tab, because jsdiff runs locally and the page sends nothing out.
Developers and DevOps engineers who need to compare two versions of a config, script or payload quickly, without opening a repo or a desktop diff tool. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Diff Checker
- Paste the old text into Original and the new text into Modified
- Pick Diff by: lines, words or chars
- Choose View: Side by Side for paired line numbers, or Inline to see word or character changes
- Read the added, removed and unchanged counts in the stats bar
- Use Swap to flip the two sides, or Copy Diff to copy the result with - and + prefixes
03Worked examples
- Input:
Lines mode. Original: "line one\nline two\nline three\n"; Modified: "line one\nline 2\nline three\n" - Result:
line one - line two + line 2 line three Stats: 1 added, 1 removed, 2 unchanged - In lines mode a one-word edit shows as the whole line removed and re-added.
- Input:
Words mode. "The quick brown fox" vs "The quick red fox" - Result:
The quick [-brown-][+red+] fox (1 added, 1 removed, 3 unchanged) - Words mode pinpoints the changed word instead of the whole line.
- Input:
Chars mode. "color" vs "colour" - Result:
colo[+u+]r (1 added, 0 removed, 5 unchanged) - Input:
Lines mode. "a\nb" vs "a\nb\n" - Result:
a - b + b Stats: 1 added, 1 removed, 1 unchanged - A missing final newline counts as a change to the last line, so identical-looking lines can appear in the diff.
- Input:
Words mode. "hello world" vs "hello world" - Result:
No differences (0 added, 0 removed, 2 unchanged) - Words mode ignores a change in the amount of spacing between words. Chars mode would show the extra space.
- Input:
Lines mode. "a\r\nb\r\n" (CRLF) vs "a\nb\n" (LF) - Result:
- a - b + a + b Stats: 2 added, 2 removed, 0 unchanged - Same visible text, different line endings, so every line counts as changed.
04Common use cases
- Checking a production .env or YAML config against staging to find the one value that differs
- Comparing two JSON API responses captured from different environments to spot a changed field
- Reviewing a SQL migration someone pasted in chat against the version in your editor
- Confirming that a regenerated lockfile or build artifact only changed in the lines you expected
- Finding a one-character typo between two long strings, such as tokens or URLs, using chars mode
- Checking an edited translation or doc paragraph against the original to see which sentences moved
05Tips
- If every line shows as changed, suspect line endings. Convert both texts to LF in your editor and compare again.
- Side by Side ignores the Diff by setting. To see the exact word or character inside a long line, switch View to Inline.
- Words mode ignores changes in spacing between words, so use chars mode when you are hunting a double space or a tab.
- Copy Diff output has no @@ hunk headers, so paste it into a review comment rather than trying git apply on it.
06Related concepts
Myers algorithm, Unified diff, Patch file, Git diff.
Frequently Asked Questions
What is Diff Checker?
Diff Checker is a free, browser-based developer tool on AIDToolStack. Compare two text blocks and visualize differences side-by-side or inline with line-level granularity. It requires no installation or sign-up and works entirely in your browser.
Is Diff Checker free to use?
Yes. No sign-up, no fees and no usage cap.
Does Diff Checker store my data?
No. It runs in your browser; nothing is uploaded.