How to use the Text Diff Checker tool
- Enter the originalPaste the first version of your text, document or code into the left box.
- Enter the new versionPaste the revised text into the right box.
- Run the comparisonPress “Compare texts”: removals turn red, additions turn green and edited words light up inside changed lines.
- Adjust the viewSwitch between side-by-side and unified layouts, ignore case or spacing, or display only the changes.
Diff checker features
- Precise comparisonBuilt on the Myers diff algorithm, the method Git uses, to find the smallest possible set of edits.
- Word-level highlightsSpot the exact words that changed in a line rather than searching for them.
- Two layoutsSide by side for comfortable reading, or unified for a compact Git-style summary.
- Ignore settingsDisregard case or spacing differences when they aren’t important.
- PrivateTexts are compared in your browser and are never uploaded or stored.
What does a text diff checker do?
A diff checker compares two texts and points out where they differ. Rather than reading two long documents side by side, you instantly see what was inserted, deleted or modified. The name comes from the Unix diff command that programmers have relied on for decades to compare files.
Popular ways to use it
- Contracts: confirm exactly what the other party changed in a new draft before you sign.
- Writing and editing: compare essay drafts, articles or translations, or review an editor’s revisions.
- Code and config files: find the one line that differs between two config files, SQL queries or snippets.
- Lists and data: catch missing or extra entries between two exports of names, emails or IDs.
- Web content: see what a colleague or competitor altered on a page.
Reading the comparison
- A red line marked − was removed and appears only in the original.
- A green line marked + was added and appears only in the new version.
- Red and green on one row means the line was edited, with the exact words highlighted.
- Uncoloured lines are identical in both texts.
Getting cleaner results
- Texts are compared line by line. If one version is a single long paragraph and the other has line breaks, split both into sentences or paragraphs first.
- Switch on Ignore extra spaces for text copied from PDFs or web pages, where spacing often varies.
- Enable Show changes only for long documents: unchanged parts collapse, leaving three lines of context around each change.
- To tidy lists before comparing, use Remove Duplicate Lines or the Case Converter. For PDF files, try Compare PDF.
Frequently asked questions
How do I compare two texts for differences?+
Paste the original on the left and the revised version on the right, then press “Compare texts”. Every difference is highlighted immediately.
Is my text uploaded or saved?+
No. The comparison happens entirely in your browser, so confidential documents and code stay on your device.
Can I compare code?+
Yes. Any plain text works, including code, JSON, CSV, HTML and configuration files.
Can it ignore capital letters?+
Yes. Tick “Ignore case”, and tick “Ignore extra spaces” to skip spacing differences too.
How long can each text be?+
Up to 20,000 lines on each side. Typical documents are compared in a fraction of a second.