YinYangCode (yinyangcode.com) is a free BaZi calculator and a plain-English reference for Chinese astrology. You enter a birth date, time and place, and it shows your Four Pillars, your Day Master and the balance of the Five Elements in your chart.
What you can do here
- Cast a free BaZi chart from your exact birth moment, with no account.
- Read about each of the sixty Day Pillars, from Yang Wood Rat to Yin Water Pig.
- See the Chinese horoscope for 2027, the Fire Goat (Ding-Wei) year, for all twelve signs, with the zodiac calculator and compatibility pages for every pair of signs.
- Look up any card in the tarot and read a Western birth chart guide.
- Order The Full Reading, a personal written report of more than 3,000 words, for a one-time $24 with a 14-day refund.
How a chart is calculated
The chart comes from a deterministic engine, not from guesswork. Your clock time is converted to true solar time at the longitude of your birthplace. The year and month pillars change at the solar terms, so the year begins at Li Chun, around 4 February, not on 1 January and not at Lunar New Year. The day and hour pillars follow the sixty-pair sexagenary cycle. Readings follow the Zi Ping (子平) tradition of Four Pillars interpretation. The day-pillar naming and calculation code is published as a small open-source library, jiazi (MIT licence).
Not to be confused with
Other projects share the name. The YinYangCode repository from BGI-SynBio is a DNA data-storage codec, and it has no connection with this site. YinYangCode here means only this BaZi and Chinese astrology website.
Who runs it
YinYangCode is operated by Shiwen Yu, an individual based in Chengdu, Sichuan, China. Write to hello@yinyangcode.com; a person reads every message. Payments are handled by Waffo as Merchant of Record. See the Terms, Privacy Policy and Refund Policy.
Official profiles
Frequently asked questions
What is YinYangCode?
YinYangCode is a website that calculates Chinese BaZi (Four Pillars of Destiny) birth charts for free and explains them in plain English. It also publishes reference pages for the 60 Day Pillars, the 2027 Chinese horoscope for all twelve zodiac signs, zodiac compatibility, tarot card meanings and Western birth charts.
Is YinYangCode the same as the Yin-Yang codec for DNA data storage?
No. There is a separate open-source project also called YinYangCode, from BGI-SynBio, that encodes digital files into DNA sequences. It has nothing to do with this website, which is about Chinese astrology and BaZi charts.
Is YinYangCode a novel or a game?
No. YinYangCode is the name of this BaZi and Chinese astrology website, nothing else. The name is the English "yin yang" plus "code", meaning the code of your birth chart.
Who runs YinYangCode?
YinYangCode is operated by Shiwen Yu, an individual based in Chengdu, Sichuan, China. You can reach a person at hello@yinyangcode.com.
How does YinYangCode calculate a BaZi chart?
The chart is calculated by a deterministic engine, not written by hand. Your clock time is converted to true solar time at the longitude of your birthplace. The year and month pillars change at the solar terms, so the year begins at Li Chun (around 4 February), not on 1 January or at Lunar New Year. The day and hour pillars follow the sixty-pair sexagenary cycle. Readings follow the Zi Ping (子平) tradition.
Is the BaZi chart free?
Yes. The chart, your Day Master and your Five Elements balance are free, need no account, and nothing is stored. A longer personal written report, The Full Reading, costs a one-time $24 and has a 14-day refund.
Readings on this site are offered for cultural interest, reflection and entertainment, not as professional advice.