HYPHEN vs NON-BREAKING HYPHEN
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://unicodefyi.com/iframe/entity//" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://unicodefyi.com/entity//
Add a dynamic SVG badge to your README or docs.
[](https://unicodefyi.com/entity//)
Use the native HTML custom element.
copied1 = false, 2000)"
:class="copied1 ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
‐
HYPHEN
U+2010
View details →
copied2 = false, 2000)"
:class="copied2 ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
‑
NON-BREAKING HYPHEN
U+2011
View details →
VS
Property Comparison
| Property | ‐ U+2010 | ‑ U+2011 |
|---|---|---|
| Name | HYPHEN | NON-BREAKING HYPHEN |
| Block | General Punctuation | General Punctuation |
| Script | Zyyy | Zyyy |
| Category | Dash Punctuation (Pd) | Dash Punctuation (Pd) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | U+2010 | U+2011 |
|---|---|---|
| unicode | U+2010 | U+2011 |
| decimal | 8208 | 8209 |
| htmldecimal | ‐ | ‑ |
| htmlhex | ‐ | ‑ |
| css | \2010 | \2011 |
| javascript | \u{2010} | \u{2011} |
| python | \u2010 | \u2011 |
| java | \u2010 | \u2011 |
| go | \u2010 | \u2011 |
| ruby | \u{2010} | \u{2011} |
| rust | \u{2010} | \u{2011} |
| ccpp | \u2010 | \u2011 |
| urlencoded | %E2%80%90 | %E2%80%91 |
| utf8bytes | e2 80 90 | e2 80 91 |
| utf16bebytes | 20 10 | 20 11 |
| utf32bebytes | 00 00 20 10 | 00 00 20 11 |
How to Distinguish
Both HYPHEN and NON-BREAKING HYPHEN belong to the General Punctuation block and Zyyy script. Compare their codepoints and visual rendering to distinguish them.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.