Diff Checker — Compare Two Texts and Find Differences Online
Eyeballing two versions misses changes. Paste both texts and see every addition and deletion highlighted in split or unified view — then copy the result. Free to use, with no account needed.
How to compare two texts and see exactly what changed between versions
This diff checker compares two pieces of text line by line and marks what was added and what was removed. Paste the older text into Original and the newer text into Changed, and the differences appear at once with a count. It suits drafts, contracts, translations, source code, configuration files and JSON. Nothing is uploaded or saved, and there is no file to download, only a plain-text copy of the diff.
Compare two versions of a text and find the changes
Open the Inputs tab, paste the older version into Original and the newer one into Changed, and the comparison runs as you type. A summary line reports how many lines were added and removed, or says the two snippets are identical. Matching lines stay aligned even when something is inserted above them, so the rest of the document does not look changed. Clear removes one side and Clear both starts again.
- Paste the older text into Original.
- Paste the newer text into Changed.
- Read the summary line and the highlighted lines.
- Select Copy diff to put a plain-text version on your clipboard.
Read added and removed lines in unified or split view
Green lines with a plus sign exist only in Changed, and red lines with a minus sign exist only in Original. A line you edited shows as one of each, with the plus line above the minus line, so changing a single word marks the whole line, because the comparison works on lines and not on words. Unified view lists everything in one column and is the default. Split view, under View mode, puts removed lines in the left column and added lines in the right, each on its own row, and is available on wider screens only.
Ignore whitespace and case to focus on real edits
Ignore whitespace treats runs of spaces and tabs inside a line as one space and trims the ends of each line, so indentation and spacing changes stop showing as edits. Ignore case lowercases both sides before comparing, while the display keeps your original capitals. Neither option merges lines, so text that was re-wrapped at different widths still looks changed, and a blank line that was added or deleted is still a difference, although a line holding only spaces matches an empty one.
Compare code, JSON or configuration files
Copy each file into its own box. Because the comparison is line based, a minified file shows as one big change, so format both JSON documents with the same indent first, or tidy minified HTML before you compare it. Each side is limited to 3,000 lines, and above that the tool asks you to compare smaller sections. For notes written in Markdown, you can preview each version to see the rendered difference.
Before you compare
- Put the older version in Original and the newer one in Changed, so green means new.
- Format JSON, HTML or minified code the same way on both sides.
- Remove trailing blank lines from both sides to avoid a false difference at the end.
- Use Ignore whitespace for spacing and indentation, not for different line breaks.
- Compare in sections if either side passes 3,000 lines.
Comparing things that are not plain text
Two pictures need a reveal slider that shows the before and after instead, and two downloads can be checked by matching SHA-256 checksums. Before diffing JSON, format both copies with the same indentation so only real changes light up.
What you can do with Diff Checker
Review the main capabilities before you begin.
- Compare two texts line by line
- Spot changes between document versions
- View differences side by side or unified
- Ignore whitespace to focus on real edits
- Ignore case when comparing text
- Review code or config changes side by side
Settings reference
3 settings
Available controls for Diff Checker.
Settings
- View modePresets
- Choose how differences are displayed: Unified stacks removed and added lines in one column, while Split shows the original and changed text side by side on desktop.Options: UnifiedSplit
- Ignore whitespaceOn / Off
- Collapses runs of spaces, tabs, and indentation before comparing, so lines that differ only in spacing or formatting are treated as identical.
- Ignore caseOn / Off
- Compares both texts without distinguishing uppercase from lowercase, so lines that differ only in capitalization are not flagged as changes.
Related tools for Diff Checker
Tools for common next steps after Diff Checker.
Developer Tools
JSON Prettify
Validate JSON, format it with 2, 4 or 8 spaces, or minify it in your browser.
Try it nowDeveloper Tools
HTML Prettify
Format HTML with consistent indentation or minify it to one line in your browser.
Try it nowText & Writing Tools
Markdown Editor
Write or open a .md file, review the HTML preview and export as HTML or Markdown. Editing stays in your browser.
Try it nowFrequently Asked Questions
How Diff Checker helps you get it done
Real problems it solves every day — for businesses, creators, and everyday tasks. Find the use case that fits you and start.
Compare Code Versions Before Committing
Diff two snippets side by side to spot accidental edits before opening a pull request, especially when working without an IDE or staging copy-pasted patches from chat
Spot Changes in Contracts & Agreements
Compare two versions of a contract, NDA or SOW to find every addition and removal lawyers and clients have made, even when the document has been retyped
Review Translation Variants Side-by-Side
Diff two translation drafts to see which phrases the editor changed, missed or rephrased, helping localisation teams audit copy quality across English, Spanish and French
Detect Plagiarism in Essays & Papers
Compare a student's draft against a suspected source to highlight reused sentences and paragraphs for plagiarism review in schools, universities and journalism
Check Edits to API Responses & JSON
Diff two JSON payloads, API responses or YAML configs to track schema drift, debug serialisation bugs and confirm a regression actually changed the output
Track Document Revisions for Editorial Teams
Compare today's blog draft with yesterday's version to see exactly which sentences moved, were rewritten or removed during editorial review and copy fitting
Audit Terms of Service & Policy Changes
Paste a vendor's old Terms of Service or Privacy Policy on one side and the new version on the other, then turn on Ignore whitespace to surface only the substantive wording changes before you re-accept.
Proofread Resume & Cover Letter Edits
Diff two drafts of a resume or cover letter before submitting an application, confirming that trimming it to one page didn't accidentally delete a job title, date or metric you meant to keep.
Compare Email Campaign Drafts
Check the subject line and body copy between two versions of a marketing email before it goes out to your list, catching a dropped call-to-action or an unapproved copy change from an editor pass.
Compare Insurance Policy Renewal Documents
Diff this year's policy wording against last year's renewal to catch coverage, deductible or premium changes buried in dense boilerplate that's easy to skim past.
Compare Config File or API Response Versions
Paste two versions of a JSON, YAML or .env config file, or two API response payloads, to spot exactly which keys or values changed between deployments or environments, without needing a local git repo or diff tool installed.
Watch each transformation land
Every photo crosses the slash untouched and comes out the other side finished.

























