Hijri ⇄ Gregorian converter
calc_hijriConvert dates between Gregorian and Hijri using the Umm al-Qura calendar. Calculate Hijri age, next birthday, or month length, with results in English and Arabic.
Instructions
Convert between Gregorian and Hijri dates with the Umm al-Qura calendar (the same Intl calendar the website uses), both ways. Modes: to_hijri (a Gregorian date), to_gregorian (Hijri year, month 1–12, day), month (length of a Hijri month and its Gregorian start/end), age (age in Hijri and Gregorian years, next Hijri birthday). Results come in English and Arabic (Arabic-Indic digits by default; Gregorian month names in the Egyptian/Gulf or Levant style). Supported range 1300–1600 AH (1882–2174). Web version: https://s3eidat.github.io/hijri-converter/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | to_hijri: Gregorian date YYYY-MM-DD (default today). | |
| mode | Yes | Which conversion. | |
| onDate | No | age: age on this Gregorian date (default today). | |
| hijriDay | No | to_gregorian: Hijri day 1–30. | |
| birthDate | No | age: Gregorian date of birth YYYY-MM-DD. | |
| hijriYear | No | to_gregorian / month: Hijri year (1300–1600). | |
| hijriMonth | No | to_gregorian / month: Hijri month 1–12 (1 = Muharram, 9 = Ramadan). | |
| arabicDigits | No | Use Arabic-Indic digits in the Arabic text. | |
| gregorianArabicMonths | No | Arabic Gregorian month names: intl (Egypt/Gulf style, January = Yanayir) or levant (Syria/Jordan style, January = Kanun al-Thani). | intl |