Compare Texts
Compare two texts and visualize the differences line by line.
About this tool
Compare Texts displays the differences between two blocks of text side by side, visually highlighting lines that were added, removed, or remained unchanged. Paste the original text in the left field and the modified version in the right field; the diff appears automatically below, with green lines for additions and red for removals.
To use it, fill in both text fields. The result shows each line prefixed with "+" for new lines, "–" for removed lines, and no prefix for identical lines. A summary at the top shows the number of lines added and removed, or confirms that the texts are identical.
This kind of comparison is useful in many everyday situations: verifying what changed between two versions of a contract or document; comparing expected and actual output from a script; checking whether a text was edited correctly after review; identifying differences between two API responses copied for analysis; comparing two versions of a prompt before publishing. It is a simplified version of the terminal "diff" command, accessible directly in the browser.
Processing happens locally, with no data sent to servers. Both texts remain on your device throughout the analysis. No account creation or installation is required.
Frequently asked questions
Is the tool free?
Yes, completely free with no text size limit.
Are my texts sent to any server?
No. The comparison happens in your browser. Neither text is transmitted externally.
Does it work on mobile?
Yes. On small screens, the two input fields stack vertically for easier use on smartphones.
Is the comparison done line by line or word by word?
Line by line: each line is compared with the corresponding line in the other version. Changes within the same line appear as a removal followed by an addition.
Can I compare source code with this tool?
Yes. The tool works with any plain text, including code. For more advanced diffs with function context and syntax highlighting, version control tools like Git are more appropriate.