All toolsFiles
Text comparison
Compare two texts and locate their first difference.
Test panel
Questions about Text comparison
Can a space or uppercase letter make two texts differ?
Yes. The comparison is case-sensitive and includes spaces and line breaks. If the texts look identical, check the first reported difference for an extra space or blank line.
Why is the difference shown just after the end of the shorter text?
When the shorter text is an exact prefix, the first difference is where the longer text continues. The comparison numbers characters starting at 1.
Why might the reported position differ from my visual count in text with emoji?
The position counts Unicode code points. A joined emoji or a letter with a combining accent can display as one symbol while occupying several positions in that count.