Text Diff is a free online tool for comparing two texts with line-level and word-level precision. Side-by-side or inline view with highlighted changes. Runs entirely in your browser — no data is sent to any server.
What is a diff?
A diff is a structured comparison between two pieces of text that highlights what was added, what was removed, and what stayed the same. Developers use it every day to review code changes, audit configuration drift, and compare [JSON](/json) or [CSV](/csv) files.
This tool runs the comparison entirely in your browser using the jsdiff library. Nothing you paste or upload is sent to any server.
Common Use Cases
Comparing two configuration files ([JSON](/json), [YAML](/yaml), .env) to spot drift between environments.
Reviewing a code change before pasting it into a commit, especially when working outside an editor.
Reconciling two versions of a document, log, or query result side by side.
How to Compare Two Texts
- 1
Paste or upload your texts
- 2
Choose your view
- 3
Review the highlighted changes