How to type Yin Yang
To type Yin Yang (☯), press Alt + 9775 on Windows, holding Alt while typing the digits on the numeric keypad, or write ☯ in HTML. On any system you can copy it from this page, or enter its codepoint U+262F directly: Ctrl+Shift+U then 262f on Linux, or 262f then Alt+X in Microsoft Word.
Yin Yang
- Copy it
- Unicode
- U+262F
- Windows
- Alt + 9775 needs regedit
| Where | Shortcut | How |
|---|---|---|
| Windows | Alt + 9775 | Above 255, so Windows will not accept it as typed. Copy the character instead. |
| Mac | N/A | Press the keys together. |
| HTML | ☯ | Paste this into HTML source. |
| Unicode | U+262F | YIN YANG |
Other symbols
☯ lives in the Miscellaneous Symbols block (U+2600-U+26FF), weather, astrology, religion, games and a wide miscellany. Within Unicode it is classified as So, a symbol.
What Yin Yang is used for
Unicode publishes a second list of names for ☯ in CLDR, the keywords its own search data offers rather than the formal name, and they are difficult, lives, religion and tao. Those words are what somebody looking for this character is liable to type when Yin Yang is not the name they know it by, and the search on the symbol lists matches them as well as the Unicode name.
What Unicode says about Yin Yang
The code chart points from ☯ to tibetan symbol nor bu nyis -khyil (U+0FCA). These are the characters the standard thinks you might have meant instead, which makes them the ones worth checking when Yin Yang looks nearly right but not quite.
How Yin Yang behaves in software
☯ takes one column in a terminal. It carries no direction of its own, so in a line that mixes English with Arabic or Hebrew it takes the direction of the text around it rather than forcing one.
What people ask about Yin Yang
What is the symbol of yin yang?
☯ is YIN YANG, encoded at U+262F. It is distinct from tibetan symbol nor bu nyis -khyil (U+0FCA), which the chart lists beside it precisely because they are confused for one another.
How to type yin yang symbol?
You can press Alt + 9775 on Windows, with Num Lock on and the digits typed on the numeric keypad. That produces ☯.
Every way to write Yin Yang
| Form | Value |
|---|---|
| Codepoint | U+262F |
| Decimal | 9775 |
| UTF-8 bytes | E2 98 AF |
| UTF-16 bytes | 26 2F |
| HTML entity | ☯ |
| HTML numeric | ☯ or ☯ |
| CSS | \262F |
| JavaScript | \u262F |
| Python | \u262F |
| URL-encoded | %E2%98%AF |
| SVG | 262F.svg · (SIL Open Font License) |
If ☯ arrives as ☯
One character has become three, which is what a three-byte UTF-8 sequence looks like when each byte is read separately: E2 98 AF read as Windows-1252 gives exactly ☯. The text is intact and the damage is in the reading, so setting the reader to UTF-8 restores it and retyping does not. A rectangle instead of the mojibake means the opposite: the encoding is right and the font has no glyph at U+262F, which for a character this far outside Latin-1 is common in older office fonts.