Developer Tools

Text Diff Checker

Compare two text snippets locally in your browser with line-by-line differences for JSON, SQL, config files, logs, and API responses.

Runs locally in your browser

Text Diff Checker

Compare two text snippets line by line for API responses, JSON, SQL, config files, logs, or documentation.

Your text stays on this device.

Diff result

Ready to compare
 

What this Text Diff Checker is for

Use this Text Diff Checker when you need to compare two API responses, JSON examples, SQL queries, config files, logs, or documentation snippets without leaving the browser.

The comparison runs locally on your device. The tool does not upload either side of the diff to a server.

How to use it

Paste the original text on the left and the changed text on the right, then click Compare text. Removed lines are marked with -, added lines are marked with +, and unchanged lines are left unmarked.

Use Ignore whitespace when formatting changed but content should be treated as equivalent. Use Ignore case when casing differences are not important for the review.

Use the JSON Formatter before comparing compact API responses, the JSON to TypeScript Types Generator after a payload shape changes, the Markdown Table Generator when documenting tabular examples, the SQL Formatter before comparing queries, and the HTTP Status Code Lookup when reviewing API error behavior.

FAQ

Text Diff Checker questions

Does this Text Diff Checker upload my text?

No. The line-by-line comparison runs locally in your browser, and the tool does not send either text input to a server.

What can I compare with this tool?

You can compare JSON, SQL, YAML, configuration files, API responses, logs, documentation snippets, or any plain text.

Can this compare very large files?

It is designed for small and medium text snippets. For very large files, use a dedicated desktop diff tool or compare smaller sections.

What does ignore whitespace do?

Ignore whitespace compares trimmed lines with repeated whitespace collapsed, which helps when formatting changed but the meaning stayed the same.