-
U+002D HYPHEN-MINUS
Basic Latin · Dash punctuation
| Name | HYPHEN-MINUS |
|---|---|
| Code point | U+002D |
| Decimal | 45 |
| Block | Basic Latin |
| Category | Dash punctuation (Pd) |
| UTF-8 | 2D |
| UTF-16 | 002D |
| UTF-32 | 0000002D |
| HTML | - - |
| CSS | \002D |
| JavaScript | \u002D |
| Python | \u002d |
| URL-encoded | %2D |
Frequently asked questions
What is the character U+002D?
U+002D - is officially named HYPHEN-MINUS. It belongs to the Basic Latin block and the category Dash punctuation.
How do I type -?
Windows (Word, WordPad): type 002D, then press Alt+X. Linux (GTK/IBus): Ctrl+Shift+U 002d, then Space. macOS: enable the “Unicode Hex Input” keyboard, hold Option and type 002D. Or simply copy it from this page.
How do I write - in HTML?
As a numeric character reference - (decimal) or - (hexadecimal). In UTF-8 documents you can also insert the character directly.
How is - encoded in UTF-8?
In UTF-8 the character takes 1 bytes: 2D. In UTF-16: 002D.