Text Diff Highlighter
Compare two texts and visually highlight additions, deletions & changes
Frequently Asked Questions
What is a diff tool?
A diff tool compares two pieces of text and shows what has changed between them. It highlights additions (new content) in green and removals (deleted content) in red, making it easy to spot changes.
What is the difference between word diff and line diff?
Word diff compares text token by token (split by whitespace), showing exactly which words changed. Line diff compares the text line by line, which is better for code comparison. Character diff is the most granular, showing individual character changes.
How is the similarity score calculated?
The similarity score is the ratio of unchanged tokens to total tokens, expressed as a percentage. A score of 100% means the texts are identical; 0% means they share nothing in common.
Can I use this to compare code?
Yes! Switch to Line-by-Line mode for code comparison, which shows differences on a per-line basis similar to how git diff works. You can also enable "Ignore Whitespace" to avoid flagging indentation changes.
Is my text stored or sent to a server?
No. All comparison happens entirely in your browser using JavaScript. Nothing is ever sent to our servers or stored anywhere. Your text is completely private.