Diff Checker — Compare Text Online
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Original text
Changed text
About this tool
Paste the original on the left and the new version on the right. Changed lines are paired up and the exact words that differ are highlighted, so small edits inside long lines are easy to spot.
Switch between side-by-side and unified (git-style) views. Ignore whitespace to skip indentation and spacing changes, or ignore case to compare text regardless of capitalisation. The header shows how many lines were added and removed, or “No differences” when the two texts match.
For example, if one line changes from “Supports JSON, YAML and XML.” to “Supports JSON, YAML, XML and SQL.”, both lines are shown together and only the altered words are marked: removed words struck through in red, added words in green. Use Swap to flip the two sides, or Sample to see a worked comparison.
The comparison is by line, so it suits code, configs, contracts and drafts better than text that is one long paragraph. Moving a block counts as a deletion in one place and an addition in another. When ignore options are on, lines that differ only in the ignored way are treated as equal and each side still shows its own original text.
Works for code, contracts, essays, configs — anything text. Both versions stay in your browser.
Frequently asked questions
Can I compare code with this?
Yes. It compares line by line like git diff; use “Ignore whitespace” to hide indentation-only changes.
What does “Ignore whitespace” actually ignore?
Runs of spaces and tabs are treated as a single space, and leading and trailing whitespace on each line is ignored. It does not ignore blank lines, so an added empty line still shows as a change.
Do line endings matter?
No. Windows (CRLF) and Unix (LF) line endings are normalised, so files from different systems do not show every line as changed.
Is there a size limit?
There is no fixed limit. Texts of tens of thousands of lines work, though very large inputs take a moment to compare.
Can it compare files or folders?
No. It compares two pieces of pasted text. For folders or repositories use a tool such as git diff.
Is my text stored?
No. The comparison runs locally and nothing is saved or uploaded.