Hijri to Gregorian Date Converter
Convert any date both ways — Gregorian to Hijri and Hijri to Gregorian — in one tool. A built-in day adjustment lets you match Pakistan's moon-sighting dates when the calculated calendar runs a day ahead or behind.
Gregorian → Hijri
Hijri → Gregorian
In short
The Gregorian side uses your browser's Umm al-Qura Islamic calendar; the Hijri side uses the standard tabular calculation. Both can differ by a day — occasionally two — from Pakistan's sighting-based dates, which is exactly what the ± adjustment is for. For Ramadan and Eid, the Ruet-e-Hilal announcement always prevails.
How it works — two calendars, one conversion
The Gregorian calendar counts years from the traditional birth year of Jesus and organises them around the solar year of about 365.24 days. The Hijri calendar counts years from the Hijrah — the Prophet Muhammad's migration from Makkah to Madinah in 622 CE — and organises them around the moon: twelve lunar months, each beginning (in principle) with the sighting of the new crescent. A lunar year is only about 354 days, so the two calendars drift against each other by roughly eleven days every year, and any conversion has to bridge that drift exactly, day by day.
Every calendar conversion goes through a neutral middle step: a continuous day count. This tool uses Julian Day Numbers — a single unbroken count of days — as that bridge. To go from Hijri to Gregorian, the Hijri date is first turned into a Julian Day Number with the tabular formula, then that number is turned into a Gregorian year, month and day. To go the other way, the top converter asks your browser's built-in Intl Islamic calendar — the Umm al-Qura calculation — for the Hijri equivalent, and falls back to the same tabular arithmetic if your browser does not provide it.
Why two methods? Because there are genuinely two systems in daily use. The tabular (civil) calendar fixes month lengths by rule — odd months 30 days, even months 29, with an extra day in leap years — so it can be computed for any date, past or future, with pure arithmetic. The Umm al-Qura calendar, Saudi Arabia's official calendar, uses astronomical criteria tied to Makkah and also publishes dates in advance. And then there is the third reality: local moon sighting. Pakistan's Ruet-e-Hilal Committee announces the start of each month on actual sighting, and weather, horizon and geography mean the crescent may be seen a day later in Pakistan than a calculation predicts. None of the three is “wrong” — they answer slightly different questions — but you should know which one your converted date came from.
Worked example — a date both systems agree on
Try the verified test pair built into this page: 1 Ramadan 1447 AH = 18 February 2026 (tabular and Umm al-Qura agree). Enter 2026-02-18 in the top converter with adjustment 0 and it returns 1 Ramadan 1447. Enter day 1, month Ramadan, year 1447 in the lower converter and it returns 18 February 2026. A second check: 1 Muharram 1447 AH = 26 June 2025 by Umm al-Qura — the start of the Hijri year 1447; the purely tabular converter below returns 27 June 2025 for it, a typical one-day difference between the two calculated systems, and a good reminder of why the adjustment exists. If you set the adjustment to +1, both results shift by exactly one day, which shows what the adjustment does: it does not change the conversion, it slides the result to match a local announcement. Use it when, for example, Pakistan begins Ramadan a day after the calculated date — set +1 and the whole month lines up with the dates being observed around you.
The twelve Hijri months
In the tabular calendar the months alternate 30 and 29 days, starting with a 30-day Muharram. Only the last month ever changes: Dhul-Hijjah gains a 30th day in leap years. Real sighting-based months can differ from this pattern in any month, which is why a printed tabular month length is a planning guide, not a guarantee.
| # | Month | Days (tabular) |
|---|---|---|
| 1 | Muharram | 30 |
| 2 | Safar | 29 |
| 3 | Rabi al-Awwal | 30 |
| 4 | Rabi al-Thani | 29 |
| 5 | Jumada al-Awwal | 30 |
| 6 | Jumada al-Thani | 29 |
| 7 | Rajab | 30 |
| 8 | Shaban | 29 |
| 9 | Ramadan | 30 |
| 10 | Shawwal | 29 |
| 11 | Dhul-Qadah | 30 |
| 12 | Dhul-Hijjah | 29 (30 in leap years) |
The arithmetic behind the table: a Hijri year has 354 days (355 in leap years) — 11 leap years in each 30-year tabular cycle add the extra days that keep the calculated calendar close to the real moon over centuries. Because the year is about 11 days shorter than the Gregorian year, Islamic months move ~11 days earlier each Gregorian year: Ramadan that falls in February this year fell in March a few years ago and will fall in January a few years from now, completing a full tour of the seasons in about 33 years. That drift is also why a simple “add 622 years” shortcut never works for exact dates — only a day-count conversion like this one gives the right day.
How to use this converter
- For Gregorian → Hijri, pick the date in the top date field and leave the adjustment at 0 for the calculated date.
- If Pakistan's announced date differs by a day, set the adjustment to +1 or −1 so the result matches what is being observed locally.
- For Hijri → Gregorian, enter the day, choose the month by name, and enter the Hijri year, then press Convert.
- Cross-check important dates with the worked example on this page: 1 Ramadan 1447 must come out as 18 February 2026 at adjustment 0.
- For Ramadan, Eid and other religious observances, treat the result as planning information and follow the official Ruet-e-Hilal announcement.
Frequently asked questions
Why does my converted date differ by one day from Pakistan's announced date?
Because the converter calculates and Pakistan sights. The calculated calendars fix the month's start from astronomical rules, but the Ruet-e-Hilal Committee waits for the crescent to actually be seen, and cloud, haze or the moon's position can push that to the next evening. A one-day gap is common and a two-day gap happens occasionally — use the ± adjustment to align the tool with the announced date.
What is the Umm al-Qura calendar?
It is Saudi Arabia's official calendar, calculated in advance from astronomical criteria for Makkah. The top converter in this tool uses it (through your browser's Intl support) because it is the calculated calendar most people in the region actually encounter — on phones, in diaries and in Saudi official dates.
How many days are there in a Hijri year?
354 days in a common year and 355 in a leap year — six 30-day months and six 29-day months, with the leap day added to Dhul-Hijjah. Being about 11 days shorter than the solar year is what makes Hijri dates travel backwards through the Gregorian seasons.
When is 1 Ramadan 1447?
By calculation, 18 February 2026 — the tabular calendar and Umm al-Qura agree on this one. Pakistan's observed first fast, however, is whatever the Ruet-e-Hilal Committee announces after sighting the Ramadan moon, and that announcement is the one to act on, even if it lands a day either side of the calculated date.
Which years are leap years in the Hijri calendar?
In the tabular system, 11 years in each 30-year cycle are leap years: years 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29 of the cycle. Those extra days stop the calculated calendar drifting away from the moon over long periods — the average tabular year is 354.367 days, very close to twelve real lunar months.
Can I convert very old or future dates?
Yes — the tabular arithmetic works for any year, so birth dates, historical dates and dates decades ahead all convert. Just keep the caveat in mind: for centuries past, the calculated date may sit a day away from the date people actually observed at the time, because their months began on sighting.