HYPHEN-MINUS vs 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-MINUS
U+002D
View details →
copied2 = false, 2000)"
:class="copied2 ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
‐
HYPHEN
U+2010
View details →
VS
Property Comparison
| Property | - U+002D | ‐ U+2010 |
|---|---|---|
| Name | HYPHEN-MINUS | HYPHEN |
| Block | Basic Latin | General Punctuation |
| Script | Zyyy | Zyyy |
| Category | Dash Punctuation (Pd) | Dash Punctuation (Pd) |
| Bidirectional | ES | ON |
Encoding Comparison
| Format | U+002D | U+2010 |
|---|---|---|
| unicode | U+002D | U+2010 |
| decimal | 45 | 8208 |
| htmldecimal | - | ‐ |
| htmlhex | - | ‐ |
| css | \002D | \2010 |
| javascript | \u{2D} | \u{2010} |
| python | \u002d | \u2010 |
| java | \u002D | \u2010 |
| go | \u002D | \u2010 |
| ruby | \u{2D} | \u{2010} |
| rust | \u{2D} | \u{2010} |
| ccpp | \u002d | \u2010 |
| urlencoded | - | %E2%80%90 |
| utf8bytes | 2d | e2 80 90 |
| utf16bebytes | 00 2d | 20 10 |
| utf32bebytes | 00 00 00 2d | 00 00 20 10 |
How to Distinguish
Both characters use the Zyyy script but are in different blocks: HYPHEN-MINUS in Basic Latin and HYPHEN in General Punctuation.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.