Find the differences between two texts
Paste the original text and the edited version: every addition shows up in green, every deletion in red. Ideal for a contract, an article or code, and nothing ever leaves your browser.
- Free
- Lines, words or characters
- Side by side or unified
- 100% private
100% private — Everything is processed directly in your browser: your files, voice, and image are never sent to Chatzam's servers.
How do you compare two texts?
-
Paste both versions
The original text in the first box, the edited text in the second. Mixed them up? The swap button switches them.
-
Choose the level of detail
By line for code or a list, by word for written text, by character to spot a comma or a typo.
-
Read the differences
Additions in green, deletions in red, with a count of each. Switch between side-by-side and unified view as you prefer.
Every change at a glance
Three levels of detail
Lines, words or characters: from skimming a long document down to a single changed letter.
Two views
Side by side to read both versions in parallel, or unified to see every change in a single text.
Ignore what doesn't matter
Ignore case (upper and lower case) and whitespace to see only the real changes.
Confidential
The comparison runs in your browser: contracts, source code and confidential texts are never uploaded.
Why compare two versions of a document?
Checking two versions of a contract, a résumé or an article by eye is slow and unreliable: a changed date, an added "not" or a different amount is easy to miss. A text compare tool, also called a diff checker, lines up the two versions automatically and highlights every difference. Typical uses: seeing the edits a proofreader made without track changes, checking that a contract sent back for signature is identical to the one you approved, spotting what changed between two versions of a script or a config file, or comparing a text before and after running it through a grammar checker or an AI.
Lines, words or characters: which mode should you use?
Line mode compares each line as a block: if a single character changes, the whole line shows as deleted and then added. It's the natural mode for code, a pasted table or a list. Word mode is the easiest to read for written text: if "the rent is $1,850" becomes "the rent is $1,880", only the amount is highlighted. Character mode goes even further and shows a changed letter or punctuation mark, for example "their" turned into "there". It's very precise but quickly gets cluttered on a heavily rewritten text: start with words, then zoom in if needed.
Avoiding false differences
Text copied from a PDF, an email or a word processor often contains extra spaces or changed capitalization. Without precautions, the tool then flags dozens of differences that aren't really changes. Turn on the option that ignores whitespace so extra spaces no longer count, and the one that ignores case so that "London" and "LONDON" are treated as identical. Be careful: in code, case and spacing can change the meaning (in Python, indentation is part of the program), so leave these options off. To tidy up a text before comparing it, "Case Converter" converts a whole text in one click, and "Word Counter" gives you its exact length.
Frequently Asked Questions
How do I compare two texts to find the differences?
Paste the original text into the first box and the edited version into the second: additions appear in green and deletions in red, with their total count.
How do I compare two Word or PDF documents?
Copy the text of each document and paste it into the two boxes. If the text of a PDF doesn't copy well, extract it first with "PDF to Text"; for a photo or a screenshot, use "Image to Text (OCR)".
Can I compare code?
Yes. Line mode works well for code and config files. Leave the options that ignore case and whitespace off if they matter in your language.
Why is a whole line marked as changed?
In line mode, the smallest change makes the line show as deleted and then added. Switch to word or character mode to see exactly what changed.
Are my texts sent to a server?
No. The comparison runs entirely in your browser: your texts never leave your device. It's free and there's no sign-up.