Hijri Date Converter

  • Free, no sign-up
  • Runs in your browser
  • Updated
Quick answer. The Hijri Date Converter turns a Gregorian date into its Islamic (Hijri) date and back, using your browser’s built-in Umm al-Qura or tabular Islamic calendar. Official dates in Pakistan follow moon sighting and can differ by a day.

Hijri Date Converter tool

Calendar

Result

…

Pakistan’s official Islamic dates follow moon sighting by the Ruet-e-Hilal Committee and can differ from these calculated dates by one day.

Runs in your browser. Your data never leaves your device.

How to use the Hijri Date Converter

  1. 1Choose the direction: Gregorian to Hijri or Hijri to Gregorian.
  2. 2Pick the calendar: Umm al-Qura (Saudi) or tabular (civil).
  3. 3Enter the date. The result updates instantly.
  4. 4Copy the result if you need it elsewhere.

What is a Hijri date converter?

A Hijri date converter changes a date from the Gregorian calendar (the one used for everyday dates, such as 1 December 2026) into the Islamic Hijri calendar, and back again. This converter uses the Islamic calendars built into your web browser, so it works offline once the page has loaded and needs no external service.

The Hijri calendar counts years from the Hijrah, the migration of the Prophet Muhammad (peace be upon him) from Makkah to Madinah in 622 CE. Years are written with "AH" (Anno Hegirae).

How does the Hijri calendar work?

The Hijri calendar is lunar. Each month starts with a new crescent moon and lasts 29 or 30 days. Twelve months make a year of 354 or 355 days, about 11 days shorter than a Gregorian year. That is why Ramadan and Eid move about 11 days earlier every year and travel through all seasons over roughly 33 years.

The twelve 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.

Two calculated calendars

CalendarHow month lengths are setUsed for
Umm al-QuraAstronomical calculation for MakkahSaudi Arabia's official civil calendar
Tabular (civil)Fixed 30-year cycle: 11 leap years with a 355-day yearHistorical dates, quick conversions

Both are implemented by the Unicode CLDR data that browsers use through the JavaScript Intl.DateTimeFormat API, documented on MDN. For Hijri to Gregorian, the tool estimates the date with the average month length (29.53 days) and then checks the nearby days until the browser's calendar matches exactly.

Why can Pakistan's Islamic date be different?

In Pakistan, a new Islamic month starts only when the crescent moon is actually seen. The central Ruet-e-Hilal Committee meets on the 29th of the month and announces whether the moon was sighted. If it was not, the month runs to 30 days. Calculated calendars cannot predict sighting perfectly, because weather, the thin young crescent and the time of sunset all matter.

In practice, Pakistan's dates are often one day behind Saudi Arabia's Umm al-Qura date. For Ramadan and Eid, always follow the official announcement.

Worked example

Convert 1 Ramadan 1447 AH with the Umm al-Qura calendar: the tool returns a date in February 2026. Convert the same Hijri date with the tabular calendar and it may be a day apart. That difference is normal and shows why the two calendars exist.

Going the other way, enter today's Gregorian date to see today's calculated Islamic date. The tool fills it in automatically when the page opens.

Tips

  • Use Umm al-Qura for modern dates and planning, and the tabular calendar for rough historical conversions.
  • Planning around Ramadan? The Ramadan Calendar shows Sehri and Iftar times for each day.
  • Need daily namaz times? See Prayer Times.
  • Developers converting dates in code may also find the Unix Timestamp Converter useful.

Limitations

  • Results depend on your browser's calendar data. Very old browsers may not support Islamic calendars.
  • Dates far in the past (before about 1300 AH) or far in the future are less meaningful because no official calendar covered them.
  • Calculated dates are not religious rulings. For worship dates, follow your local moon-sighting authority.

Key terms

  • AH: Anno Hegirae, "in the year of the Hijrah".
  • Ruet-e-Hilal Committee: Pakistan's official moon-sighting committee.
  • Lunar month: the time from one new moon to the next, about 29.53 days on average.

Frequently asked questions

What is today’s Islamic date in Pakistan?

Open the tool: it shows today’s calculated Hijri date. Pakistan’s official date is set by the Ruet-e-Hilal Committee after moon sighting, so it can be one day behind the calculated date.

What is the difference between Umm al-Qura and the tabular calendar?

Umm al-Qura is Saudi Arabia’s official calendar, based on astronomical calculation for Makkah. The tabular (civil) calendar uses a fixed 30-year cycle of 29- and 30-day months. They usually agree within a day.

How long is a Hijri year?

A Hijri year has 12 lunar months and lasts 354 or 355 days, about 11 days shorter than a Gregorian year. That is why Ramadan moves earlier each year.

Why does a Hijri date show as “does not exist”?

Islamic months have 29 or 30 days. If you enter the 30th of a month that has only 29 days in that year, there is no matching date.

Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.