Skip to content
ToolShelf

Hijri date converter

Convert a date between the Gregorian and Islamic calendars in either direction, with the weekday, the month length and what the other tabular variant gives.

Which way

Direction

Defaults to today

Calendar reckoning

Tabular variant
Shift the result, in days

If the calendar where you are reads a day ahead of what this gives, set +1. The shift applies to every date the tool produces.

These dates are calculated, not announced

Islamic months begin on the sighting of the new crescent, announced locally. A converted date comes from a fixed arithmetic calendar instead, so it can differ from the observed one by a day in either direction, and countries differ from each other.

Saudi Arabia’s official Umm al-Qura calendar is a third scheme again. It is published as a table rather than derived from a formula, so it is not computed here.

Converted date

Pick a Gregorian date and its Hijri equivalent appears here.

What this converter is doing

It counts days. Both calendars are turned into a single running day number, the conversion happens there, and the result is turned back into a date. That is why the weekday is always right even when the Hijri date is arguable, the day of the week belongs to the Gregorian date you entered, and only the Islamic date depends on which calendar you are reckoning by.

The part that is genuinely uncertain

The Islamic calendar in daily use begins each month when the new crescent is sighted. That is an observation, announced locally, and it cannot be known in advance. What a converter does instead is apply a fixed arithmetic scheme: twelve months alternating between 30 and 29 days, with eleven leap years in every thirty-year cycle.

The two drift against each other. A calculated date is usually within a day of the announced one, sometimes two, and can fall on either side. Two countries can be a day apart from each other on the same date. None of that is a fault in the arithmetic; it is what happens when a fixed scheme approximates an observation.

Three calendars, three answers

There is no single calculated Islamic calendar. The civil tabular variant and the astronomical tabular variant differ only in where they place the epoch, which puts them exactly one day apart forever. Saudi Arabia’s Umm al-Qura calendar is a third scheme, published as a table rather than computed from a formula, and it agrees with neither reliably. This tool shows you both tabular answers at once so the disagreement is a number rather than a footnote.

Making it match the calendar you actually use

If your mosque or country is a day ahead of what this gives, the shift control moves every date the tool produces. It is the honest way to use a converter: take the announced date as correct and adjust the arithmetic to agree with it, rather than the other way round.

When a converted date is good enough

For working out roughly when something falls, for filling in a form, for planning several months out, or for converting a date of birth recorded in one calendar into the other, a tabular conversion is fine and is what most official systems use. For deciding when to start fasting or when Eid is, it is not, those come from an announcement, and no calculator can stand in for one.

Questions

Why does this date differ from my local calendar by a day?
Because this is arithmetic and your calendar is an observation. Islamic months begin when the new crescent is sighted, which is announced locally and cannot be computed in advance. A fixed calculated calendar drifts against that by a day in either direction, and different countries announce different days for the same month. If you know what your local calendar reads, use the shift control to line the tool up with it.
What is the difference between the civil and astronomical variants?
Only the starting point. The civil variant puts the first day of the Islamic calendar on Friday 16 July 622 CE; the astronomical variant puts it on the Thursday before. The leap years and month lengths are identical, so every astronomical date is exactly one day later than the civil one. Both are in published use, which is why the tool shows you the other one alongside the answer rather than picking for you.
Does this use the Umm al-Qura calendar?
No. Umm al-Qura is the official calendar of Saudi Arabia and is published as a table computed from astronomical criteria, not derived from a formula, so it cannot be reproduced by arithmetic. It can differ from both tabular variants. If you need an Umm al-Qura date, check a published Umm al-Qura calendar rather than converting one here.
How far back and forward does this work?
The arithmetic runs from year 1 AH onwards and the tool accepts up to 2000 AH. Accuracy against real observed dates is a different question: the further from the present you go, the less a fixed scheme has to do with what was actually sighted or announced. For historical research, treat a converted date as an approximate position in the year rather than a verified day.
Why are some Hijri months 29 days and others 30?
A lunar month is roughly 29 and a half days, so a calendar has to alternate to stay in step. Under the tabular scheme the odd-numbered months get 30 days and the even-numbered ones get 29, and the twelfth month gains a day in the eleven leap years of every thirty-year cycle. In the observed calendar the length is not settled until the crescent is looked for on the evening of the 29th.
Why is the weekday reliable when the date is not?
The weekday is read off the Gregorian date, which is not in dispute. It is the mapping between the two calendars that carries the uncertainty, so if you shift the Hijri date the weekday shown follows the Gregorian day you entered.

More tools