U+002D
Hyphen-minus-
Hyphen-minus is a monochrome text character from the Unicode Basic Latin block, listed here under Basic Latin (ASCII). Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents. It is often searched for as "dash", "minus", "hyphen", "subtract".
Quick facts
- Unicode
- U+002D
- Decimal
- 45
- Hex
- 0x002D
- Octal
- 0o55
Unicode identity
| Format | Value | Copy |
|---|---|---|
| Code pointOfficial Unicode notation | U+002D | |
| Official nameUnicodeData.txt, Unicode 18.0.0 | HYPHEN-MINUS | |
| DecimalBase 10 | 45 | |
| HexadecimalBase 16 | 0x002D | |
| OctalBase 8 | 0o55 | |
| BinaryBase 2 | 0000000000101101 | |
| General categoryPunctuation, dash | Pd | |
| Unicode blockU+0000–U+007F | Basic Latin | |
| Plane | Basic Multilingual Plane (BMP, Plane 0) |
HTML & CSS
| Format | Value | Copy |
|---|---|---|
| HTML entity (decimal) | - | |
| HTML entity (hex) | - | |
| CSS content escapeUse inside content: "…" | \002D | |
| URL encodedPercent-encoded UTF-8 | - |
Programming languages
| Format | Value | Copy |
|---|---|---|
| JavaScript / TypeScript | \u002D | |
| JSONUTF-16 surrogate pairs | \u002D | |
| Python | \u002D | |
| Java / C# / Kotlin | \u002D |
Byte encodings
| Format | Value | Copy |
|---|---|---|
| UTF-81 byte | 2D | |
| UTF-16 (BE) | 002D | |
| UTF-32 (BE) | 0000002D |
How to type Hyphen-minus
Windows
Hold Alt and type +2D with the hex numeric keypad option enabled, or type 2D then press Alt+X in Word and most Office apps.
macOS
Enable the Unicode Hex Input keyboard, hold Option, and type 002D. Or open Character Viewer (Control+Command+Space) and search "Hyphen-minus".
Linux
Press Ctrl+Shift+U, type 2d, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.
HTML, CSS & code
Paste the character directly, or use the escapes above: - in HTML, \002D in CSS, and \u002D in JavaScript.
Official Unicode reference
- Character name
- HYPHEN-MINUS
- Block
- Basic Latin (U+0000–U+007F)
- General category
- Pd — Punctuation, dash
Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Basic Latin block: U0000.pdf (PDF, unicode.org).
Frequently asked questions
How do I copy the Hyphen-minus symbol?
Click the Copy button at the top of this page, or select - and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.
What is the Unicode code point for Hyphen-minus?
Hyphen-minus is U+002D (decimal 45, hexadecimal 0x002D, octal 0o55). It lives in the Basic Latin block (U+0000–U+007F) of the Basic Multilingual Plane (BMP, Plane 0).
What is the official Unicode name of Hyphen-minus?
The Unicode Standard (version 18.0.0) names this character "HYPHEN-MINUS". Its General_Category is Pd (Punctuation, dash).
What is the HTML code for Hyphen-minus?
Use - or -. In CSS, use content: "\002D".
How do I type Hyphen-minus in code?
JavaScript: "\u002D". Python: "\u002D". JSON and Java: "\u002D". The UTF-8 byte sequence is 2D.
Is Hyphen-minus an emoji?
No. Hyphen-minus is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.