序ShixuChinese metaphysics · everyday reference
A perspective on time

Lunar–Gregorian converter

Convert between Gregorian and lunar dates, leap months included.

Birth data stays on this deviceFree · No account needed
2027 year guide: yearly forecast, Tai Sui, flying stars and lucky days →

Convert between Gregorian and lunar dates, leap months included.

1

About

This tool converts both ways: enter a Gregorian date to get the lunar year, month and day, the year's stem-branch and zodiac; or enter a lunar date (tick the leap month if the year has one) to get the Gregorian date. The range is 1901–2099.

Conversion uses the open-source lunar-javascript library with the current lunar-calendar rules. To cast a BaZi or Zi Wei chart you do not need to convert; the chart pages accept a Gregorian birth date directly.

2

How it works

Traditional culture and self-reflection only — not scientific prediction, and not a basis for medical, financial, legal or major life decisions.

3

How to use

  1. Enter your details in the form on the left (a date, number or name). Fields marked optional can be skipped.
  2. Press the button; the result is worked out instantly in your browser and shown in the middle.
  3. Treat the result as a reference; change an input and run it again to compare.
4

Privacy & data

Tools still work without registering. Optional social sign-in (Google, Facebook or LINE) may receive an account id and sometimes email or display name from that provider; we do not create passwords, and sign-in never uploads birth details or charts. Birth details remain in page memory and are removed on clear or reload. They are not stored or added to URLs. Only language preference is saved locally. The site is funded by affiliate banners (Shopee, Coupang, Trip.com), always labelled as ads. Most banners are plain links; Coupang's banner is loaded from Coupang inside an isolated frame. When you click one, the merchant may set cookies and record that you came from this site so we can earn a commission. We use no ad-network scripts, pop-unders or push notifications, and never give birth details or charts to any merchant. No analytics or external AI requests are enabled. Visitors in the EEA, UK or Switzerland do not get third-party scripts (the Coupang banner). You can refuse banners with your browser's ad or cookie blocking; the tools keep working.

5

FAQ

How do I enter a leap month?

After choosing the lunar year and month, a “leap month” box appears when the year has one; tick it before converting.

Why is day 30 sometimes rejected?

Lunar months are 29 or 30 days; entering a non-existent day shows an error — use day 29.

Do I need to convert before casting BaZi?

No. The BaZi and Zi Wei pages take a Gregorian birth date.

Is my data uploaded?

No. Everything is calculated in your browser.