copied = false, 2000)"
@keydown.enter="navigator.clipboard.writeText('\u002D'); copied = true; setTimeout(() => copied = false, 2000)"
:class="copied ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
-
HYPHEN-MINUS
Overview
- (HYPHEN-MINUS) is the Unicode character at code point U+002D. It belongs to the Basic Latin block, in the Dash Punctuation (Pd) general category.
On this page
Encoding Table
| Format | Value | Copy |
|---|---|---|
| Code point | U+002D |
|
| Decimal | 45 |
|
| HTML decimal | - |
|
| HTML hex | - |
|
| CSS | \002D |
|
| JavaScript | \u{2D} |
|
| Python | \u002d |
|
| Java | \u002D |
|
| Go | \u002D |
|
| Ruby | \u{2D} |
|
| Rust | \u{2D} |
|
| C / C++ | \u002d |
|
| URL-encoded | - |
|
| UTF-8 bytes | 2d |
|
| UTF-16BE bytes | 00 2d |
|
| UTF-32BE bytes | 00 00 00 2d |
How to Use
HTML:
-
CSS:
content: "\002D"
JavaScript:
"\u{2D}"
Python:
"\u002d"
Properties
- Block
- Basic Latin
- Script
- Common Zyyy
- Category
- Dash Punctuation (Pd)
- Bidirectional
- ES
- Combining
- 0
- Mirrored
- No
Compare
Frequently Asked Questions
What is the - character (HYPHEN-MINUS)?
- (HYPHEN-MINUS) is the Unicode character U+002D.
What is the Unicode codepoint of HYPHEN-MINUS?
The HYPHEN-MINUS character (-) has codepoint U+002D.
How do I type or copy HYPHEN-MINUS?
Copy - directly, or use the HTML entity, UTF-8, and code encodings shown on this page.