Skip to content
100% local

Hijri and Gregorian date converter

Convert dates between the Islamic Hijri calendar and the Gregorian calendar, one per line.

Input
Output

Hijri and Gregorian date converter

Paste a list of dates, one per line, and this tool converts every line between the Gregorian calendar and the Islamic Hijri calendar. Each result shows the converted date, the day of the week and the Julian day number, so you can cross-check a date, plan around religious observances, or reconcile records that mix both calendars.

Direction picks which way the conversion runs. Calendar variant chooses between the tabular civil epoch and the arithmetic astronomical epoch, two closed-form ways of laying out the Hijri calendar that are exactly one day apart for any given date — useful when comparing against a source that used the other convention. Hijri month names can be shown as an Arabic transliteration (Muharram, Ramaḍān) or in a plainer, accent-free spelling. Date format switches between a long form, ISO (YYYY-MM-DD) and a numeric DD/MM/YYYY layout, and turning on the difference option adds how many days each result falls from today.

Lines that aren't a valid date for the chosen direction and format are listed above the results rather than silently dropped, so a typo in a long list is easy to spot; the tally reports how many lines converted and how many were skipped. Switch on table output to line the results up in columns instead of one converted date per line, and the tool handles both Windows (CRLF) and Unix (LF) line endings the same way.

Everything runs locally in your browser using closed-form calendar arithmetic — no lookup tables and no network request, so it works offline and never sees your dates. Copy the result, download it as a .txt file, or send it straight into another tool like the date difference calculator to keep working with it.

FAQ

What is the difference between the tabular and arithmetic variants?
Both are arithmetic (rule-based) Hijri calendars, not the sighting-based calendar used for religious observance. They share the same leap-year pattern but start their epoch one day apart, so a date converted with one variant can land a day earlier or later than with the other — pick whichever matches the source you're comparing against.
Does this match the officially announced start of a Hijri month?
Not necessarily. Real-world Hijri months often start based on moon sighting or an official civil calendar (such as Umm al-Qura), which can differ by a day from either arithmetic variant here. Treat the result as a close, rule-based estimate rather than a religious authority.
What date formats can I type in the input?
YYYY-MM-DD is accepted for both calendars. For Gregorian dates you can also use DD.MM.YYYY or DD/MM/YYYY.
Why do I see a Julian day number in the results?
It's the continuous day count astronomers and calendar systems use as a common reference point, useful for checking that two differently formatted dates really are the same day.
Is my list of dates uploaded anywhere?
No. The conversion runs entirely in your browser using local calendar arithmetic — your dates never leave your device.