Date & Time

Gregorian to Hijri Converter

Convert between the Gregorian and Islamic calendars, in either direction.

Written and maintained by the MarsCalc Hub editorial team Formula checked against the tabular Islamic calendar algorithm Updated

Hijri dates here use the tabular (arithmetical) Islamic calendar, which is fixed and predictable. Locally observed dates depend on moon sighting and can differ by a day either way — check with your local authority for religious observances.

About the Gregorian to Hijri Converter

Convert a date between the Gregorian and Islamic calendars, in either direction. Enter a Gregorian date to get the Hijri equivalent, or a Hijri date to get the Gregorian one. The weekday is shown alongside, since it is the same in both systems.

The conversion uses the tabular (arithmetical) Islamic calendar — a fixed, deterministic scheme that repeats on a 30-year cycle. It is the standard used for civil records, software and printed calendars, because it produces the same answer everywhere and can be calculated for any date, past or future.

Locally observed dates work differently and can differ by a day. The page explains why below, and the tool says so rather than presenting a calculated date as though it settled the question.

How to use the Gregorian to Hijri Converter

  1. Choose the direction you want to convert.
  2. Enter the Gregorian date, or the Hijri year, month and day.
  3. Select Convert.
  4. Both forms of the date are shown, along with the weekday.
  5. The conversion round-trips exactly — converting back gives the original date.

How the conversion works

Both calendars are bridged through the Julian Day Number — a continuous count of days used in astronomy, with no months or years to complicate matters. Convert your date to a JDN, then convert that JDN out into the other calendar.

Gregorian date → Julian Day Number → Hijri date

Hijri date → Julian Day Number → Gregorian date

Epoch: 1 Muharram 1 AH = 16 July 622 CE in the Julian calendar.

Using a day count as the intermediate step is what makes the conversion exact and reversible. There is no drift, no accumulated rounding, and dates thousands of years out still convert cleanly.

Worked example

The Hijri era begins with the Prophet’s migration from Mecca to Medina.

1 Muharram 1 AH converts to JDN 1,948,440.

That JDN read back into the Gregorian system gives 19 July 622 CE, which is 16 July 622 in the Julian calendar then in use.

1 Muharram 1 AH = 16 July 622 CE (Julian)

The Islamic (Hijri) calendar in brief

The Hijri calendar is purely lunar. Twelve months follow the moon’s phases, giving a year of 354 or 355 days — about eleven days shorter than the solar year the Gregorian calendar tracks.

It makes no attempt to stay aligned with the seasons, and that is deliberate rather than an oversight. Because there is no leap month, Islamic dates move steadily backwards through the Gregorian year, completing a full circuit roughly every 33 years. Ramadan therefore falls in every season over a lifetime.

#MonthDays (tabular)Known for
1Muharram30Sacred month; Ashura on the 10th
2Safar29—
3Rabi’ al-Awwal30Mawlid observed by many on the 12th
4Rabi’ al-Thani29—
5Jumada al-Ula30—
6Jumada al-Akhirah29—
7Rajab30Sacred month
8Sha’ban29Precedes Ramadan
9Ramadan30Month of fasting
10Shawwal29Eid al-Fitr on the 1st
11Dhu al-Qi’dah30Sacred month
12Dhu al-Hijjah29 or 30Hajj; Eid al-Adha on the 10th

Months alternate 30 and 29 days in the tabular scheme. Dhu al-Hijjah takes an extra day in leap years — 11 years out of every 30 — which keeps the calculated calendar in step with the moon over the long run.

Tabular versus observed dates

This is the single most important thing to understand about Hijri conversion, and the reason two calendars can disagree by a day.

Tabular (arithmetical)Observed
BasisA fixed 30-year arithmetic cycleSighting the new crescent moon
PredictableYes, indefinitelyOnly shortly in advance
Same worldwideYesNo — varies by country
Used forCivil records, software, printed calendarsReligious observance
Month lengthSet by the scheme29 or 30, decided each month

A lunar month runs about 29.53 days, so a real month is either 29 or 30 — and which one it is depends on whether the crescent is sighted on the 29th evening. Sighting depends on weather, geography and the criteria a country applies, so the answer genuinely differs from place to place.

Expect this converter to agree with a locally published calendar most of the time and to differ by ±1 day some of the time. For religious observance — the start of Ramadan, Eid, Hajj — follow your local moon-sighting authority. This tool is for conversion and record-keeping, not for fixing a date of worship.

Why countries announce different dates

  • Sighting criteria differ. Some authorities require a naked-eye sighting; others accept optical aid or astronomical calculation.
  • Geography matters. The crescent becomes visible at different times across longitudes, so a country to the west may see it a day earlier.
  • Some follow another country. A number of communities adopt Saudi Arabia’s announcement regardless of local visibility.
  • Weather intervenes. Cloud on the 29th evening usually means the month completes at 30 days.

