-
U+002D · HYPHEN-MINUS
Hyphen-Minus
| UTF-8 | 2D | 1 byte |
|---|---|---|
| UTF-16 | 002D | 1 code unit |
| UTF-32 | 0000002D | 4 bytes |
| HTML decimal | - | |
| HTML hex | - | |
| CSS | \2D | in content: "…" |
| JavaScript | \u002D | |
| JSON | \u002D | |
| Python | \u002D | |
| Python | \N{HYPHEN-MINUS} | by name |
| Java / C# | \u002D | |
| Rust / Swift / PHP | \u{2D} | |
| Go | \u002D | |
| Ruby | \u002D | |
| Excel / Sheets | =UNICHAR(45) | |
| URL-encoded | %2D | percent-encoded UTF-8 |
§
Looks similar
Characters that Unicode’s security data (UTS #39 confusables) lists as visually confusable with this one. Useful for spotting lookalike spoofing in URLs and usernames.
U+02D7˗Modifier Letter Minus Sign
U+06D4۔Arabic Full Stop
U+2010‐Hyphen
U+2011‑Non-Breaking Hyphen
U+2012‒Figure Dash
U+2013–En Dash
U+2043⁃Hyphen Bullet
U+2212−Minus Sign
U+2796➖Minus
U+FE58﹘Small Em Dash
U+2CBAⲺCoptic Capital Letter Dialect-P Ni
§