Diff Checker
Paste two versions of a text below to see exactly what changed between them. Differences are shown line by line, either side by side or in a single unified view. Everything runs in your browser — nothing you paste is uploaded.
Runs entirely in your browser — nothing you paste is uploaded or stored.
Comparison options
How to read the comparison
The tool compares your two texts line by line and works out the smallest set of changes that turns one into the other.
Side-by-side view puts the original on the left and the changed version on the right, with corresponding lines kept level. Removed lines are marked on the left, added lines on the right. This view is easiest when you want to see both versions in context.
Unified view shows a single column in the style of git diff: lines starting with - were removed, lines starting with + were added, and unmarked lines are unchanged. This is more compact, easier to copy and paste elsewhere, and it's what's used on narrow screens where two columns won't fit.
A short summary above the output tells you how many lines were added, removed, and left alone — or confirms plainly that the two texts are identical, which is often exactly what you needed to know.
Comparison options
Three options change what counts as a difference.
- Ignore leading and trailing whitespace treats lines that differ only in indentation or trailing spaces as identical. Useful when comparing code that's been reformatted, or text copied from sources that handle spacing differently.
- Ignore case treats uppercase and lowercase as the same. Useful for comparing content where capitalisation isn't meaningful.
- Ignore blank lines skips empty lines entirely, so a version with extra spacing between paragraphs doesn't show up as a wall of changes.
Each option re-runs the comparison immediately, so you can toggle them to see which differences are substantive and which are just formatting.
What people use a diff checker for
- Comparing document drafts — see exactly what an editor or colleague changed between two versions of a document, without reading both in full.
- Reviewing code changes outside of a git workflow — comparing a file before and after an edit, or checking what differs between two configuration files.
- Checking configuration files — spotting the one changed setting between a working config and a broken one is a classic use, and often much faster than reading both.
- Verifying copies — confirming that a file, list, or block of text really is identical to another, which the summary answers directly.
- Comparing exported data — checking what changed between two exports of the same dataset, particularly for line-based formats like CSV or logs.
How line-based comparison works
The comparison uses a longest-common-subsequence algorithm, which is the same general approach behind git diff and most other diff tools. It finds the longest sequence of lines that appears in both texts in the same order, treats those as unchanged, and marks everything else as added or removed.
One consequence worth knowing: this tool compares whole lines. If you change a single word in a long line, that line is reported as removed and re-added rather than highlighting the individual word. For most uses — code, config, structured text — line comparison is what you want. For prose where you're hunting a single changed word in a long paragraph, it's a blunter instrument, and putting each sentence on its own line before comparing makes the result much easier to read.
Frequently asked questions
- Is my text sent to a server?
- No. The comparison runs entirely in your browser. Nothing you paste is uploaded, logged, or stored.
- How large a text can I compare?
- There's no fixed limit, though very large inputs take longer to process. Everything is computed locally, so it depends on your device.
- Does it highlight the specific words that changed?
- Not currently — comparison is line by line, so a changed line is shown as removed and re-added. Splitting long paragraphs into separate lines before comparing gives a more readable result.
- Why do the two texts show as different when they look the same?
- Usually invisible differences: trailing spaces, different indentation, or different line endings. Try the "ignore leading and trailing whitespace" option.
- Can I compare files?
- Paste the contents of each file into the two boxes. The tool works with any plain text — code, config, CSV, logs, or prose.
- Is it free?
- Yes, completely free with no sign-up.