Use U+002D when a machine reads it
Form fields, usernames, slugs, identifiers, CSV and SQL imports, API payloads, code and configuration files. The ASCII hyphen is one byte and accepted everywhere.
SKU-4471 · jean-pierre · well-known
Copy & paste · Character reference
Copy the typographic hyphen (U+2010) in one click — identical on screen to the keyboard hyphen, a different character to every validator and database.
Click the box to select the character, then press Ctrl + C (⌘ + C on Mac).
The short joiners - for compound words, names and codes.
The Unicode hyphen (‐, U+2010) is what typographers mean when they say “hyphen”. Your keyboard does not have it. The key above the zero produces the hyphen-minus, U+002D — a compromise character inherited from ASCII, which needed one glyph that could serve both as a hyphen and as a minus in early computing. U+2010 was added much later, when Unicode gave the hyphen a code point of its own, and desktop publishing software, PDF generators and professional typesetting systems use it whenever they are being precise. To a reader the two are indistinguishable. To a parser they are entirely different characters.
That gap is where the trouble lives. A hyphen copied out of a PDF, an InDesign export or a PDF-derived web page is frequently U+2010, and it then travels into places that expect ASCII: a username field that allows only letters, digits and the plain hyphen; a CSV import that rejects non-ASCII bytes; a search index where “well‐known” and “well-known” are different strings; a duplicate check that reports two identical-looking product codes as unique. The character is invisible to a find-and-replace that searches for the hyphen on your keyboard, because you cannot type the character you are looking for.
The fix is to normalise. Either replace each U+2010 with a plain hyphen, which preserves the look of the text and makes it ASCII-safe, or delete the hyphens entirely when the text is going somewhere that treats them as noise. This site’s hyphen remover matches every member of the hyphen family by code point — U+002D, U+2010, U+2011 and the invisible soft hyphen — and opens each one into a space, while the remove-all-dashes tool deletes them and the dash symbols reference will tell you which variant you were actually holding.
Keyboard shortcuts for every platform — or skip the typing and copy the character above.
| Platform | Shortcut |
|---|---|
| Windows (any app) | Alt + 8208 on the numeric keypad |
| Windows (reliable route) | charmap.exe → search U+2010 or “hyphen” |
| Mac | No shortcut — copy it above, or Emoji & Symbols (⌃⌘Space) |
| Google Docs | Insert → Special characters → search “hyphen” |
| HTML / CSS | ‐ (no named entity) · content: "\2010" |
| LaTeX | Use a font with the glyph; the keyboard - gives U+002D |
What the character looks like doing its job — and what changes if you swap in a different dash.
well‐known · cost‐effective
a six‐person team
Jean‐Pierre Dubois
SKU‐4471
The two hyphens exist for two audiences. Pick by destination, not by preference.
Form fields, usernames, slugs, identifiers, CSV and SQL imports, API payloads, code and configuration files. The ASCII hyphen is one byte and accepted everywhere.
SKU-4471 · jean-pierre · well-known
Print, PDF and font-controlled layouts, where the hyphen should sit at the correct height and width against the surrounding type. Never in a field that validates input.
a six‐person team
The rule that resolves almost every case: put the ASCII hyphen in anything that will be parsed, searched, sorted or stored, and keep the typographic hyphen for surfaces you control end to end. When in doubt, thehyphen removerandremove all dashespages exist to normalise text that has already travelled between the two worlds.
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 all four hyphen characters by code point — including the ones you cannot type into a find-and-replace box.
Clean every hyphen variant