Diff Checker
Compare two texts side by side or as a unified diff, with added, removed and changed lines.
Runs locally in your browser. Your input is not uploaded.Free, no sign-up
Original
Modified
How to use the Diff Checker
- Paste the original text on the left and the changed text on the right, or click Sample.
- Differences appear instantly: removed lines in red, added lines in green, and changed lines with the exact words that differ highlighted.
- Switch between Side by side, Unified and Patch. Download the patch as a
.difffile. - Tick Ignore whitespace or Ignore case to hide formatting-only changes.
Good for
- Comparing configuration files between environments, like application.yml in staging and production
- Checking what changed between two versions of a JSON response, SQL query or log excerpt
- Reviewing a change before committing, or explaining one to a colleague as a patch
Frequently asked questions
Is my text uploaded?
No. The comparison runs in your browser, in a background worker so large files don't freeze the page. Configuration and code never leave your machine.
Why are some identical-looking lines marked as changed?
They usually differ in invisible characters, such as trailing spaces or tabs versus spaces. Tick Ignore whitespace to treat them as equal. Windows (CRLF) and Unix (LF) line endings are always treated as equal.
Can I apply the patch with git?
The patch is a standard unified diff. Save it and apply it with git apply changes.diff or patch -p0, adjusting the file names in the --- and +++ lines to match your files.
Related tools
All tools- JSON FormatterFormat, validate and minify JSON with syntax highlighting and precise error locations.
- Regex TesterTest regular expressions with live match highlighting, capture groups, flags and explanations.
- Cron Expression GeneratorBuild Linux cron expressions with a visual editor and preview the next run times.
- SQL FormatterFormat and minify SQL for PostgreSQL, MySQL, SQL Server and generic SQL. Queries are never executed.
- Markdown PreviewerWrite Markdown with a live, XSS-safe preview, block tracking images, and export to HTML.