🌐 EN

β˜ͺ️ Hijri (Islamic) Calendar Converter

Convert a Gregorian date to the Hijri (Islamic) calendar, or convert a Hijri date back to the Gregorian calendar. This tool uses the Umm al-Qura calendar (Saudi Arabia's official calendar) by default, automatically falling back to the tabular Islamic civil calendar if your browser doesn't support it.

β€”
Hijri Date
β€”
β€”
Related Tools

Need another calendar conversion or date calculation? Hebrew (Jewish) Calendar Converter β†’ Β· D-day Calculator β†’ Β· All Date & Time Tools β†’

GUIDE

Learn more

01

What is the Hijri (Islamic) calendar?

The Hijri calendar is a purely lunar calendar used throughout the Islamic world, counting years from the Hijra (Muhammad's migration from Mecca to Medina in 622 CE). A year has 12 months and about 354-355 days, shorter than a Gregorian year, so Hijri dates shift roughly 11 days earlier relative to the Gregorian calendar each year. It is used to set the dates of Islamic religious observances such as the fasting month of Ramadan (month 9).
02

How the conversion works, and two calendar variants

Gregorian β†’ Hijri: the tool first tries the browser's Intl.DateTimeFormat API with calendar: 'islamic-umalqura' (Saudi Arabia's official Umm al-Qura calendar, based on astronomical calculation). If the browser doesn't actually support it and silently substitutes a different calendar (detected by checking resolvedOptions().calendar), it falls back to calendar: 'islamic-civil' (a tabular calendar based on fixed arithmetic rules).

Hijri β†’ Gregorian: there's no standard API for a direct reverse conversion, so the tool estimates a Gregorian date near the given Hijri year, then steps day-by-day forward and backward, converting each candidate back to Hijri and comparing it against your input (bounded to at most 800 iterations), until it finds the exact matching date.
03

Difference from local moon-sighting calendars

Both the Umm al-Qura and Islamic civil calendars used by this tool are calculated (arithmetic) calendars. They may differ by up to Β±1 day from the practice, used by some countries, regions, and religious authorities, of determining the start of each month by actual naked-eye moon sighting. If you need an exact date for religious purposes, check your local authority's official announcement as well.

Frequently asked questions

What's the difference between Umm al-Qura and the Islamic civil calendar?
Umm al-Qura is Saudi Arabia's official calendar, based on astronomically calculated moon phases, while the Islamic civil calendar is a tabular calendar computed from fixed arithmetic rules (11 leap years in each 30-year cycle). This tool prefers Umm al-Qura and only falls back to the civil calendar automatically if the browser doesn't support Umm al-Qura.
Can this differ from the actual moon-sighting date?
Yes. Since this tool uses calculated (arithmetic) calendars, it can differ by up to Β±1 day from the practice, used in some countries and communities, of determining the start of the month by actual moon sighting. For religious observances where the exact date matters, check your local authority's official announcement.
Does this work on older browsers?
This tool uses the browser's Intl calendar API (ICU). Most modern browsers support Umm al-Qura or at least the Islamic civil calendar, but very old browsers may support neither, in which case a notice will be shown.