Explosion Tools

Diff Checker — Compare Text Differences Online

Compare two blocks of text and see the differences highlighted. Free, no signup, works in your browser.

All comparison happens in your browser. No data is sent to any server.

About Diff Checker

This diff checker compares two blocks of text line by line and highlights every difference. Added lines appear in green and removed lines in red. Switch between inline and side-by-side views to find changes quickly. The tool uses a longest-common-subsequence algorithm to produce minimal, accurate diffs — the same approach used by Git. Useful for comparing code revisions, contract drafts, configuration files, or any two versions of a document.

Frequently Asked Questions

How does the diff checker work?
It splits both texts into lines and applies a longest-common-subsequence (LCS) algorithm to identify insertions, deletions, and unchanged lines. Results are displayed with color-coded highlighting.
Can I compare code with this tool?
Yes. The tool preserves whitespace and uses a monospace font, making it ideal for comparing code, configuration files, SQL queries, and other structured text.
Is my text safe?
All comparison runs locally in your browser. Your text never leaves your device — no data is uploaded to any server.

Related Tools