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.
Gregorian ↔ Hijri
Convert between Gregorian and Hijri calendars with multiple methods.
Interactive calculator loads when JavaScript is enabled. All calculations stay on your device.
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.
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.
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.
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.
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.
No. All astronomy and calendar math runs locally in your browser. Nothing is uploaded or saved on a server.