The Hijri calendar, also called the Islamic calendar, follows the moon. Each of its 12 months has 29 or 30 days, so a year has 354 or 355 days, about 11 fewer than a Gregorian year. That is why Ramadan and the two Eids move through the seasons, arriving about 11 days earlier each Gregorian year. Years are counted from the Hijra, the Prophet's migration from Mecca to Medina in 622 CE, and are written with AH (Anno Hegirae).
A month can start in two ways: when the new crescent moon is seen, or by calculation. Umm al-Qura is the calculated calendar Saudi Arabia uses for official dates, and it is the one this tool converts with. Countries and communities that wait for a local sighting may start a month a day later, so a date near the start or end of a month can be one day off from your local mosque's calendar.
The top of the tool shows today's Hijri date, read from your device's clock. Gregorian to Hijri gives the Hijri date and how many days its month has. Hijri to Gregorian gives the Gregorian date with its weekday and how many days it is from today. The conversion runs in your browser.
What you will learn while converting Hijri dates
A lunar year is 354 or 355 days long, so each Hijri date arrives about 11 days earlier in the Gregorian year than the year before. On the Umm al-Qura calendar, Ramadan begins on February 8, 2027, January 28, 2028 and January 16, 2029.
Hijri months never have 31 days, and the same month can have 29 days one year and 30 the next. Ramadan 1447 AH had 30 days; Ramadan 1448 AH has 29.
Two Ramadans can begin in one Gregorian year. In 2030, Ramadan 1451 AH begins on January 5 and Ramadan 1452 AH on December 26.
A converter turns a date into a count of days and reads that count in the other calendar. Umm al-Qura months come from astronomical calculations published in advance as tables, so code looks them up: JavaScript's Intl.DateTimeFormat has the table built in as islamic-umalqura, which this page uses, and Python's hijridate package ships it too.
How to convert a Hijri date
1
Read today's Hijri date
It sits at the top, with the Gregorian date under it. It comes from your device's date, so it moves on at midnight where you are.
2
Choose the direction
Pick Gregorian to Hijri or Hijri to Gregorian. Both start on today's date.
3
Enter the date
Choose the day and the month by name, and type the year. Gregorian years run from 1900 to 2100 and Hijri years from 1318 to 1524. In Gregorian to Hijri, the Today button puts back the current date.
4
Read the result
Gregorian to Hijri shows the Hijri date and the days in that Hijri month. Hijri to Gregorian shows the weekday, the date and how many days away it is. Day 30 of a 29-day month gives That date does not exist.
The 12 Hijri months
Month names as the tool writes them, other common spellings, and when each month of 1448 AH begins on the Umm al-Qura calendar, with its length.
Month
Also written
1448 AH begins
Known for
1. Muharram
Muharram
June 16, 2026 (29 days)
Islamic New Year on the 1st, Ashura on the 10th; a sacred month
2. Safar
Safar
July 15, 2026 (30 days)
No major holiday
3. Rabiʻ I
Rabi al-Awwal
August 14, 2026 (29 days)
Mawlid, the Prophet's birthday, on the 12th in many countries
4. Rabiʻ II
Rabi al-Thani, Rabi al-Akhir
September 12, 2026 (30 days)
No major holiday
5. Jumada I
Jumada al-Ula, Jumada al-Awwal
October 12, 2026 (30 days)
No major holiday
6. Jumada II
Jumada al-Akhirah, Jumada al-Thani
November 11, 2026 (29 days)
No major holiday
7. Rajab
Rajab
December 10, 2026 (30 days)
A sacred month
8. Shaʻban
Shaban
January 9, 2027 (30 days)
The month before Ramadan
9. Ramadan
Ramadhan
February 8, 2027 (29 days)
The month of fasting
10. Shawwal
Shawwal
March 9, 2027 (30 days)
Eid al-Fitr on the 1st
11. Dhuʻl-Qiʻdah
Dhu al-Qadah
April 8, 2027 (29 days)
A sacred month
12. Dhuʻl-Hijjah
Dhu al-Hijjah
May 7, 2027 (30 days)
The Hajj, Eid al-Adha on the 10th; a sacred month
Hijri dates in practice
The first day of Ramadan 1448
Paste a small example into the tool and change one part at a time.
The tool shows Monday, February 8, 2027, and how many days that is from today. Where the month starts with a local moon sighting, the first fast can be a day later.
How long Ramadan 1448 lasts
Copy the original value, run the tool, then compare the result.
The result is Ramadan 1, 1448 AH, and Days in this month reads 29. So 1 Shawwal, Eid al-Fitr, falls on Tuesday, March 9, 2027 on the Umm al-Qura calendar.
A birthday in the Hijri calendar
Take a value from your own work and use this tool to inspect or prepare it.
The tool shows Shawwal 20, 1410 AH, in a 30-day month. The Hijri birthday comes about 11 days earlier each Gregorian year, so convert 20 Shawwal of a later Hijri year back to find its Gregorian date.
hijridate uses the Umm al-Qura calendar too, so it agrees with the tool: November 21, 2026 is 11 Jumada II 1448 (it spells the month Jumada al-Akhirah), and 1 Ramadan 1448 is February 8, 2027, in a 29-day month.
Common Hijri conversion mistakes
Expecting the tool to match a moon-sighting calendar to the day. Umm al-Qura is calculated in advance; where a month begins when the crescent is seen, the date can be one day later.
Forgetting that the Islamic day begins at sunset. In religious use the evening already belongs to the next Hijri date, while the tool converts whole calendar days that start at midnight.
Converting years with a fixed difference. The Hijri year is shorter, so the gap between the two year numbers shrinks by about one every 33 years. 1448 AH runs from June 16, 2026 to June 5, 2027.
Picking day 30 in a month that has 29. The tool answers That date does not exist, so check Days in this month first.
Assuming a Hijri date stays in the same season. Ramadan moves about 11 days earlier each Gregorian year and goes round the whole year in about 33 years.
Hijri date converter FAQ
What is the Hijri date today?
The top of the converter shows it, on the Umm al-Qura calendar, from your device's date. Where the month is started by a local moon sighting, the date there can differ by a day.
Which Hijri calendar does this converter use?
Umm al-Qura, the official calculated calendar of Saudi Arabia. Calendars that rely on moon sighting can differ from it by a day.
How do I convert Gregorian to Hijri?
Leave Convert on Gregorian to Hijri and pick the day, month and year. The Hijri date appears with the number of days in its month.
How do I convert a Hijri date to Gregorian?
Switch to Hijri to Gregorian and pick the Hijri day, month and year. You get the Gregorian date with its weekday and how many days it is from today.
When does Ramadan begin in 2027?
On the Umm al-Qura calendar, 1 Ramadan 1448 AH is Monday, February 8, 2027, and Eid al-Fitr is Tuesday, March 9, 2027. Where the month starts by sighting, each can be a day later.
Which years can I convert?
Gregorian dates from 1900 to 2100, and Hijri years 1318 to 1524, which cover the same span.
Why does a Hijri month have 29 or 30 days?
Each month follows the moon, and one new moon to the next takes about 29.5 days. The calendar rounds that to 29 or 30 days a month.
What does AH mean after a Hijri year?
Anno Hegirae, the year of the Hijra. Year 1 AH began in 622 CE, when the Prophet migrated from Mecca to Medina.