What to expect from a converted date

Historical dates convert reliably in the tabular system, which is exactly why archives and databases use it. Bear in mind that early Islamic sources record dates by observation, so a converted date from the first centuries AH may sit a day or two from what a chronicler recorded.

For age on the Islamic calendar, use the Hijri age calculator. To measure the span between two Islamic dates, try the Hijri date difference calculator.

Hijri to Gregorian calendar: how to convert

Switch the Direction menu to Hijri → Gregorian. Then enter the Hijri day, month and year. The Gregorian (Miladi) date appears with its weekday.

You will see a few names for the same thing. They all mean the same calendars:

  • Hijri, Islamic, Hegira, AH — the lunar calendar that starts with the Prophet's migration (Hijra) to Madinah in 622 CE. AH stands for Anno Hegirae.
  • Gregorian, Miladi, AD, CE — the solar calendar used for most civil dates. "Miladi" is the Arabic name.

Quick formula for the year

Need just the year, with no exact date? These rules of thumb get you within one year:

Hijri year ≈ (Gregorian year − 622) × 33 ÷ 32

Gregorian year ≈ (Hijri year × 32 ÷ 33) + 622

Example: (2026 − 622) × 33 ÷ 32 = 1447.9. So 2026 spans the end of 1447 AH and the start of 1448 AH. The converter above gives the exact day.

Islamic new year dates

The Hijri year starts on 1 Muharram. Because the year is about 11 days shorter, the new year moves earlier in the Gregorian calendar each time.

Hijri year1 Muharram (approx.)
1446 AH7 July 2024
1447 AH26 June 2025
1448 AH16 June 2026
1449 AH5 June 2027

Local dates can differ by a day, because many countries start each month on a moon sighting. Use the converted date for planning, and confirm religious dates with your local authority.

Hijri to AD, Miladi and “normal” calendar

People search for this conversion in many ways: Hijri to AD, Hijri to Miladi, Hegira to Gregorian, or Arabic to Gregorian date. They all mean the same thing. “Miladi” and “AD” refer to the Gregorian calendar used internationally, and “AH” (Anno Hegirae) marks Hijri years. This converter works in both directions: choose the direction above, enter the date, and it returns the matching day.

Other ways to use this calculator

  • Islamic date converter, Islamic calendar converter and Hijri calendar converter — the Hijri and Islamic calendar are the same.
  • Hijri date today — leave today’s date in the box to see the current Hijri date.

Frequently asked questions

The Hijri calendar is the Islamic lunar calendar, counting from the Prophet’s migration from Mecca to Medina in 622 CE — the Hijra. It has twelve lunar months and a year of 354 or 355 days, about eleven days shorter than the solar year. Because it does not adjust for the seasons, Islamic dates move steadily backwards through the Gregorian year, completing a full cycle roughly every 33 years.

Enter today’s Gregorian date above and the converter returns the tabular Hijri equivalent. Bear in mind that the tabular calendar is calculated rather than observed, so your local calendar may differ by a day depending on moon sighting where you are. For religious observance, follow the date announced by your local authority rather than a calculated one.

Because the start of each month depends on sighting the new crescent moon, and that varies. Sighting criteria differ — some authorities require the naked eye, others accept calculation. Geography matters too, since the crescent becomes visible at different times across longitudes. Weather can prevent a sighting entirely, in which case the month simply completes at 30 days.

Tabular dates come from a fixed arithmetic scheme on a 30-year cycle: predictable indefinitely, identical worldwide, and used for civil records and software. Observed dates come from actually sighting the crescent moon each month, so they vary by country and can only be known shortly in advance. This converter uses the tabular calendar, which may differ from your local observed date by a day.

Set the Direction to Hijri to Gregorian, then enter the Hijri day, month and year. The converter shows the matching Gregorian (Miladi) date and the weekday. Local sighting-based calendars can differ by one day.

Miladi is the Arabic name for the Gregorian calendar, the solar calendar used for most civil dates. Converting Hijri to Miladi means the same as converting an Islamic date to a Gregorian date.

1448 AH begins around 16 June 2026 and ends in early June 2027. A quick rule: multiply the Hijri year by 32, divide by 33 and add 622 to get the approximate Gregorian year.

Sources and further reading

  1. HM Nautical Almanac Office — Islamic calendar and crescent visibility — the tabular calendar and why observed dates vary
  2. Islamic calendar — Encyclopaedia Britannica — structure, months and the Hijra epoch
  3. US Naval Observatory — Julian date converter — the Julian Day Number system used as the conversion bridge