A search that should match does not
You type the phrase by hand and the search engine finds nothing, but the text is plainly on the page. The two strings differ by a character you cannot see.
Copy & paste · Character reference
Copy the invisible hyphen (U+00AD) in one click — and, more often, use it to understand why pasted PDF text refuses to search, validate or import.
Click the box to select the character, then press Ctrl + C (⌘ + C on Mac).
The short joiners - for compound words, names and codes.
The soft hyphen (U+00AD, written ­ in HTML) is the only hyphen that is designed to be invisible. It tells a renderer where a word may be broken if a line has to wrap — a typographic hint, not a character you are meant to read. When the line does break at that point, a real hyphen appears at the end of the line; when it does not, the character occupies no visible space at all. Newspapers, books and long-form typesetting have used the idea for a century, and Unicode gave it a code point so that files could carry the hint along with the text.
On the web and in data, that invisibility is precisely the problem. A soft hyphen is not a space, so it does not show up as an odd gap; it is not a hyphen, so a search for “-” does not find it; and it cannot be typed into a find-and-replace box, because there is no key for it. Text copied out of a PDF is the classic source: PDF generators sprinkle optional hyphens through words to control line breaking, and copying the text brings them along, which is why a phrase pasted from a PDF can refuse to match the same phrase typed by hand. The same thing happens to text lifted from a word processor into a database field, a spreadsheet cell or a search box.
The damage is specific and easy to miss. A search index that contains “information” will not match a query for “information”. A username validator that rejects non-ASCII bytes rejects a soft hyphen even though the user cannot see it. A word count counts it. A code editor flags it as an invalid character in a string, sometimes with an error message that points to a column where nothing appears to be wrong. The fix is to remove the character: this site’s hyphen remover matches U+00AD by code point and deletes it along with the spaces it leaves behind, which is the only reliable way to strip something no keyboard can produce.
Keyboard shortcuts for every platform — or skip the typing and copy the character above.
| Platform | Shortcut |
|---|---|
| Word (Windows and Mac) | Ctrl + - puts an optional (soft) hyphen in the word |
| Google Docs | Insert → Special characters → search “soft hyphen” |
| Windows (any app) | Alt + 173 on the numeric keypad |
| HTML | ­ or ­ — the one hyphen variant with a named entity |
| Mac | No shortcut and nothing to see — copy it above, or use Emoji & Symbols |
| Word (show it) | Home → ¶ Show/Hide Formatting Marks reveals it in the text |
What the character looks like doing its job — and what changes if you swap in a different dash.
exam¬ple (invisible until the line needs it)
infor¬mation retrieval
cus¬tomer_id
https://dash¬remover.com
Four symptoms that mean an invisible hyphen is in your text, and what to do about each. Through this page the soft hyphen is drawn as ¬— the stand-in Unicode recommends for a character that is otherwise unshowable.
You type the phrase by hand and the search engine finds nothing, but the text is plainly on the page. The two strings differ by a character you cannot see.
A username, an email local part or a slug is refused although every visible character is legal — the invisible one is not.
An arrow key needs two presses to cross a single letter, or a code editor reports an unexpected character in a column that looks empty.
A character count is higher than the text appears to justify, or a database field with a length limit rejects a string that fits by eye.
None of these diagnoses is confirmed by looking harder — the character is designed not to be seen. Confirm it by code point: paste the line into thedash identifierand it will report any soft hyphens it finds, then clean the text with thehyphen remover.
Three characters that look like each other and never behave the same way. Copy the one you need, or read the full reference for each.
The hyphen remover matches the soft hyphen by code point — the only way to strip a character you cannot type.
Remove soft hyphens