Yin Yang Symbol (☯)

The yin yang symbol ☯ is Unicode U+262F, the Taoist taijitu of balanced opposites. Press Copy to put it on your clipboard.

Unicode
U+262F
HTML
☯
Word
262F Alt+X

How to type the yin yang symbol (☯)

The quickest way is to press Copy above and paste. To type ☯ yourself, use the method for your device below.

Windows

  1. In Word or Outlook, type 262F and press Alt + X. Alt + X converts the hex code before the cursor into the character, and back again.
  2. Press Win + . to open the emoji panel, then search for “yin yang”.

Mac

  1. Press Control + Command + Space to open the Character Viewer, search for yin yang and double-click it.
  2. With the Unicode Hex Input keyboard enabled (System Settings → Keyboard → Input Sources), hold Option and type 262F.

Linux & ChromeOS

  1. Press Ctrl + Shift + U, type 262f, then press Enter or Space. Works in GTK and IBus apps (GNOME, Firefox, Chrome, LibreOffice) and on ChromeOS.

iPhone & iPad

  1. Open the emoji keyboard and search for “yin yang” to insert ☯️, the colour emoji. For the plain text ☯, copy it from this page.
  2. Copy ☯ from this page, then go to Settings → General → Keyboard → Text Replacement and add it with a shortcut such as ;yin. The shortcut then turns into the symbol as you type, in every app.

Android

  1. In Gboard, tap the emoji key and search for “yin yang” to insert ☯️. For the plain text ☯, copy it from this page.
  2. Copy ☯ here, then open Gboard settings → Dictionary → Personal dictionary and add it with a shortcut.

Microsoft Word

  1. Type 262F, then press Alt + X.
  2. Insert → Symbol → More Symbols. Set “from” to Unicode (hex), type 262F in “Character code” and click Insert.

Google Docs

  1. Insert → Special characters, then search for “yin yang” or draw it in the box.

Excel & Google Sheets

  1. Enter =UNICHAR(9775) in a cell. It works in Excel 2013 and later and in Google Sheets.

HTML

  1. Write ☯ or ☯ in your HTML.

What does ☯ mean?

☯ is the taijitu, the diagram of yin and yang from Chinese philosophy and Taoism. The dark half (yin) and the light half (yang) swirl into each other, and each holds a dot of the other colour. The picture says that opposites such as night and day, rest and action, or cold and heat depend on each other and are never absolute.

Outside China the symbol is used for balance and harmony in general, in martial arts, yoga, tattoos and wellness branding. The traditional orientation shows the dark half on the right with its tail at the top, but fonts differ and neither way is wrong in Unicode, which only defines the character YIN YANG (U+262F).

Common uses

  • Martial arts schools, tai chi and qigong material
  • Writing about balance: work ☯ life
  • Taoist and philosophy texts, next to the trigrams ☰ ☷ from the Yijing

Yin Yang Symbol codes for HTML, CSS and programming

Every code below produces ☯. Use the HTML entity in web pages, the CSS escape in content, and the escape sequence in source code.

Codes for ☯
Unicode code pointU+262F
HTML decimal☯
HTML hex☯
CSS contentcontent: "\262F";
JavaScript"\u262F"
Python"\u262F"
Python (by name)"\N{YIN YANG}"
Java / C#"\u262F"
UTF-8 bytesE2 98 AF
UTF-16262F
URL encoded%E2%98%AF

☯ vs look-alike characters

These characters look similar to ☯ but have a different meaning and code. Pasting the wrong one can break search, sorting and screen readers.

CharNameWhen to use it
Yin yang
U+262F U+FE0F
The emoji form, drawn in colour with a purple background on many phones.
Monogram for Yang
U+268A
Monogram for yang, the unbroken line used in Yijing hexagrams.
Monogram for Yin
U+268B
Monogram for yin, the broken line from the same system.
Peace Symbol
U+262E
Peace symbol, a modern protest emblem with a different meaning.

Symbols similar to ☯

Click to copy, or open a symbol for its codes. See the full chinese symbols collection.

  • Yin yang Details
  • Peace Symbol Details

☯ character properties

Official Unicode name
YIN YANG
Also known as
yin and yang, taijitu, tai chi symbol
Code point
U+262F
Unicode block
Miscellaneous Symbols (U+2600–U+26FF)
General category
Other symbol (So)
Added in
Unicode 1.1 (1993)
Plane
Basic Multilingual Plane (0)
Emoji
Has an emoji form: ☯️ (add U+FE0F)

Frequently asked questions

What does the yin yang symbol mean?

It shows how opposite forces, such as dark and light or passive and active, are connected and balance each other. The small dots show that each side contains a seed of the other.

Which side is yin and which is yang?

Yin is the dark side, associated with the moon, water and rest. Yang is the light side, associated with the sun, fire and activity.

Is there an alt code for the yin yang symbol?

No. ☯ is outside the Windows-1252 and code page 437 character sets, so no Alt + number code produces it. Copy it from this page, type 262F then Alt + X in Word, or find it in Character Map.

How do I type the yin yang symbol on a Mac?

There is no single Option shortcut for ☯ on the US layout. Press Control + Command + Space to open the Character Viewer, search for “yin yang” and double-click it, or copy it from this page.

What is the HTML code for the yin yang symbol?

☯ has no named HTML entity. Use the numeric reference ☯ or ☯, or paste the character directly into a UTF-8 page.

What is the Unicode for the yin yang symbol?

☯ is U+262F, officially named YIN YANG, in the Miscellaneous Symbols block. It has been part of Unicode since version 1.1 (1993).