Tools · Calendar
Hijri–Gregorian Date Converter — both directions, with the arithmetic shown
Two calendars, one running count of days: convert any date from Gregorian to Hijri or back by the tabular count, with the method printed beside the form and the key dates of 1448 AH worked out underneath. Nothing you type here is stored or sent anywhere.
The short answer
A Hijri date and a Gregorian date are two names for the same day, and this converter swaps between them by pure arithmetic: the tabular count of lunar months from the Hijra epoch. Its answers are calculated dates — announced dates follow the moon sighting and can sit a day either side.
One day, two names. A date written in a family record as 19 Jumada al-Akhirah and the same morning written in a passport as 30 November are not two days but one, counted from two different starting points. This converter moves between the two counts in both directions, and unlike most converters it shows its working: the count it uses is printed in full further down, with the verse the calendar rests on and the places where other counts part from it.
The converter — both directions, one count
The form takes a date in either calendar and returns the same day in the other, with its weekday and its place inside its year. Underneath every answer sits the day count the conversion ran on, so any result can be checked by hand against the arithmetic section. The starting date in the form is 30 November 2026, and its Hijri twin is already worked out in the answer box.
Hijri–Gregorian converter
19 Jumada al-Akhirah 1448 AH
Monday
Day 167 of 1448 AH, a common year of 354 days. Julian day number 24,61,375.
This converter gives calculated dates, by the tabular count set out on this page. Announced dates follow the sighting of the moon and can differ by a day — for Ramadan and the Eids, follow your local announcement.
(function(){ var EPOCH = 1948440; var HMON = ["Muharram","Safar","Rabi al-Awwal","Rabi al-Thani","Jumada al-Ula","Jumada al-Akhirah","Rajab","Sha'ban","Ramadan","Shawwal","Dhul-Qa'dah","Dhul-Hijjah"]; var GMON = ["January","February","March","April","May","June","July","August","September","October","November","December"]; var WDAYS = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]; var dir = "g2h"; function el(id){ return document.getElementById(id); } function num(id){ return parseInt(el(id).value, 10); } function fmtNum(n){ return n.toLocaleString("en-IN"); } function isLeap(y){ return ((11 * y + 14) % 30) < 11; } function hLen(y, m){ if (m === 12){ return isLeap(y) ? 30 : 29; } return (m % 2 === 1) ? 30 : 29; } function gLen(y, m){ var lens = [31,28,31,30,31,30,31,31,30,31,30,31]; if (m === 2){ var leap = false; if (y % 4 === 0){ leap = true; if (y % 100 === 0){ leap = false; if (y % 400 === 0){ leap = true; } } } return leap ? 29 : 28; } return lens[m - 1]; } function hijriToJdn(y, m, d){ return d + Math.ceil(29.5 * (m - 1)) + (y - 1) * 354 + Math.floor((3 + 11 * y) / 30) + EPOCH - 1; } function jdnToHijri(j){ var y = Math.floor((30 * (j - EPOCH)) / 10631) + 1; while (hijriToJdn(y + 1, 1, 1) <= j){ y = y + 1; } while (hijriToJdn(y, 1, 1) > j){ y = y - 1; } var m = 1; while (m < 12){ if (hijriToJdn(y, m + 1, 1) <= j){ m = m + 1; } else { break; } } return { y: y, m: m, d: j - hijriToJdn(y, m, 1) + 1 }; } function gregToJdn(y, m, d){ var a = Math.floor((14 - m) / 12); var y2 = y + 4800 - a; var m2 = m + 12 * a - 3; return d + Math.floor((153 * m2 + 2) / 5) + 365 * y2 + Math.floor(y2 / 4) - Math.floor(y2 / 100) + Math.floor(y2 / 400) - 32045; } function jdnToGreg(j){ var a = j + 32044; var b = Math.floor((4 * a + 3) / 146097); var c = a - Math.floor(146097 * b / 4); var d2 = Math.floor((4 * c + 3) / 1461); var e = c - Math.floor(1461 * d2 / 4); var m2 = Math.floor((5 * e + 2) / 153); return { y: 100 * b + d2 - 4800 + Math.floor(m2 / 10), m: m2 + 3 - 12 * Math.floor(m2 / 10), d: e - Math.floor((153 * m2 + 2) / 5) + 1 }; } function note(t){ el("hc2note").textContent = t; } function paint(big, j, ctx){ el("hc2big").textContent = big; el("hc2week").textContent = WDAYS[j % 7]; el("hc2ctx").textContent = ctx; } function convertG2H(){ var d = num("hc2gd"), m = num("hc2gm"), y = num("hc2gy"); if (isNaN(d) || isNaN(m) || isNaN(y)){ note("Fill in the day, the month and the year first."); return; } if (y < 1){ note("Enter a Gregorian year of 1 or later."); return; } if (m < 1 || m > 12){ note("Pick a month from the list."); return; } if (d < 1 || d > gLen(y, m)){ note(GMON[m - 1] + " has " + gLen(y, m) + " days in " + y + " \u2014 day " + d + " does not exist in it."); return; } var j = gregToJdn(y, m, d); if (j < EPOCH){ note("That day falls before the count begins. The first day of the Hijri count is 1 Muharram 1 AH \u2014 Friday, 16 July 622 in the Julian calendar (19 July 622 in the proleptic Gregorian count this converter uses) \u2014 and no Hijri date exists for a day before it."); return; } var h = jdnToHijri(j); var doy = j - hijriToJdn(h.y, 1, 1) + 1; var shape = isLeap(h.y) ? "a leap year of 355 days" : "a common year of 354 days"; note(""); paint(h.d + " " + HMON[h.m - 1] + " " + h.y + " AH", j, "Day " + doy + " of " + h.y + " AH, " + shape + ". Julian day number " + fmtNum(j) + "."); } function convertH2G(){ var d = num("hc2hd"), m = num("hc2hm"), y = num("hc2hy"); if (isNaN(d) || isNaN(m) || isNaN(y)){ note("Fill in the day, the month and the year first."); return; } if (y < 1){ note("Enter a Hijri year of 1 or later \u2014 the count starts at 1 AH."); return; } if (m < 1 || m > 12){ note("Pick a month from the list."); return; } if (d < 1 || d > hLen(y, m)){ note(HMON[m - 1] + " has " + hLen(y, m) + " days in the tabular count of " + y + " AH \u2014 day " + d + " does not exist in it."); return; } var j = hijriToJdn(y, m, d); var g = jdnToGreg(j); var gdoy = j - gregToJdn(g.y, 1, 1) + 1; note(""); paint(g.d + " " + GMON[g.m - 1] + " " + g.y, j, "Day " + gdoy + " of the Gregorian year " + g.y + ". Julian day number " + fmtNum(j) + "."); } function convert(){ if (dir === "g2h"){ convertG2H(); } else { convertH2G(); } } function setDir(d2){ dir = d2; el("hc2rowG").style.display = (d2 === "g2h") ? "" : "none"; el("hc2rowH").style.display = (d2 === "h2g") ? "" : "none"; if (d2 === "g2h"){ el("hc2togG").classList.add("hc2on"); el("hc2togH").classList.remove("hc2on"); } else { el("hc2togH").classList.add("hc2on"); el("hc2togG").classList.remove("hc2on"); } convert(); } el("hc2togG").addEventListener("click", function(){ setDir("g2h"); }); el("hc2togH").addEventListener("click", function(){ setDir("h2g"); }); el("hc2go").addEventListener("click", convert); var fields = ["hc2gd","hc2gm","hc2gy","hc2hd","hc2hm","hc2hy"]; var i; for (i = 0; i < fields.length; i++){ el(fields[i]).addEventListener("change", convert); el(fields[i]).addEventListener("input", convert); } setDir("g2h"); })();
The count used here is the tabular one, the rule-based count set out in the sections below. It is nobody's announced calendar; it is the shared ruler the other counts are measured against.
The key dates of 1448 AH, worked out
These are the fixed points of the current Hijri year, worked out by the converter's own arithmetic. Every one of them is a calculated date, and the note under the table says where the announced dates move away from them.
| Hijri date | Gregorian date (calculated, tabular) | What it is |
|---|---|---|
| 1 Muharram 1448 | Wednesday 17 June 2026 | The new year |
| 10 Muharram 1448 | Friday 26 June 2026 | Ashura |
| 1 Ramadan 1448 | Monday 8 February 2027 | The first day of the fast |
| 1 Shawwal 1448 | Wednesday 10 March 2027 | Eid al-Fitr |
Umm al-Qura began 1448 a day earlier than the tabular count, on Tuesday 16 June 2026, and it prints Eid al-Fitr a day earlier too, on Tuesday 9 March 2027, because its Ramadan runs 29 days where the tabular Ramadan always runs 30. Where a month is announced on a sighting, as it is across South Asia, the observed date commonly falls a day later than the calculated one: this site's Ramadan pages plan India from Tuesday 9 February 2027. Ramadan itself is the rare fixed point where the tabular count and Umm al-Qura agree to the day.
The twelve months in the Qur’an
The number of the months is not a human arrangement that grew up around the calendar. It is stated in the Qur'an, in Surah At-Tawbah, in the passage that closed the old practice of shifting the sacred months around:
إِنَّ عِدَّةَ ٱلشُّهُورِ عِندَ ٱللَّهِ ٱثْنَا عَشَرَ شَهْرًا فِى كِتَـٰبِ ٱللَّهِ يَوْمَ خَلَقَ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضَ مِنْهَآ أَرْبَعَةٌ حُرُمٌ ۚ ذَٰلِكَ ٱلدِّينُ ٱلْقَيِّمُ ۚ فَلَا تَظْلِمُوا۟ فِيهِنَّ أَنفُسَكُمْ ۚ وَقَـٰتِلُوا۟ ٱلْمُشْرِكِينَ كَآفَّةً كَمَا يُقَـٰتِلُونَكُمْ كَآفَّةً ۚ وَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ مَعَ ٱلْمُتَّقِينَ
“Indeed, the number of months ordained by Allah is twelve—in Allah’s Record since the day He created the heavens and the earth—of which four are sacred. That is the Right Way. So do not wrong one another during these months. And fight the polytheists together as they fight together against you. And know that Allah is with those mindful ˹of Him˺.”
Qur’an 9:36 · Surah At-Tawbah — read it on quran.com (translation: Dr. Mustafa Khattab)
Twelve months, four of them sacred: Muharram, Rajab, Dhu al-Qa'dah and Dhu al-Hijjah. The verse fixes the frame. Everything after it, the lengths of the months, the leap days, the rival methods of starting each month, is the work of the centuries that had to live inside that frame.
How the lunar year is built
A Hijri year follows the moon and nothing else. Wikipedia's summary is the plain one: the calendar is “a lunar calendar consisting of 12 lunar months in a year of 354 or 355 days.” No month is tied to a season, and no thirteenth month is ever added to pull the year back towards the sun, which is why Ramadan walks backwards through the seasons by about eleven days a year.
Inside the tabular count the months run in a fixed pattern. “The odd numbered months have 30 days and the even numbered months have 29 days, except in a leap year when the 12th and final month Dhu al-Hijjah has 30 days.” Muharram opens with 30, Safar follows with 29, and so on down the year. “By convention, months of 30 days and 29 days succeed each other, adding up over two successive months to 59 full days.” A real lunation lasts about 29.53 days, so the fixed pattern runs a small error against the moon, and the leap day exists to settle it.
The thirty-year cycle
The settlement runs on a thirty-year cycle. Twelve lunar months come to about 354.37 days, so a plain run of 354-day years falls behind the moon by roughly eleven days in thirty years. The tabular count pays those days back one at a time: “Using this rule the leap years are year number 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29 of the 30-year cycle.” In each of those years Dhu al-Hijjah takes a 30th day, the year runs to 355 days, and across the whole cycle the count holds 10,631 days, within a day of the moon for centuries at a time. “In the long term, it is accurate to one day in about 2,500 solar years or 2,570 lunar years.”
The cycle has a known variant, and a careful page should name it: in one historical scheme the sixth leap year falls at position 15 instead of 16. The difference touches one year in thirty and moves a handful of dates by a day. The count printed here uses the common scheme, the one in the list quoted above, and it is the scheme behind the “Kuwaiti algorithm” that Windows uses for its Hijri conversions.
The current year sits at position 8 of its cycle, which is not a leap position, so 1448 AH is a common year of 354 days. The year before it, 1447, sat at position 7 and was a leap year: its Dhu al-Hijjah ran to a 30th day, a date that exists in that year and in no common year.
The arithmetic, step by step
Every conversion on this page runs through a single number: the Julian day number, a running count of days used by astronomers, in which each calendar date, in any calendar, owns exactly one integer. The count is anchored at the epoch of the Hijri era. “1 Muharram of the new fixed calendar corresponded to Friday, 16 July 622 CE, the equivalent civil tabular date (same daylight period) in the Julian calendar.” That Friday carries the day number 1,948,440, and every Hijri date since is that number plus the days that have run.
A worked example, the one the section above the converter does not use. Take 12 November 2026. Its Julian day number is 2,461,357. Set the epoch count against it and 512,917 days of the Hijri era have run. Whole years first: 1,447 completed years account for 512,769 of those days, being 354 each plus 531 leap days placed along the way, so the day falls inside year 1448, on its 149th day. Whole months next: Muharram 30, Safar 29, Rabi al-Awwal 30, Rabi al-Thani 29 and Jumada al-Ula 30 fill 148 days between them, so the 149th day opens the month that follows. The date is 1 Jumada al-Akhirah 1448, and the same count, taken seven at a time, leaves the weekday: Thursday.
Converting back runs the same road in reverse, which is why the two directions can never disagree with each other. One limit belongs here. For dates before October 1582 the Gregorian side of the converter is the proleptic count, the modern calendar's rules extended backwards past the calendar's own adoption. Historians work the same way, but a date in 622 read off this converter is a modern count of that day, not a date anyone wrote down at the time.
Three calendars, one moon
Three systems share the moon, and they answer a day apart often enough that the difference is worth printing plainly. The tabular count, the one used here, is “a rule-based variation of the Islamic calendar, in which months are determined by arithmetic rather than by observation or astronomical calculation.” It needs no sky at all, which is its strength for conversion and its limit for observance: as Wikipedia notes, “the arithmetically derived Tabular Islamic calendar can be adrift by one or two days” from the calendar of actual sightings.
Saudi Arabia's official Umm al-Qura calendar is calculated too, but from the sky over Makkah rather than from a fixed pattern. Since AH 1423 its rule has required “the geocentric conjunction of the sun and moon to occur before sunset, in addition to requiring moonset to occur after sunset at Mecca.” A month there lasts as long as the astronomy makes it, 29 or 30 days without a fixed order. In 1448 the two calculated counts cross in a way that shows the gap cleanly: the Gregorian day of Tuesday 16 June 2026 is 30 Dhu al-Hijjah 1447, the leap day closing the old year, in the tabular count, and 1 Muharram 1448, the first day of the new year, in the Umm al-Qura count.
The third system is the oldest: the month begins when the crescent is seen. Because the moon sets later the further west a place lies, “the beginning of each month differs from one Muslim country to another, during the 48-hour period following the conjunction,” and eastern countries, India among them, commonly begin a day after western ones. That is the whole explanation of the familiar pattern in which Saudi Arabia fasts and feasts a day before South Asia. No count is being careless; the moon is simply seen from different ground.
So the converter's answer is a calculated date, offered as one. For planning, for documents, for birthdays recorded in one calendar and celebrated in the other, the calculation is the tool. For the start of a fast or a festival, the announcement of the reader's own community carries the day, and the sections of this site that deal with Ramadan say so in the same words.
Frequently asked questions
Why is this converter's answer a day away from another website's?
Because the counts differ, and each site has picked one. The count here is the tabular one: months laid out by arithmetic. Many large sites print the Umm al-Qura count instead, which is worked out astronomically for Makkah, and observed calendars wait for the crescent to be seen. On 30 November 2026, for example, this count reads 19 Jumada al-Akhirah 1448 while IslamicFinder's Umm al-Qura count reads 20. Neither print is a misprint; they are two calendars answering at once.
When does Ramadan 1448 begin?
The calculated date is Monday, 8 February 2027, and the Umm al-Qura calendar prints the same day. In India, Pakistan and Bangladesh the fast commonly begins a day later, on the local sighting, and this site's Ramadan pages work from Tuesday, 9 February 2027 for India. The announcement made at the end of Sha'ban is the one that settles the morning.
What is the tabular calendar?
A rule-based form of the Hijri calendar. Its months are set by arithmetic — 30 and 29 days in turn, with a leap day added in eleven years out of thirty — rather than by watching the sky, so any date in it can be worked out exactly, in either direction, for any year. Historians use it to convert dates in old records, and it is built into a great deal of software: the “Kuwaiti algorithm” in Windows is this same scheme. Its dates can sit a day or two away from an observed date.
Why do Hijri years have 354 days in one year and 355 in another?
Twelve turns of the moon take about 354.37 days, and a calendar can only hold whole days. Most years therefore hold 354, and the fraction that has been gathering is paid back, in eleven years out of every thirty, as one extra day at the end of Dhu al-Hijjah, making 355. The year 1447 AH was one of those years; 1448 is a common year of 354.
Is the converted date the one I should observe?
The converter prints the calculated date, which is the right date for planning, for documents and for working out anniversaries. Observance is a different matter: it follows the announcement of your own community — a sighting report, or the calculated calendar its scholars have adopted — above all for the start of Ramadan and the two Eids. Where the announcement and the calculation differ by a day, the announcement is the one to act on.
How far back can I convert a date?
The arithmetic runs from the first day of the count, 1 Muharram 1 AH, and it runs forward without limit. Two cautions grow with distance. Before October 1582 the Gregorian side is the proleptic count, the modern calendar extended backwards past its own beginning. And the further a date sits from our own time, the more the fixed count can have drifted from the months people actually observed then — a day or two either way.
ImanAtlas converts by the tabular count printed on this page, and gives no rulings. For a question about your own situation, ask a qualified scholar you trust.
Sources
- The Qur’an, Surah At-Tawbah (9), verse 36 — quran.com/9/36 (translation: Dr. Mustafa Khattab)
- Wikipedia, “Islamic calendar” — the epoch of 16 July 622, the tabular scheme, the Umm al-Qura rule since AH 1423, the drift of the tabular count, and the tabular dates printed in its own headers (12 November 2026 = 1 Jumada al-Akhirah 1448; 24 November 2026 = 13 Jumada al-Akhirah; 20 July 2026 = 4 Safar) — en.wikipedia.org/wiki/Islamic_calendar
- Wikipedia, “Tabular Islamic calendar” — the month lengths, the leap years of the 30-year cycle and their variant, and the 10,631-day cycle — en.wikipedia.org/wiki/Tabular_Islamic_calendar
- IslamicFinder, Islamic Calendar 1448 — the published Umm al-Qura dates quoted on this page: 1 Ramadan 1448 on Monday 8 February 2027, Eid al-Fitr on Tuesday 9 March 2027, 1 Muharram 1449 on Sunday 6 June 2027 — islamicfinder.org/islamic-calendar/1448
- Umm al-Qura calendar prints — 1448 AH running from Tuesday 16 June 2026 to Saturday 5 June 2027 (355 days) in the Saudi civil count — ummalquracalendar.org
- On this site: Qibla Direction Finder · Zakat Calculator · Fitrana Calculator · Fidya & Kaffara Calculator · Ramadan · Islamic Tools · Sources & Method · Accuracy & Correction Policy · No-Fatwa Disclaimer
