Skip to content

Copy & paste · Character reference

The soft hyphen (U+00AD): the hyphen you cannot see

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.

Or select it by hand

Click the box to select the character, then press Ctrl + C (⌘ + C on Mac).

Character
Soft Hyphen
Unicode
U+00AD
HTML entity
­
Plain-text fallback
-

Hyphen family

The short joiners - for compound words, names and codes.

Copy page per character:Hyphen-minusUnicode HyphenNon-breaking HyphenSoft Hyphen

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 “infor­mation” 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.

How to type a soft hyphen

Keyboard shortcuts for every platform — or skip the typing and copy the character above.

PlatformShortcut
Word (Windows and Mac)Ctrl + - puts an optional (soft) hyphen in the word
Google DocsInsert → Special characters → search “soft hyphen”
Windows (any app)Alt + 173 on the numeric keypad
HTML­ or ­ — the one hyphen variant with a named entity
MacNo 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

Soft Hyphen examples

What the character looks like doing its job — and what changes if you swap in a different dash.

Inside a word, ready to break

exam¬ple (invisible until the line needs it)

Copy-pasted from a PDF

infor¬mation retrieval

Inside an identifier

cus¬tomer_id

Inside a URL or code snippet

https://dash¬remover.com

How to find a character you cannot see

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.

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.

A validator rejects a clean-looking value

A username, an email local part or a slug is refused although every visible character is legal — the invisible one is not.

A cursor stops where nothing is

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.

Word counts and lengths disagree

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.

Em dash vs en dash vs hyphen

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.

Questions

What is a soft hyphen?
A hidden character (U+00AD) that marks where a word may be broken if a line needs to wrap. It is invisible unless the break happens, at which point a hyphen appears at the end of the line. In HTML it is written ­.
How do I type a soft hyphen?
In Word, Ctrl + minus inserts an optional hyphen. In Google Docs, use Insert → Special characters and search “soft hyphen”. In HTML, write ­. On Windows, Alt + 173 works in most applications. You never type one by accident — they arrive by copy-paste.
Why can I not find the soft hyphen in my text?
Because it has no visible form and no key on any keyboard, so you cannot type it into a find-and-replace dialog. Turn on formatting marks in Word to reveal it, or paste the text into a tool that matches characters by code point — that is the reliable route.
Why does copied PDF text break my search or my import?
Because PDF generators embed soft hyphens to control line breaks, and copying the text carries them into whatever receives it. A string that looks identical is then a different string to a search index, a validator or a database — which is why pasted phrases fail to match.
How do I remove soft hyphens from text?
Paste the text into the hyphen remover and press one button: it matches U+00AD by code point, deletes it, and tidies the spacing the removal leaves behind. For a fully ASCII result, the remove-all-dashes tool clears the soft hyphen along with every other dash character.
Is a soft hyphen the same as a zero-width space?
No. The zero-width space (U+200B) offers a break opportunity but never shows a mark, and it can break between any two characters. The soft hyphen shows a hyphen when the break happens, which is why it is used inside words rather than between them. Both are invisible and both are common in pasted text.

Invisible hyphens causing trouble?

The hyphen remover matches the soft hyphen by code point — the only way to strip a character you cannot type.

Remove soft hyphens