Date Converter Free: Hijri ↔ Gregorian

If you have ever tried to figure out the Hijri equivalent of a Gregorian date—or the other way around—you know the frustration. Maybe you needed the exact Islamic date for Ramadan planning, or you were filling out a government form that required both calendars side by side. Whatever brought you here, this page gives you a free, instant, and surprisingly accurate Hijri–Gregorian date converter that works right in your browser, no downloads, no sign-ups, and no ads getting in the way.

Below the tool itself you will find a thorough guide covering how the converter works under the hood, why Hijri–Gregorian conversion is trickier than most people think, practical tips for using converted dates in real life, and honest answers to the questions people actually ask. Grab a coffee, bookmark this page, and let us get started.

date-converter

Hijri–Gregorian Date Converter: Embed It Free on Your Website

Need to switch a date between the Islamic (Hijri) and Gregorian calendars? The free Tooliqo Date Converter does it both ways in an instant: visitors enter a Hijri date to get the Gregorian equivalent, or a Gregorian date to get the Hijri one. It's ideal for Islamic blogs, event and holiday pages, genealogy and history sites, and any audience that works across both calendars. You can add it to any website in under a minute — just copy one of the codes below and paste it into a post, page, or sidebar. Both methods work on Blogger, WordPress, and any platform that accepts HTML.

Method 1: Responsive iframe Embed (for posts and pages)

This method loads the date converter inside a responsive frame that adjusts its height on its own, so the widget always fits its content — with no empty gap and no inner scrollbar — on phones, tablets, and desktops alike.

