Text Diff β compare two texts line by line
Compare two blocks of text and highlight added and removed lines instantly, entirely in your browser.
π Runs entirely in your browser. Your input and output are never sent to a server or stored β fully private.
About this tool
This text diff tool compares two blocks of text and highlights exactly which lines were added, removed or changed between them. Paste an original and a revised version side by side to spot edits in code, contracts, configs or any document at a glance. The comparison runs entirely in your browser, so neither version is ever uploaded.
Frequently asked questions
How does the comparison work?
It compares the two texts line by line and marks each line as added, removed or unchanged, using colors so differences are easy to scan. Breaking your text onto separate lines gives the clearest results, which is why it works especially well for code and lists.
Why are two lines that look the same marked as different?
Usually it is something invisible: trailing spaces, a tab versus spaces, or different line endings can make two seemingly identical lines differ. Trimming whitespace or normalising line endings before comparing removes these false differences.
Are my texts sent anywhere?
No. Both texts are compared locally in your browser and are never sent to a server, so you can safely diff confidential documents or proprietary code.