Diff Checker: Compare Two Texts
Compare two blocks of text or two files and see what changed, line by line.
About the Difference Checker
Compares two blocks of text, or two uploaded files, and shows the changes line by line: added lines in green and removed lines in red.
How to use it
- Paste the original text on the left, or upload a file.
- Paste the changed text on the right, or upload the second file.
- Read the comparison below: added lines are green with a +, removed lines are red with a −.
Good for
- Comparing two versions of a config file
- Checking what changed between two API responses
- Reviewing edits to a document or script
Tip: Format both inputs the same way first (for example, beautify both JSON files) so the diff shows real changes instead of whitespace noise.
Frequently asked questions
Can I compare two files?
Yes. Use Upload File above each box to load a text file into it.
Why does the diff show changes I did not make?
Different whitespace or formatting counts as a change. Format both inputs the same way first, for example by beautifying both JSON files.
Are my files uploaded?
No. Files are read and compared in your browser.
More free tools
- Test Data GeneratorCreate realistic fake records for testing, demos and database seeding, then export them as JSON, CSV, XML, HTML, SQL inserts, Python or JavaScript.
- Random Password and Key GeneratorGenerate strong random passwords and keys with your choice of length and character sets, using your browser’s cryptographically secure random number generator.
- CSV, TSV, JSON and XML ConverterConvert data between CSV, TSV, JSON, XML and a single column of values in any direction, with automatic format detection and file upload.
- JavaScript Minifier and ValidatorCompress JavaScript with Terser for a smaller file, or validate code and see syntax errors with their line numbers.
- JSON Formatter and ValidatorBeautify and validate JSON, find the exact line of an error, and convert JavaScript object literals into strict JSON.
- SQL Formatter and BeautifierMake SQL queries readable or minify them to one line, for Standard SQL, MySQL, PostgreSQL and Transact-SQL.
- Case ConverterChange text to UPPERCASE, lowercase or Title Case in one click.
- camelCase, PascalCase, snake_case and kebab-case ConverterTurn any phrase into programming naming styles as you type: camelCase, PascalCase, snake_case, kebab-case and Capitalized Case.
- YAML ValidatorCheck YAML files for syntax errors before they break a deployment, from Kubernetes manifests to GitHub Actions workflows.