<iframe id="tq_date_converter" src="https://tools.tooliqo.co/date-converter/?lang=en" title="Tooliqo Date Converter" loading="lazy" scrolling="no" style="width:100%;max-width:100%;height:1100px;border:0;overflow:hidden;display:block;margin:0 auto;"></iframe>
<script>(function(){var i="tq_date_converter";function R(){var f=document.getElementById(i);if(!f)return;window.addEventListener("message",function(e){var d=e.data;if(!d||typeof d.tqHeight!=="number"||d.tqHeight<50)return;try{if(f.contentWindow&&e.source&&e.source!==f.contentWindow)return;}catch(x){}f.style.height=(d.tqHeight+20)+"px";},false);}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",R);}else{R();}})();</script>

Method 2: Auto-Embed Script (for sidebar, posts, and pages)

Want the lightest possible setup? Drop in a single container and one script line, and the converter builds itself responsively — ideal for widget areas and sidebars.

<div class="tooliqo-tool" data-tool="date-converter" data-lang="en"></div>
<script src="https://tools.tooliqo.co/embed.js" async></script>

How to Change the Converter Language (6 Languages)

The Date Converter speaks six languages: English (en), French (fr), Spanish (es), Arabic (ar), Chinese (zh), and Hindi (hi) — with automatic right-to-left (RTL) layout for Arabic. There is no separate code per language; you only swap one value:

  • Method 1: change ?lang=en in the URL (for example, ?lang=fr).
  • Method 2: change data-lang="en" (for example, data-lang="fr").

That single value switches the entire interface.

Why Add the Tooliqo Date Converter to Your Site?

  • Two-way conversion — Hijri to Gregorian and Gregorian to Hijri, all in one tool.
  • Free and unlimited — no sign-up, no watermark, no usage limit.
  • Fully responsive — looks sharp on mobile, tablet, and desktop.
  • Lightweight and fast — lazy-loaded, so it never slows your page down.
  • Perfect for Islamic content — holidays, historical events, birthdays, and record-keeping across both calendars.

Frequently Asked Questions

How do I convert a Hijri date to Gregorian?

Enter the Hijri date in the Tooliqo Date Converter and it instantly displays the matching Gregorian date — and it works the other way around too.

Does it convert both ways?

Yes. The same tool converts Hijri to Gregorian and Gregorian to Hijri, so you never need a second widget.

Is the date converter free to embed?

Yes. You can add it to any website free of charge, with no account and no watermark.

Will it work on Blogger and WordPress?

Yes. Both the iframe and the auto-embed script work on Blogger, WordPress, and any site that allows custom HTML.

Does the embedded converter resize automatically?

Yes. It adjusts its height to match its content, so there is never empty space or an inner scrollbar.

What Exactly Is a Hijri–Gregorian Date Converter?

At its simplest, a date converter is a small calculator that takes a date written in one calendar system and translates it into the equivalent date in another. Our tool handles the two calendars that matter most for roughly two billion people worldwide:

The Gregorian calendar—the one used by most of the world for business, travel, and everyday scheduling—follows a solar cycle of 365 (or 366) days. The Hijri calendar, also called the Islamic or lunar calendar, tracks the moon instead of the sun. Each Hijri month starts when the thin crescent of a new moon is first sighted (or, in many modern implementations, when an astronomical model predicts that sighting). Because twelve lunar months add up to about 354 days, the Hijri year is roughly 11 days shorter than a Gregorian year. That gap means Islamic dates “drift” through the Gregorian calendar over a cycle of about 33 years.

The practical consequence is that you cannot simply subtract a fixed number to jump from one calendar to the other. You need an algorithm—and that is exactly what this converter provides.

Who Actually Needs This Tool?

You might be surprised by how many everyday situations call for a quick Hijri–Gregorian lookup:

Families planning religious occasions. Ramadan, Eid al-Fitr, Eid al-Adha, and the Day of Arafah all follow the Hijri calendar. If your workplace or school runs on Gregorian dates, you need both calendars open at the same time to request the right days off, book flights, or send invitations.

Government and legal professionals. Several countries—Saudi Arabia, Iran, Afghanistan, and others—use the Hijri calendar for official documents. If you are filing paperwork, verifying a birth date on a passport, or cross-referencing court records, accurate conversion is not optional; it is a legal necessity.

Historians and researchers. Classical Arabic manuscripts, Ottoman archives, and Mughal-era documents all use Hijri dates. Scholars routinely convert these to Gregorian equivalents (and vice versa) to place events on a shared timeline.

Software developers. If your app serves users in the Middle East, North Africa, or South and Southeast Asia, offering dual-calendar support is a major usability win. This converter’s underlying algorithm can serve as a reference implementation.

Curious minds. Maybe you just want to know your birthday in the Hijri calendar, or you are planning a trip to Mecca and want to see exactly where Dhul Hijjah falls this year. No judgment—curiosity is a perfectly good reason.

How to Use the Converter (Step by Step)

The tool on this page is split into two panels, each handling one direction of conversion:

Gregorian to Hijri. Pick the Gregorian day and month from the dropdown menus, type in the four-digit year, and hit the green “Convert to Hijri” button. The result appears instantly, showing the Hijri date and the day of the week. You can copy the result to your clipboard with one click.

Hijri to Gregorian. Same idea, opposite direction. Select the Hijri day, choose the Hijri month by name (Muharram through Dhul Hijjah), enter the Hijri year, and press the gold “Convert to Gregorian” button. Again, you get the Gregorian date plus the weekday, ready to copy.

There is also a handy “Today” shortcut button on each panel. Tap it, and the converter fills in today’s date for you automatically—useful when you just want a quick answer to “What is today’s Hijri date?”

Features That Make This Converter Stand Out

Multilingual by default. The tool automatically detects the language of the page it is embedded in. It currently supports six languages: Arabic, English, French, Spanish, Simplified Chinese, and Hindi. Every label, button, month name, weekday name, and error message is fully translated—no half-baked Google Translate patches.

Accurate arithmetic algorithm. The converter uses the well-known Kuwaiti algorithm (also called the Tabular Islamic Calendar method) for its calculations. This algorithm has been validated against known reference dates such as 1 Muharram 1447 AH corresponding to 27 June 2025, and it passes round-trip tests (Gregorian to Hijri and back) without losing a single day. A note beneath each result honestly tells you that computed dates may differ by a day or two from calendars based on actual moon sighting, such as the Saudi Umm al-Qura calendar. Transparency matters more than false confidence.

Works on every device. The layout is fully responsive. On a wide desktop screen, the day, month, and year fields sit side by side. On a phone, they stack neatly so you never have to pinch-zoom or scroll sideways. The buttons are large enough to tap without frustration, and the results are displayed in a clear, high-contrast style.

No external dependencies. The entire converter is self-contained in a single block of HTML, CSS, and JavaScript. It does not load any third-party libraries, does not phone home to any server, and does not set any cookies. Your data stays in your browser, period.

One-click copy. After converting, you can tap the “Copy result” button to place both the date and the weekday on your clipboard. Paste it into a message, a document, a spreadsheet—wherever you need it.

Instant input validation. Type “30” for February and the converter will politely tell you the date is invalid instead of producing a wrong answer. The same goes for impossible Hijri dates like the 31st of any month (Hijri months have at most 30 days).

RTL-aware design. When the page language is Arabic (or another right-to-left language), the converter flips its entire layout—including the dropdown arrows, text alignment, and panel order—so it feels native to RTL readers.

How the Algorithm Works (In Plain English)

If you are curious about the math behind the curtain, here is a simplified walkthrough. Feel free to skip this section if you just want to use the tool.

Both conversions pass through an intermediate value called the Julian Day Number (JDN). Think of the JDN as a universal “day counter” that has been ticking since a fixed starting point in the distant past (specifically, 1 January 4713 BCE in the Julian proleptic calendar). Every calendar date—Gregorian, Hijri, Julian, Persian, Hebrew—maps to exactly one JDN, and every JDN maps back to exactly one date in each calendar. By converting Gregorian → JDN → Hijri (or the reverse), the algorithm avoids the nightmare of trying to map two very different calendar systems directly onto each other.

The Gregorian-to-JDN formula accounts for the familiar leap-year rules (divisible by 4, except centuries, except centuries divisible by 400). The JDN-to-Hijri formula accounts for the 30-year Hijri cycle in which 11 of the 30 years are leap years with 355 days. The specific pattern of leap years within the cycle determines whether a given Hijri year has 354 or 355 days, and the alternating month lengths (30 and 29 days) fill in the rest.

The result is an arithmetic approximation. Real-world Hijri calendars can differ by a day because the start of each month traditionally depends on a human observer actually seeing the new crescent moon. Different countries and religious authorities may declare the start of a month on different days. No purely mathematical formula can predict the weather, the observer’s location, or the religious authority’s decision, which is why the converter includes an honest disclaimer.

Umm al-Qura vs. Tabular: What Is the Difference?

You will sometimes hear people debate whether a converter uses the “Umm al-Qura” calendar or a “tabular” (arithmetic) method. Here is the short version:

The Umm al-Qura calendar is maintained by the Institute of Astronomical Research in Saudi Arabia. It uses detailed astronomical calculations specific to the coordinates of Mecca to predict when the crescent will be visible. The Saudi government uses it for civil purposes (payroll, school terms, public holidays). Because it is observation-based (via computation), it is the closest thing to an “official” Hijri calendar for many Sunni-majority countries.

The tabular method (used by this converter) applies a fixed 30-year leap-year cycle. It is simpler, faster, and works for any date range—past or future—without needing a lookup table that only covers a limited span. The trade-off is that it may be off by a day compared to Umm al-Qura on any given date.

For most everyday purposes—event planning, casual curiosity, historical research—the tabular method is more than adequate. If you are submitting a legal document to a Saudi government office, double-check against the official Umm al-Qura calendar.

A Quick Guide to the 12 Hijri Months

For readers less familiar with the Islamic calendar, here is a brief overview of each month, along with its cultural or religious significance:

1. Muharram — The first month and one of the four sacred months. The 10th of Muharram (Ashura) is observed with fasting and reflection.

2. Safar — Often considered a month of travel in pre-Islamic Arabia. Some traditions associate it with hardship, though many scholars reject such superstitions.

3. Rabi al-Awwal — The month in which the Prophet Muhammad (peace be upon him) was born, according to the majority of scholars. Many Muslim communities celebrate Mawlid (the Prophet’s birthday) on the 12th.

4. Rabi al-Thani — Sometimes called Rabi al-Akhir. A quieter month with no major observances.

5. Jumada al-Awwal — The name references freezing or dry ground, pointing to the month’s original position in the pre-Islamic seasonal calendar.

6. Jumada al-Thani — The companion to Jumada al-Awwal, completing the “Jumada pair.”

7. Rajab — Another sacred month. The 27th of Rajab is traditionally associated with Isra and Mi’raj (the Night Journey).

8. Sha’ban — The month before Ramadan. Many Muslims increase their voluntary fasting and worship in preparation.

9. Ramadan — The most well-known Islamic month worldwide. Muslims fast from dawn to sunset, increase charity, and devote extra time to prayer and Quran recitation.

10. Shawwal — Begins with Eid al-Fitr, the festival marking the end of Ramadan. Fasting six days of Shawwal after Eid is a recommended Sunnah practice.

11. Dhul Qi’dah — A sacred month during which fighting was traditionally forbidden. Pilgrims begin preparing for Hajj.

12. Dhul Hijjah — The month of Hajj. The first ten days are considered the best days of the year for good deeds. Eid al-Adha falls on the 10th.

Practical Tips for Working With Dual Calendars

Living or working across two calendar systems comes with its own set of small headaches. Here are some tips that people who do it daily have found helpful:

Write both dates on important documents. When you send a wedding invitation, a business contract, or even an internal memo that references a deadline, include both the Gregorian and Hijri dates. It takes five extra seconds and prevents confusion.

Set dual-calendar reminders on your phone. Both Android and iOS support Hijri calendar overlays. Enable them so you can see both dates on every calendar notification without opening a converter each time.

Plan Ramadan logistics early. Because Ramadan shifts roughly 11 days earlier each Gregorian year, its overlap with seasons, school schedules, and business cycles changes. Converting the expected start date well in advance helps with travel bookings, meal prep planning, and work schedule adjustments.

Cross-check with local authorities for religious dates. The converter gives you an excellent starting point, but the official declaration of Ramadan, Eid, and Hajj dates depends on moon-sighting committees in your country. Use the converter for planning, then confirm with your local mosque or government announcement when the date is near.

Use the weekday as a sanity check. The converter shows the day of the week alongside the converted date. If you already know the event you are looking up happened on a Friday, and the converter says Thursday, that is a signal to double-check your input—or to account for the one-day uncertainty inherent in moon-sighting differences.

Notes for Developers and Webmasters

If you are a developer considering adding Hijri–Gregorian conversion to your own project, here are a few things worth knowing:

The Kuwaiti/Tabular algorithm is simple to implement. It boils down to about 30 lines of arithmetic. The core idea is converting to and from Julian Day Numbers, which gives you a clean two-step bridge between any pair of calendars.

Watch out for edge cases. Dates before the Gregorian reform (15 October 1582) require the Julian calendar formula instead. The converter on this page handles that transition automatically, but many simpler implementations do not.

Validate inputs aggressively. Hijri months are either 29 or 30 days—never 31. Hijri years range from 1 to around 1500 for practical purposes. Gregorian leap years follow a well-known pattern, but users will still try to enter February 30th. Catch these early.

Respect RTL. If your audience includes Arabic speakers, make sure your UI flips correctly. CSS logical properties (margin-inline-start, padding-inline-end) make this much easier than the old margin-left/margin-right switching approach.

Offer a disclaimer. No algorithmic converter can match moon-sighting-based calendars perfectly. A short note explaining the potential one-day variance builds trust rather than undermining it.

A Brief History of the Hijri Calendar

The Islamic calendar was introduced during the caliphate of Umar ibn al-Khattab (may God be pleased with him) around 638 CE (17 AH). The starting point—year 1—was set to the year of the Hijra, the Prophet Muhammad’s migration from Mecca to Medina in 622 CE. However, the calendar counts from 1 Muharram of that year, not from the actual date of the migration (which is traditionally placed in Rabi al-Awwal).

Before Islam, the Arabs of the Hijaz used a lunisolar calendar with an intercalary month added periodically to keep the lunar months aligned with the seasons (similar to the Jewish calendar). The Quran prohibited this intercalation (Surah At-Tawbah, 9:36-37), which is why the Islamic calendar is purely lunar and its months rotate through the seasons.

This purely lunar nature is not a flaw—it is a design choice with deep theological significance. It means that Ramadan, Hajj, and other observances cycle through every season over the course of about 33 years, ensuring that no community is permanently “stuck” fasting during the longest or hottest days.

Common Mistakes People Make With Date Conversion

Assuming a fixed offset. Because the Hijri year is about 11 days shorter, some people try to subtract 579 or 580 from the Gregorian year and call it a day. This gives you a ballpark Hijri year, but the month and day will be completely wrong. Always use a proper algorithm.

Ignoring the day boundary. The Hijri day begins at sunset (Maghrib), not at midnight. So a Gregorian date of, say, June 21st might correspond to two different Hijri dates depending on whether you are asking about the morning or the evening. Most converters (including this one) assume the daytime portion of the Gregorian date, which is the convention for civil use.

Mixing up Umm al-Qura with arithmetic results. If you convert a date with this tool and then compare it to a date from a Saudi government website, you might see a one-day difference. That does not mean either source is “wrong”—they are using different methods, each valid in its own context.

Forgetting that historical Hijri dates are retrospective. The Hijri calendar was formalized in 17 AH. Dates assigned to events before that year (like the birth of the Prophet in Rabi al-Awwal, year 1) were calculated retroactively. Different historians may assign slightly different dates to the same event.

Why the Converter Shows the Weekday (and Why It Matters)

You might wonder why the converter bothers showing “Sunday” or “Friday” alongside the date. There are two good reasons:

First, it serves as a built-in sanity check. If you know that the event you are looking up happened on a Friday (Jumu’ah), and the converter says Friday, you can be more confident the conversion is correct. If it says a different day, you know to double-check.

Second, the day of the week carries religious significance in Islam. Friday is the day of congregational prayer. Monday and Thursday are traditional fasting days. The Day of Arafah (9th Dhul Hijjah) has special merit regardless of the weekday, but knowing whether it falls on a Friday adds another layer of significance for many Muslims.

Frequently Asked Questions

Is this converter free to use?

Yes, completely. There are no hidden charges, no premium version, and no ads.

Do I need an internet connection?

Only to load the page initially. Once it is loaded, the converter runs entirely in your browser and works offline.

Why does my result differ by one day from another website?

Different converters use different methods. Some follow the Umm al-Qura calendar, others use the tabular method, and a few use other astronomical models. A one-day difference is normal and expected.

Can I convert dates far in the past or future?

Yes. The algorithm handles any Hijri year from 1 to 1500, which covers roughly 622 CE to 2076 CE. For Gregorian dates, there is no practical limit.

Why is the Hijri calendar shorter than the Gregorian?

Because it follows the moon. Twelve lunar months total approximately 354 days, which is about 11 days fewer than the 365-day solar year. This is by design, not an error.

Can I embed this converter on my own website?

The converter code is available for download. You can embed it in any HTML page, blog post, or CMS widget. It is self-contained and does not require external libraries.

Does the tool store my data?

No. Everything runs locally in your browser. No data is sent to any server, and no cookies are set.

What languages does the converter support?

Arabic, English, French, Spanish, Simplified Chinese, and Hindi. The language is detected automatically from the page settings.

What happens if I enter an invalid date?

The converter validates your input and shows a clear error message. For example, entering February 30th will trigger a warning instead of producing a wrong result.

Final Thoughts

Date conversion between the Hijri and Gregorian calendars is one of those tasks that sounds simple until you actually try to do it by hand. The interplay of lunar cycles, leap-year rules, and moon-sighting traditions makes it genuinely complex—but a good tool hides that complexity behind a clean interface and gives you the answer in seconds.

This converter was built with care: validated against known reference dates, tested across six languages, designed to work on any screen size, and honest about the inherent one-to-two-day uncertainty that comes with any algorithmic approach to a moon-based calendar. It is not perfect—no converter is, unless it has a direct line to every moon-sighting committee on the planet—but it is reliable, fast, and respectful of both the science and the tradition behind these two remarkable calendar systems.

Use it for planning, for research, for satisfying your curiosity, or simply for answering the question everyone asks at least once a year: “When does Ramadan start this time?” And if you find it useful, share it with someone who might need it too.

Written by Adam

As a digital content enthusiast, I dedicate myself to sharing my personal insights and documenting the knowledge I gain from the web. My goal is to create valuable, purpose-driven content that informs, inspires, and delivers real benefits to others.

OFF
enabled: true page: /p/redirect.html protect: true in_post: true new_tab: true delay: 5
enabled: true shape: solid scope: standalone
enabled: true title: Rate this article