Compare differences between texts
Updates
Recently shipped improvements
Text Compare is an online tool that compares two pieces of text side by side, visually highlighting additions, deletions, and modifications. It is useful when you need to quickly and accurately identify differences between two texts, such as code reviews, document revision checks, and version comparisons. Based on diff algorithms, it supports fine-grained comparison at both character and word levels, and also provides file import functionality for efficiently processing large texts.
Enter the Original Text
Enter the baseline text in the 'Original' area on the left, or click File to import a text file.
Enter the Revised Text
Enter or import the text you want to compare in the 'Modified' area on the right. Comparison begins automatically as soon as you enter content.
Choose a Comparison Mode
Choose character-level or word-level comparison for the detail you need. Character mode is well suited to code, while word mode works well for ordinary documents.
Review and Use the Differences
Review the color-highlighted additions (green), deletions (red), and changes. If needed, use Copy Diff to copy the result to your clipboard.
Character-level comparison checks one character at a time and reveals the finest differences, making it ideal for code or exact character changes. Word-level comparison checks whitespace-delimited words, making changes in sentences or documents easier to understand at a glance.
Yes. Click the 'File' button for either the original or revised text to load a text file. Its contents are inserted automatically, and comparison begins immediately. Text-based files such as .txt, .json, and .csv are supported.
A green background marks text added to the revised version, while a red background marks text deleted from the original. Uncolored sections are identical and unchanged in both versions. These colors make changes easy to identify.
Yes. However, very large texts with tens of thousands of lines or more may take some time depending on browser performance. For large files, importing a file is more efficient than entering the content manually.
Click Copy Diff to copy the comparison result to your clipboard. Paste the diff into an email, document, issue tracker, or another destination to share or record the changes.