Compare Two Texts and Find Invisible Differences
Already know one of them is contaminated and want it gone? Use the zero-width space remover or the JSON cleaner, the Word and Docs cleaner or the Excel cell cleaner. This page is for finding the difference first.
How to read the result
For each differing position you get the codepoint of the character in A and the codepoint of the character in B, with the Unicode name if it has one. Position is counted in Unicode code points, not bytes — a position that lands on an emoji family with a zero width joiner inside it will still make sense.
If you press Clean both, then compare, the page strips invisible characters from both sides and compares again. If the cleaned versions are equal, the mismatch was hidden characters and nothing more. If they still differ, there is real wording or visible-punctuation difference to investigate.
Why this is useful
The classic case is a string that renders identically but will not match a key, will not compare equal in code, or will not find a record. Most of the time, invisible characters are the cause, and you want to know exactly where and which ones before you delete anything.
This page tells you exactly that, with codepoints, so you can decide whether to strip them and whether to trust the cleaned version.
Limits
Up to fifty differing positions are listed. If there are more than fifty, the page tells you the total and shows the first fifty. The first-difference panel always shows position 1, 2 or 3 with surrounding context, regardless of how many differences there are.
Nothing is uploaded. The comparison runs in this browser tab.