BaZi birth chart converter
Turn a birth date, optionally with a clock time and longitude, into the four pillars: the year pillar changes at Start of Spring, the month pillar at the twelve sectional terms and the day pillar comes from the Julian day number, plus element strength and an optional true-solar-time correction.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Four pillars
Year turns at Start of Spring, month at the 12 sectional terms, day at 23:00 (approximate)
Enter a Gregorian birth date to cast the chart
What this tool does
- Turn a Gregorian birth date into the four pillars: the year pillar switches at Start of Spring, the month pillar at the twelve sectional terms, the day pillar comes from the Julian day number and the hour pillar from the Five Rats rule (a new day starts at 23:00).
- Alongside the pillars you get the lunar date and zodiac animal, na-yin elements, element counts, which elements are missing (with a day-master strength note) and the Ten Gods of the year, month and hour stems.
- Optional true solar time: give the birthplace longitude and the time is corrected by longitude plus the equation of time before the hour pillar is derived. Input accepts YYYY-MM-DD and YYYY-MM-DD HH:MM.
- Everything is computed locally in the browser and can be copied as plain text.
Example
Input
1990-06-15 08:30
Output
Gregorian: 1990-06-15 08:30 Lunar: 一九九〇年五月廿三(庚午年 · 马) Four pillars: 庚午 壬午 辛亥 壬辰 Year: 庚午 (nayin 路旁土) Month: 壬午 (nayin 杨柳木) Day: 辛亥 (nayin 钗钏金) Hour: 壬辰 (nayin 长流水) Element counts: wood 0 · fire 2 · earth 1 · metal 2 · water 3 Day master: 辛 (metal) · balanced Missing: wood Ten gods: year 劫财 · month 伤官 · day 比肩 · hour 伤官
Verbatim output of locale=en for the input above: 1990-06-15 falls in the Wu (午) month before the summer solstice and 08:30 is the Chen (辰) hour. The pillars, na-yin, Ten Gods and lunar date stay in Chinese because they are the sexagenary-calendar data this tool reads; only labels and conclusions are English. This is traditional-culture entertainment, not a prediction.
Frequently asked questions
Is this fortune telling? Can I use the result as a prediction?
No. The tool only converts a Gregorian date into sexagenary pillars and counts the five elements. It is traditional-culture entertainment, not a prediction, recommendation or basis for any decision.
Where do the year and month pillars change?
The year pillar changes at Start of Spring (Li Chun): the day of Li Chun and later belong to the new year, earlier days to the previous one (2024-02-03 is a Gui-Mao year, 2024-02-04 already a Jia-Chen year). The month pillar changes at the twelve sectional terms only — Li Chun starts the Yin month, Awakening of Insects the Mao month, … Minor Cold the Chou month and Major Snow the Zi month. Mid-term terms such as Rain Water never change the month. Term dates come from an astronomical approximation (apparent solar longitude) in UTC+8.
Why does the day change at 23:00?
A common convention treats 23:00 as the start of the next day for the day pillar, so 2000-01-02 23:30 shares its day pillar with 2000-01-03. It is an approximation: other schools switch at midnight, and the difference only affects births between 23:00 and 24:00. This tool always uses the 23:00 rule and has no toggle.
How accurate is the true solar time correction?
It is approximate: 4 minutes per degree of longitude against 120°E plus a closed-form equation of time (good to tens of seconds). The recorded clock time, longitude and time zone all shift the hour pillar, so prefer the time written on the birth certificate. With the switch off, the tool uses plain UTC+8 clock time.
How much data is built in?
The calendar conversion covers 1900-01-31 through 2100-12-31; outside that you get an "out of range" message. The lunar conversion also needs the previous year, so 1900-01-01 to 1900-01-30 (before Chinese New Year 1900) is unavailable — a known boundary, not guessed.
How are element strength and the Ten Gods decided?
Every stem and branch of the pillars (three pillars when no hour is given) counts once for its element; the day master element at 3 or more is "relatively strong", at 1 or 0 "relatively weak", otherwise "balanced". The Ten Gods come from the generative/controlling relation between the day stem and each pillar stem. This is a simplified counting rule, not the strength/useful-god analysis of professional BaZi practice.
Is my birth information uploaded?
No. Everything runs locally in the browser, with no network requests and nothing written to storage.
Keywords:bazi