Hijri Date Converter

Convert dates both ways between the Gregorian and Hijri calendars using the official Umm al-Qura calendar, with the twelve Hijri months and their typical lengths for reference.

The twelve Hijri months and typical lengths

MonthTypical days
Muharram30
Safar29
Rabi' al-Awwal30
Rabi' al-Thani29
Jumada al-Ula30
Jumada al-Akhira29
Rajab30
Sha'ban29
Ramadan30
Shawwal29
Dhu al-Qi'dah30
Dhu al-Hijjah29 (30 in leap years)

Typical lengths follow the traditional 30-year tabular pattern: odd months have 30 days, even months 29, and the twelfth month gains a day in leap years. Actual months in the Umm al-Qura calendar are computed astronomically and may run a day shorter or longer in a given year, which is why a day-30 entry is verified against the real month length before it is accepted.

How to use

  1. To convert to Hijri, pick a Gregorian date and click "Convert to Hijri".
  2. To convert to Gregorian, choose the Hijri day, month and year, then click "Convert to Gregorian".
  3. Use the reference table of the twelve months and their typical lengths when a day-30 entry is rejected.

Frequently asked questions

What is the Umm al-Qura calendar?

Umm al-Qura (literally "the mother of towns", after Mecca) is the official civil calendar of Saudi Arabia. Its month beginnings are set in advance from precise astronomical calculations of the new moon near Mecca, published for years ahead. Because those dates are computed rather than announced after the fact, the calendar is fully deterministic: any date you convert today will match the tables used across Saudi government and business.

Why can the result differ by a day from my local moon sighting?

Hijri months begin when the new crescent is actually seen, and sighting depends on your location, the weather and your local religious authority. The Umm al-Qura calendar is one computed convention centred on Mecca, so a date it marks as the first of a month can fall one day before or after the evening the crescent is sighted where you live. Religious dates such as Ramadan and Eid should follow your local announcement.

What is the 30-year cycle?

The traditional tabular Islamic calendar repeats a pattern of month lengths every 30 lunar years: in each cycle 11 of the 30 years are leap years with one extra day, which keeps the calendar aligned with the moon. The table in this tool shows the typical month lengths that follow from that pattern. The Umm al-Qura calendar is computed astronomically instead, so its actual months can differ from the tabular pattern by a day in some years.

Why does day 30 sometimes not exist in a month?

Every Hijri month has either 29 or 30 days, and which one applies depends on the year and the month. If you pick day 30 for a month that ends on day 29, the converter tells you the actual length of that month instead of silently shifting the date. This mirrors real calendar practice: the day simply does not exist, so there is nothing to convert and no approximation is hidden from you.

Is this converter official for religious or legal purposes?

No. The results are for informational use only: planning, curiosity and everyday reference. For anything with religious or legal weight, such as determining the start of Ramadan, paying zakat on a specific date or fixing contractual dates, rely on your local religious authority, mosque or official announcements. Different countries and communities can legitimately observe dates one day apart, and an astronomical calendar cannot settle that for you.

Related tools