You copy a seemingly clean formula from a slide deck into Excel, or paste a JSON snippet from a chat thread into your code editor, and everything explodes with #VALUE!, SyntaxError, or an empty database query. You stare at the line for ten minutes. Every character looks 100% correct.
What broke your file is a Unicode lookalike (also called a confusable or homoglyph): two distinct Unicode code points whose shapes look nearly identical in proportional fonts, yet parsers, compilers, and spreadsheet engines treat them as completely unrelated characters. Below are the eight twin pairs that silently break real-world spreadsheets, SQL queries, HTML, and code, plus how to detect and clean them in seconds.
The 8 Most Dangerous Unicode Lookalike Pairs
Every pair in the table below has caused production bugs in Excel workbooks, CSV imports, configuration files, or web templates:
| Visual Pair | Code-Safe Character | Lookalike Culprit | What Breaks |
|---|---|---|---|
- vs − | Hyphen-Minus (U+002D) | Minus Sign (U+2212) or En Dash (U+2013) | Excel treats −45 as text instead of a negative number; Python/JS throws SyntaxError |
" vs “ ” | Straight Quote (U+0022) | Curly Smart Quotes (U+201C / U+201D) | Breaks JSON, SQL string literals, HTML attributes, and CLI flags pasted from Word/Docs |
' vs ’ | ASCII Apostrophe (U+0027) | Right Single Quote (U+2019) or Prime (U+2032) | Breaks JavaScript strings, SQL single-quoted values, and Excel sheet references |
| Space vs NBSP | ASCII Space (U+0020) | Non-Breaking Space (U+00A0) | Excel TRIM() ignores U+00A0; VLOOKUP fails on "matching" names |
° vs º | Degree Sign (U+00B0) | Masculine Ordinal (U+00BA) or Ring (U+02DA) | Screen readers announce "25th" instead of "25 degrees"; regex parsers miss temperature units |
µ vs μ | Micro Sign (U+00B5) | Greek Small Mu (U+03BC) | Lab inventory searches for "µg" fail to match rows stored as "μg" without NFKC normalization |
× vs x | Multiplication Sign (U+00D7) | Latin Small Letter x (U+0078) | Dimension strings ("1920×1080" vs "1920x1080") fail exact-match filters and SKU lookups |
⌀ vs Ø | Diameter Sign (U+2300) | Latin Capital O with Stroke (U+00D8) | CAD exports and BOM tables confuse Nordic letter Ø with mechanical diameter tolerance |
1. Why Excel's TRIM() Fails on Non-Breaking Spaces (U+00A0)
One of the most frustrating spreadsheet bugs happens when you paste customer names, SKUs, or currency figures from a webpage or PDF into Microsoft Excel. Web pages frequently insert a Non-Breaking Space ( , U+00A0) to keep numbers from wrapping across lines.
Excel's standard =TRIM(A2) function only strips regular ASCII spaces (U+0020). It leaves U+00A0 completely untouched, causing =VLOOKUP() and =XLOOKUP() to return #N/A on values that look identical to the human eye. The exact Excel cleanup formula is:
=TRIM(SUBSTITUTE(A2, CHAR(160), " "))That single formula converts every hidden non-breaking space into a standard space first, then trims leading, trailing, and doubled spaces cleanly.
2. Curly Quotes & Minus Signs From Word, Slack, and Apple Notes
Microsoft Word, Google Docs, Apple Notes, and Slack all enable "Smart Quotes" and "Smart Dashes" by default. Type two hyphens -- and they silently turn into an em dash (, U+2014). Type a command-line flag like --force in a doc, copy it into Terminal, and your CLI tool rejects the em dash immediately.
Likewise, copying a negative number such as −12.5 from a statistics textbook or Wikipedia often brings along the typographic Minus Sign (U+2212). In Excel and CSV importers, −12.5 is stored as a text string rather than a number, so =SUM() quietly skips it without raising an error. Producing a wrong financial total! Read our full breakdown in Curly vs Straight Quotes.
3. Canonical Decomposed Accents (NFD vs NFC) Breaking Search & URLs
Lookalikes are not limited to symbols. The Spanish letter can be stored in two legal Unicode ways:
- NFC (Precomposed, 1 code point):
U+00F1(standard on Windows, Linux, and the web). - NFD (Decomposed, 2 code points): regular
n(U+006E) plus Combining Tilde (U+0303), historically common in macOS filenames.
In a browser or database without Unicode normalization, a user searching for NFC Peña will get zero results if the record was imported from a Mac CSV in NFD Peña. Both display identically on screen, yet their byte lengths differ (2 bytes vs 3 bytes in UTF-8).
4. How to Inspect & Clean Hidden Lookalikes in 5 Seconds
Never eyeball suspicious text in a proportional font. Use two fast browser utilities built directly into this site:
- Paste the suspicious string into the Unicode Inspector to reveal the exact
U+XXXXcode point, official Unicode name, UTF-8 byte sequence, and hidden zero-width characters for every glyph. - Run bulk pasted text through the Text Cleaner to replace non-breaking spaces, zero-width joiners, and smart quotes with clean ASCII equivalents before importing into Excel or SQL.
For deeper context on character standards and encoding, read Unicode Explained, Why Word Breaks Accented Characters on Paste, and our character guides for Degree (°) and Diameter (⌀).
Visual Step-by-Step Reference Cards



Visual Quick-Reference Cheat Sheet


