Hijri ↔ Gregorian Date Converter
Convert any Gregorian date to the Islamic (Hijri) calendar and back, using the official Umm al-Qura calendar of Saudi Arabia or the tabular (Kuwaiti) calendar. You get both results side by side, the weekday, the Arabic month name, every month of the Hijri year, and the dates of Ramadan, Eid and the other observances.
How it works
Umm al-Qura: look up the Gregorian start of each Hijri month in the official Saudi table (1343–1500 AH), then count days from the month start · Tabular (Kuwaiti): 30-year cycle of 10,631 days with leap years (355 days) in years 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29; months alternate 30 and 29 days (Dhu al-Hijjah has 30 in leap years); JDN = day + ⌈29.5 × (month − 1)⌉ + (year − 1) × 354 + ⌊(3 + 11 × year) ÷ 30⌋ + 1,948,439 · epoch 1 Muharram 1 AH = 16 July 622 (Julian) = JDN 1,948,440 · weekday = (JDN + 1) mod 7, 0 = Sunday
The Islamic calendar is lunar: twelve months of 29 or 30 days, giving a year of 354 or 355 days. That is about eleven days shorter than the Gregorian year, so Ramadan and the Eids arrive roughly eleven days earlier each year and move through all the seasons in about 33 years. Traditionally each month begins when the new crescent is seen, which cannot be known far ahead, so two calendars are used for planning. The Umm al-Qura calendar is the official calendar of Saudi Arabia; its month starts are set in advance from astronomical rules for Mecca and published as a table, which this converter contains for 1343–1500 AH (1924–2077). The tabular calendar, also called the Kuwaiti algorithm, is a simple arithmetic rule with a fixed 30-year leap cycle; it works for any year and usually agrees with Umm al-Qura, but falls one day apart in some months. The converter shows both results side by side, uses the one you pick as the main answer, and switches to the tabular rule outside the Umm al-Qura range. Both directions go through the Julian Day Number, a running count of days, which also gives the weekday. Because Islamic days begin at sunset and local sighting committees may start a month a day early or late, you can shift the result by up to two days.
Worked example
Sunday 18 October 2026 converts to 7 Jumada al-Ula 1448 AH in the Umm al-Qura calendar and 6 Jumada al-Ula 1448 AH in the tabular calendar: one of the months where the two differ by a day. Going the other way, 1 Ramadan 1448 AH falls on Monday 8 February 2027 in both calendars, about eleven days earlier than 1 Ramadan 1447 (Wednesday 18 February 2026). The table of observances then lists the next Islamic New Year, Ashura, Mawlid, Ramadan, Eid al-Fitr, the Day of Arafah and Eid al-Adha with their Gregorian dates and how many days away each one is.
Sources: Umm al-Qura Calendar — official site (King Abdulaziz City for Science and Technology) · hijridate — Umm al-Qura month-start table (open source) · Calendrical Calculations (Reingold & Dershowitz) — arithmetic Islamic calendar
Frequently asked questions
Which calendar should I choose, Umm al-Qura or tabular?
Use Umm al-Qura for Saudi Arabia and Gulf official dates, documents and most online Islamic calendars, which follow it. Use the tabular (Kuwaiti) calendar for dates before 1924 or after 2077, or when software you work with uses it: Microsoft’s Hijri calendar and many programming libraries do. The two agree in most months and differ by one day in some.
Why does my mosque’s date differ by a day?
Many communities start each month only after the crescent moon is actually seen, locally or in a chosen country, and that can be a day before or after any calculated calendar. Use the adjustment under More options to shift the result by one or two days to match your community.
What is the difference from Umm al-Qura?
Umm al-Qura sets each month from astronomical rules for Mecca (whether the moon sets after the sun on the 29th day), so its month lengths follow the real moon. The tabular calendar ignores the moon and simply alternates 30- and 29-day months with a fixed leap-year cycle. Over a year their results drift apart and back by a day.
Why does a Hijri date move every year in the Gregorian calendar?
Twelve lunar months add up to 354 or 355 days, about 11 days less than a solar year. So a Hijri date, such as the first of Ramadan or a Hijri birthday, comes about 11 days earlier each Gregorian year and returns to the same season after roughly 33 years.
When does an Islamic day start?
At sunset. The night before a Gregorian date already belongs to the next Hijri day, which is why the first night of Ramadan prayers (taraweeh) happens on the evening before the first day of fasting.
Related calculators
Calendar and astronomical results are computed (tabular Hijri, NOAA solar equations); local moon-sighting, your mosque’s convention and a qualified scholar govern religious practice.