♂ is the Unicode emoji MALE SIGN, code point U+2642 (decimal 9794) in the Miscellaneous Symbols block, added in Unicode 1.1. In HTML write ♂, and in UTF-8 it is the 3 bytes E2 99 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2642 |
| Decimal | 9794 |
| UTF-8 bytes | E2 99 82 |
| UTF-16 (big-endian) | 2642 |
| UTF-32 | 00002642 |
| HTML decimal | ♂ |
| HTML hex | ♂ |
| HTML named | ♂ |
| CSS | \2642 |
| JavaScript | \u2642 |
| JSON | \u2642 |
| Python | \u2642 |
| Python by name | \N{MALE SIGN} |
| Java, C# | \u2642 |
| Rust, Swift | \u{2642} |
| Go, C, C++ | \u2642 |
| URL (percent-encoded) | %E2%99%82 |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | MALE SIGN |
| Emoji name | male sign |
| Code point | U+2642 (decimal 9794) |
| Block | Miscellaneous Symbols (U+2600–U+26FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Miscellaneous Symbols
- ☺ U+263A Smiling face
- ☻ U+263B Black Smiling Face
- ☼ U+263C White Sun With Rays
- ☽ U+263D First Quarter Moon
- ☾ U+263E Last Quarter Moon
- ☿ U+263F Mercury
- ♀ U+2640 Female sign
- ♁ U+2641 Earth
- ♃ U+2643 Jupiter
- ♄ U+2644 Saturn
- ♅ U+2645 Uranus
- ♆ U+2646 Neptune
- ♇ U+2647 Pluto
- ♈ U+2648 Aries
- ♉ U+2649 Taurus
- ♊ U+264A Gemini
All 256 characters: Miscellaneous Symbols.
Official reference
Questions people ask
- What is the HTML code for ♂?
- Use the named entity ♂, or ♂ (decimal) or ♂ (hex).
- What is the UTF-8 encoding of U+2642?
- E2 99 82 (hex), 3 bytes. In a URL it is %E2%99%82.
- How do I write U+2642 in JavaScript or Python?
- JavaScript: \u2642. Python: \u2642.
Source
Unicode Character Database 18.0.0 (Unicode License v3) and the Unicode emoji test data; HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in