Text Compare
Compare two blocks of text and highlight the differences line by line.
Runs entirely in your browser — nothing is uploaded.
Frequently asked questions
How does the text compare tool work?
It compares two blocks of text line by line and highlights which lines were added, removed or unchanged, so you can spot exactly what differs between two versions.
Is my text sent to the server?
No. The comparison runs entirely in your browser with JavaScript — your text never leaves your device. That makes it both private and safe.
What can I use it for?
Comparing two versions of a document, config file, code snippet or email; checking what an edit changed; or diffing anything where you need to see line-level differences.
What is the difference between a line diff and a character diff?
A line diff marks whole lines as added or removed, which suits code and configuration, while a character or word diff highlights changes within a line, which is better for prose and small edits.
Why does my diff show a whole line changed when I edited one word?
A line-based comparison treats any modified line as removed and re-added, so a single-word edit marks the entire line. A word-level view shows precisely which part changed.
Can whitespace differences affect the comparison?
Yes. Spaces, tabs and trailing whitespace are real characters, so lines that look identical but differ in whitespace are reported as different unless you normalize them first.
Does the order of the two texts matter?
It affects which side is labeled as additions versus removals but not the underlying differences found. Swapping the inputs simply reverses which changes are shown as added and which as removed.