Diff Checker
Compare two texts or files side by side, by line, word or character, and export the changes as a .diff.
- Free
- No sign-up
- Runs in your browser
See it in action
Two versions of a notice, compared line by line
− 9am+ 8:30am+ allResult
2 lines changed89.3% similar
0 lines · 0 characters
0 lines · 0 characters
Paste two versions above, or tap an example, and the differences appear here as you type.
Runs in your browser. Nothing you type is uploaded or stored, and no sign-up is needed.
Updated
See it in action
Two versions of a notice, compared line by line
− 9am+ 8:30am+ allResult
2 lines changed89.3% similar
A diff checker shows exactly what changed between two versions of a text. Paste or open the original and the changed version, and this tool highlights added, removed and changed lines, with the changed words marked inside each line. Compare by line, word or character, ignore case, whitespace or blank lines, and copy or download the result as a standard unified .diff. It is free, needs no sign-up, and nothing you paste leaves your browser.
How to use it
Paste the original version on the left and the changed version on the right, open two files, or tap an example. The differences appear as you type.

Choose how to compare: by lines with word highlights, or by words or characters for prose. Turn on Ignore case, whitespace or blank lines to hide changes that do not matter to you.

Switch to the unified view to see the changes as a patch, then copy them or download a .diff file.

Options
- Original and changed text
- Paste each version, or use Open file to load a local text file (up to 1 MB). The file is read in your browser and never uploaded.
- Compare by lines
- The usual view for documents, code and config files: whole lines are matched, and inside each changed line the words that differ are highlighted.
- Compare by words or characters
- For prose and short strings: the text flows as one block with removed parts in red and added parts in green.
- Side by side or unified
- Side by side puts the two versions in columns with line numbers (stacked on phones); unified shows one column with - and + lines, the format used by patches.
- Ignore case
- Treats Apple and apple as the same, so only real wording changes are shown.
- Whitespace
- Compare all spaces, ignore spaces and tabs at line ends, or ignore whitespace completely.
- Ignore blank lines
- Leaves empty lines out of the comparison, so added or removed spacing between paragraphs is not counted.
- Only changes
- Hides long unchanged stretches and keeps 3 lines of context around each change, with a count of the hidden lines.
- Swap, copy and download
- Swap the two sides, copy the differences as a unified diff, or download them as a .diff file.
What a diff checker does
A diff checker lines up two versions of a text and shows what was removed, what was added and what stayed the same. Instead of reading both versions side by side and hoping to spot the edits, you see every change marked, with line numbers, and a count of how much changed.
This one runs entirely in your browser, so you can compare contracts, drafts, code or configuration files without sending them anywhere.
How the comparison works
The tool uses Eugene Myers' O(ND) difference algorithm, the method Git's own documentation lists as its default diff algorithm ("myers: the basic greedy diff algorithm"). It finds the smallest set of removals and additions that turns the original into the changed version, so you never see a change that is not really there.
In line mode, lines that were edited rather than simply added or removed are paired up, and a second word-level comparison marks the exact words that differ inside each pair. The similarity score counts the words the two versions share, so two paragraphs that differ by one word read as about 90% similar rather than 0%.
Reading the results
- Red with a minus sign: text that is in the original but not in the changed version.
- Green with a plus sign: text that was added in the changed version.
- Amber count: lines that exist in both versions but were edited; the changed words inside them are highlighted.
- Line numbers show where each line sits in its own version, so you can find it in your file.
- With Only changes on, a bar such as "⋯ 12 unchanged lines" stands in for a long stretch that did not change.
The unified diff format
The unified view and the .diff download follow the unified format of GNU diff (diff -u), which patch tools and code review sites read. It starts with a --- line naming the original file and a +++ line naming the changed file. Each group of changes, a hunk, begins with a header such as @@ -1,4 +1,5 @@: the original lines start at line 1 and span 4 lines, the changed lines start at line 1 and span 5. Lines common to both start with a space, removed lines with -, and added lines with +.
Below is the exact output of this tool for a small configuration change: two lines edited and one line added.
- --- config-old.yml
- +++ config-new.yml
- @@ -1,4 +1,5 @@
- port: 8080
- -host: localhost
- -debug: true
- +host: 0.0.0.0
- +debug: false
- timeout: 30
- +retries: 3
Source: GNU diffutils manual, Detailed Description of Unified Format
When to ignore whitespace, and when not to
Ignoring whitespace is useful when a file was re-indented or someone's editor trimmed spaces at the ends of lines: the real edits stand out instead of being buried in spacing changes. Ignore case helps when only capitalisation was tidied up.
Turn these options off when spacing carries meaning. In Python code and YAML files, indentation decides structure, so a whitespace-only change can change what the file does. When in doubt, compare with all whitespace counted first.
Common uses
- Checking what changed between two drafts of a contract, policy or essay before you sign or submit.
- Reviewing a code or configuration change before you commit or deploy it, and sharing it as a .diff.
- Comparing two exports, lists or logs to find the lines that appear in only one of them.
- Proofreading an edited article or translation against the original line by line.
Limits
- Plain text only: formatting in Word or PDF files is not compared; copy the text out first.
- Up to 300,000 characters across both sides, and files up to 1 MB each. Binary files are refused.
- If two texts are so different that more than 4,000 separate edits would be needed, the tool shows them as a full replacement instead of a detailed comparison, and says so.
- It shows differences; it does not merge them or judge which version is right.
Questions
How do I compare two texts for differences?
Paste the original on the left and the changed version on the right. The differences are highlighted at once: removed text in red, added text in green, and edited words marked inside each changed line.
Can I compare two files?
Yes. Use Open file above each box to load a text file from your device, up to 1 MB each. The file is read in your browser and is not uploaded.
What is the difference between side-by-side and unified view?
Side by side shows the two versions in columns with their own line numbers. Unified shows a single column where removed lines start with - and added lines with +, the format used for patches.
Can it ignore whitespace and capital letters?
Yes. Turn on Ignore case, and choose whether to ignore spaces at line ends or all whitespace. Keep whitespace counted for Python or YAML, where indentation changes the meaning.
Is my text stored or sent anywhere?
No. The comparison runs in your browser; nothing you paste or open is sent to a server or saved.
How is the similarity percentage worked out?
It is the share of words the two versions have in common: twice the matching words divided by the total words on both sides.
More free tools
- JSON Formatter & ValidatorFormat, validate and fix JSON: exact error line and column, beautify or minify, tree view, big numbers kept exact.Use it
- Regex TesterTest a JavaScript regex live: highlighted matches, capture groups, replace, every flag and a plain-English explanation.Use it
- UUID GeneratorGenerate v4, v7 or v1 UUIDs in bulk, as GUIDs, URNs or a JSON array, and check any UUID's version and time.Use it
- Calcul âgeIn FrenchExact age calculator in French: years, months and days between a date of birth and any date.Use it
AI tools for the same job

CodeRabbit
Free trialFrom $30/moAI code reviews and agentic change management
Coding & Development
Qodo
Free trialUsage-based, from $0.015AI code review for agents, governance for humans.
Coding & Development
Amp
FreemiumFrom $20/moAmp is a coding agent and development environment built for the frontier.
Coding & Development