Hijri Date Converter

Gregorian ↔ Hijri

Convert between Gregorian and Hijri calendars with multiple methods.

Interactive calculator loads when JavaScript is enabled. All calculations stay on your device.

FAQs

How does this calculator work?

It uses the astronomy-engine library in your browser to compute Sun and Moon positions for your latitude, longitude, and elevation. Hijri month starts follow crescent visibility rules — no data is sent to a server.

What is the Yallop criterion?

The Yallop (1997) method estimates whether the new crescent was visible at the best viewing time after sunset. Zones A–D count as visible; zones E and F are treated as invisible and defer the month start by one day.

What does the Automatic era rule do?

Before 1900 it applies Yallop sighting at your coordinates. From 1900 onward it uses the Umm al-Qura rule at Mecca (the Moon must set after the Sun). You can override this with the era dropdown.

Why can Hijri dates differ by one day?

Hijri dates depend on sighting location, the era rule, and whether a community uses local moon sighting or a fixed calendar. Pick the rule and coordinates that match your use case.

Which direction should I convert?

Use Gregorian → Hijri to find the Islamic date for a civil birthday or event. Use Hijri → Gregorian to plan a Gregorian deadline from a Hijri date.

Is my data stored or sent to a server?

No. All astronomy and calendar math runs locally in your browser. Nothing is uploaded or saved on a server.