About the Hijri and Gregorian date converter
The Islamic calendar, also called the Hijri calendar, is a lunar calendar that began with the migration (Hijra) of the Prophet Muhammad ﷺ from Makkah to Madinah in 622 CE. Its twelve months follow the phases of the moon, so a year has about 354 or 355 days – roughly eleven days shorter than the Gregorian solar year. That is why Ramadan, Hajj and the two Eids move earlier through the seasons every year. This tool shows today's Hijri date automatically and converts any date in either direction.
How to use the converter
- Look at the two panels at the top: they display today's Hijri date (in English letters and in Arabic script) and today's Gregorian date, taken from your device clock.
- To convert a Gregorian date, choose it in the Gregorian → Hijri box and press Convert to Hijri.
- To convert a Hijri date, enter the day, pick the month name and type the year, then press Convert to Gregorian.
- If your country's moon-sighting committee announces a date that differs from the calendar, use the adjustment drop-down to move the result by one or two days.
The twelve Islamic months
The months are Muharram, Safar, Rabi' al-Awwal, Rabi' al-Thani, Jumada al-Ula, Jumada al-Akhirah, Rajab, Sha'ban, Ramadan, Shawwal, Dhu al-Qi'dah and Dhu al-Hijjah. Four of them – Muharram, Rajab, Dhu al-Qi'dah and Dhu al-Hijjah – are sacred months. Each month has 29 or 30 days, depending on when the new crescent is seen.
Practical examples
Many Muslims use Hijri dates to plan fasting in Ramadan, the days of Dhul Hijjah, the white days (13th–15th of each month) and the Islamic New Year. Zakat is also tied to the lunar year: your wealth must be held for one Hijri year before Zakat becomes due, so converting your savings date to Hijri helps you pick a fixed Zakat day. Families and businesses also use the converter for documents, school forms, travel papers and historical research that quote Hijri dates.
How accurate is it?
The converter uses the Umm al-Qura calendar built into modern browsers, which is the official civil calendar of Saudi Arabia and covers the years 1300 to 1600 AH. Umm al-Qura is calculated astronomically in advance, whereas many countries start their months by actually sighting the crescent. As a result, the date you see locally can differ by one day. Religious observances such as the first day of Ramadan and Eid should always follow the announcement of your local authority; use the adjustment option to match it. If your browser lacks the Umm al-Qura calendar, the tool falls back to the tabular Islamic calendar, which can differ by a day or two from the sighted calendar.
Everything runs on your device. The dates you type are never sent to a server.
Frequently asked questions
Why is the Hijri date different from my local moon-sighting announcement?
The tool uses a pre-calculated astronomical calendar, while many communities start months by sighting the new moon. These can differ by a day. Use the adjustment drop-down to align with your local authority's date.
How many days are in a Hijri year?
A Hijri year has 12 lunar months of 29 or 30 days, giving 354 or 355 days. This is about 11 days shorter than a Gregorian year, so Islamic dates shift earlier through the seasons.
Which years can I convert?
Gregorian dates from 1925 to 2174 and Hijri years from 1300 to 1600 AH, which is the range supported by the Umm al-Qura calendar in browsers.
Why do I get an error for day 30 of some months?
Islamic months last either 29 or 30 days, so some months do not have a 30th day. The converter tells you when a date does not exist in the chosen month and year.
Does the converter work offline?
Yes. Once the page has loaded, conversions use your browser's built-in calendar and do not need the internet or send any data to us.