Skip to content

Compare Two Text Files Online

Paste two text snippets - logs, code, config, prose - and see every addition, deletion, and change highlighted at the word level. Side-by-side or unified-diff view. Works for plain text, source code, JSON, YAML, CSV, markdown. Up to a few MB per side comfortably in the browser.

When to use this

Use when: reviewing what changed between two log captures, spotting accidental edits between two versions of a contract, comparing two AI outputs, diffing two config files before deploying, finding the typo that broke a copy-paste.

Frequently Asked Questions

Is this the same as a Git diff?

Visually similar but algorithm-different. Git uses Myers diff at the line level. Our tool uses a line + word-level approach so you see word-by-word changes inside a line - more useful for prose / config but slightly different output than `git diff`.

Can I diff two JSON files?

Yes - paste them as text. For semantically-aware JSON diff (where key order doesn't matter), sort the keys first using our JSON Formatter's 'Sort keys' option, then diff.

Powered by Text Diff Checker.

Other targeted versions of this tool — each tuned for a specific use case.

Or use the main Text Diff Checker if your use case isn't covered above.