Gregorian ↔ Hijri Date Converter

Convert between Gregorian and Islamic Hijri calendar dates

Ad placeholder (leaderboard)

The Islamic Hijri calendar is purely lunar, so its dates drift through the Gregorian seasons by about 11 days each year. This converter maps dates between the two systems with the widely used tabular (arithmetic) algorithm, which is deterministic and matches the calendars built into most software.

How it works

Both dates are converted through the chronological Julian Day Number (JDN), then into the target calendar:

Gregorian (y,m,d) ─► JDN ─► Hijri (y,m,d)
Hijri     (y,m,d) ─► JDN ─► Gregorian (y,m,d)

The Hijri side uses the standard 30-year cycle in which years 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29 are leap years of 355 days; the rest have 354. Odd months are 30 days, even months 29, with Dhu al-Hijjah taking the extra leap day.

Example and tips

Converting 2000-01-01 returns 24 Ramadan 1420 AH, and 2026-06-06 returns 20 Dhu al-Hijjah 1447 AH. Because observance depends on the sighting of the crescent moon, the start of Ramadan or the date of Eid announced where you live may differ from the tabular result by a day in either direction — treat the converted date as the calendrical reference, not a religious ruling.

Ad placeholder (rectangle)