We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Bazi to Gregorian Calendar Converter
If this tool helped you, you can buy us a coffee ☕
Free online two-way converter for Gregorian dates and Bazi (Four Pillars of Destiny). Supports Ziwei and Ziping school Rat hour (Zi hour) rules for accurate Chinese astrology calculations and calendar conversions.
Online TOML to JSON Converter
Free online TOML to JSON converter. Easily convert TOML configuration files into JSON format for seamless cross-platform deployment and API integration.

Expiration Date Calculator
Calculate the expiration date based on the production date and shelf life, or check the near-expiry and expired status based on the expiration date.
JSON to Protobuf Converter
Free online JSON to Protobuf converter. Instantly generate Protocol Buffers message definitions from JSON data.
For someone born at 23:30 on January 1, 1990, the Bazi Day Pillar calculated according to the Ziwei school is Yi-Hai, while under the Ziping school, it becomes Bing-Zi. At the exact same moment, the Day Pillar differs by one day. This is the famous "Zi Hour Dispute" in astrological chart calculation, and it is one of the core problems this converter addresses.
Bazi, also known as the Four Pillars of Destiny, consists of the Heavenly Stems and Earthly Branches corresponding to the year, month, day, and hour of birth, totaling eight characters. The Gregorian calendar is the standard calendar we use daily. This converter builds a two-way bridge between Bazi and the Gregorian calendar: you input a Gregorian date and time, and it calculates the corresponding Bazi Four Pillars; conversely, you can input a set of Bazi stems and branches, set a year range, and it will find the matching Gregorian dates.
When to use it:
Open the Bazi to Gregorian Calendar Converter, and you will see two tabs: 'Gregorian to Bazi' and 'Bazi to Gregorian'. The operations in both directions are straightforward.
Gregorian to Bazi (Forward Calculation):
Bazi to Gregorian (Reverse Search):
Let's walk through the process with a specific example. Suppose a person's birth time is 9:15 AM on March 14, 1988.
Operation:
Conversion Result:
The complete Bazi is "Wu-Chen, Yi-Mao, Wu-Chen, Ding-Si". The Year Pillar Wu-Chen corresponds to 1988 (Year of the Earth Dragon); the Month Pillar Yi-Mao is the stem and branch for the second lunar month; the Day Pillar Wu-Chen and Hour Pillar Ding-Si are calculated from the day stem. If you switch the school to 'Ziping School', the result will not change because the birth time is not in the Late Zi Hour (23:00–24:00)—we will expand on this detail in the next section.
Now let's try the reverse. Suppose you only know a person's Bazi is "Geng-Xu, Wu-Zi, Bing-Yin, Ji-Hai", and you want to find their possible Gregorian birth time.
Operation:
Interpreting the Search Results:
The calculator will list several matching dates, one of which is January 6, 1971, 21:00–23:00 (Hai Hour). The same set of Bazi may appear multiple times within a large time range—because the Heavenly Stems and Earthly Branches cycle every 60 years (the Sexagenary cycle), the Geng-Xu year could correspond to 1910, 1970, 2030, etc. If you can further narrow down the year range (e.g., knowing the person was born in the 1970s and narrowing the range to 1970–1980), the search results will be much more precise.
In Bazi chart calculation, the biggest controversy is the handling of the Zi Hour. The period from 23:00 to 1:00 the next day is the Zi Hour, with 23:00–24:00 specifically called the 'Late Zi Hour'. The differences between the two schools are concentrated here:
| Comparison Dimension | Ziwei School | Ziping School |
|---|---|---|
| Late Zi Hour (23:00–24:00) Attribution | Counts as Same Day | Counts as Next Day |
| Day Pillar for Jan 1, 23:30 | Uses Jan 1 | Uses Jan 2 |
| Common Application | Ziwei Doushu (Purple Star Astrology) | Traditional Ziping Bazi |
| Hour Pillar Heavenly Stem | Calculated from same day's Day Stem | Calculated from next day's Day Stem |
This difference means that the same person's birth time could result in completely different Day and Hour Pillars under the two rules. Our converter gives you full control—through the school dropdown menu, you can view both results separately and visually compare the differences. If you notice inconsistencies when comparing charts from different fortune-tellers, first check if they are using the same Zi Hour rule; the answer usually lies there.
1. Mistakenly entering lunar dates into the Gregorian input box
Bazi calculation is based on solar terms (traditional Chinese calendar), but the input interface for this converter is the Gregorian calendar. If you only know the lunar birthday (e.g., 'the 3rd day of the 1st lunar month'), you need to convert it to a Gregorian date before inputting. The calculator does not automatically recognize lunar dates.
2. Setting the year range too wide during Bazi reverse search
The larger the search range, the more matching results there will be, and the longer the calculation will take. If you know the approximate birth era, narrowing the start and end years to within 20–30 years will significantly improve search efficiency and result usability.
3. Ignoring the global impact of the Zi Hour rule
Under the Ziping school, the Late Zi Hour not only affects the Day Pillar, but the Heavenly Stem of the Hour Pillar will also change accordingly (since the Hour Pillar's stem is determined by the Day Stem). The converter automatically handles this linkage, so you don't need to manually adjust anything—but be aware that this change is normal.
4. Assuming a one-to-one correspondence between Bazi and the Gregorian calendar
A set of Bazi stems and branches may appear multiple times over a large time span (at intervals of 60 years or less). The result of a Bazi to Gregorian conversion is a list of candidates, not a single unique date. You need to combine known information (such as approximate birth year, Chinese zodiac sign, etc.) to confirm the exact day.
5. Boundaries of accuracy and applicable scenarios
The algorithm of this converter follows standard stem-branch calendar rules but does not include True Solar Time calibration. If your birth time requires correction based on the longitude of your birthplace (True Solar Time), the calculated results may differ slightly from professional astrology software. The converter's output is for astrological research and learning reference only and does not constitute any form of destiny prediction or life advice. All input data is processed locally in your browser and is not uploaded or stored on any server.
Q: Why are there multiple results when converting Bazi to the Gregorian calendar?
A: The Heavenly Stems and Earthly Branches follow a 60-year cycle (the Sexagenary cycle), so the same set of Bazi stems and branches may correspond to multiple Gregorian dates. For example, 'Jia-Zi, Bing-Yin, Wu-Xu, Ren-Zi' could appear in 1924, 1984, and 2044. Narrowing the search year range to your known interval will help pinpoint the target date.
Q: Which is more accurate, the Ziwei school or the Ziping school?
A: There is no such thing as one being more accurate; they are simply rule differences between different astrological schools. Ziwei Doushu mostly uses the Ziwei school (Late Zi Hour counts as the same day), while traditional Ziping Bazi mostly uses the Ziping school (Late Zi Hour counts as the next day). You can switch and compare them at any time in the converter and choose the result that aligns with the school you study.
Q: What if I only remember my approximate birth time?
A: You can first input the closest time as a baseline (e.g., if it was 'around noon', use the Wu Hour 11:00–13:00), and then adjust forward or backward by one or two hours (Si Hour, Wei Hour) to convert separately and observe the Bazi changes. The converter presents results instantly, making comparisons very quick.
Q: Can this converter handle lunar calendar inputs?
A: This tool only converts between Bazi (stems and branches