Shamsi to Miladi Date Converter

Convert between the Shamsi (Solar Hijri) and Miladi (Gregorian) calendars in either direction. Afghan and Iranian month names are both shown, and today's date is below before you type anything.

Shamsi to Miladi converter

Today

—

—

Convert a date

Direction

Nothing is uploaded. This tool runs entirely in your browser. There is no server to send it to, no copy kept anywhere, and it keeps working if you lose your connection after the page has loaded.

You get: The converted date in both calendars Free, no sign-up

Shamsi, Jalali, Persian — one calendar, three names

The Shamsi calendar is the official calendar of Afghanistan and Iran. Shamsi means solar; you will also see it called Jalali, after the reform of 1079 that fixed its present shape, or simply the Persian calendar, which is what most software calls it. Miladi is the Gregorian calendar — the ordinary international one.

It is a solar calendar, so its year is the same length as a Gregorian year and the seasons stay where they belong. That is worth stating because it is the single most common confusion here: the Shamsi calendar is not the Islamic Hijri calendar, which is lunar, eleven days shorter, and drifts steadily through the seasons. The two are currently about forty years apart in their year numbers.

The months, and their two sets of names

There are twelve months. The first six have 31 days, the next five have 30, and the twelfth — Esfand, or Hut — has 29 days, or 30 in a leap year. Afghanistan names them with the zodiacal Arabic terms and Iran with the Persian ones, but they are the same months in the same order, so a date written either way is the same day:

The twelve Shamsi months
#Afghan nameIranian nameDays
1HamalFarvardin31
2SawrOrdibehesht31
3JawzaKhordad31
4SaratanTir31
5AsadMordad31
6SunbulaShahrivar31
7MizanMehr30
8AqrabAban30
9QawsAzar30
10JadiDey30
11DalwBahman30
12HutEsfand29 or 30

Worked examples

20 March 2024 converts to 1 Farvardin 1403 (1 Hamal in the Afghan names) — Nowruz that year. The day before, 19 March 2024, is 29 Esfand 1402, the last day of the old year, which shows 1402 was a common year: Esfand only reaches 29 days, not 30. Going the other way, 25 Ordibehesht 1369 (25 Sawr in the Afghan names) converts to 15 May 1990.

Why the new year moves

Nowruz, the Shamsi new year, is the day of the March equinox as observed at Tehran. It is an astronomical event rather than a fixed count, so 1 Hamal falls on 20 or 21 March depending on the year — and because of that, the leap years do not follow a neat repeating pattern the way the Gregorian ones do. Any converter that uses a simple thirty-three-year cycle will eventually give you the wrong day.

The rule of thumb people usually reach for — add 621 to a Shamsi year — gets you the Gregorian year that mostly overlaps it. Shamsi 1402 ran from 21 March 2023 to 19 March 2024. But since every Shamsi year straddles two Gregorian ones, that addition tells you which year, not which day. For a date you can put on a form, use the converter.

Where the conversion comes from

This page does no calendar arithmetic of its own. Every conversion is performed by the internationalisation library built into your browser, which is maintained by the Unicode Consortium and is the same code your operating system uses to display dates. Writing that arithmetic by hand would mean reproducing a long table of leap-year exceptions from memory, and getting one entry wrong would produce answers that look right and are not.

The one thing the page does calculate is the reverse direction, which the browser does not offer directly. It searches for the day whose forward conversion matches what you typed, and confirms the match exactly rather than settling for close. If no day converts to the date you entered — 30 Hut in a common year, for instance — it tells you the date does not exist instead of silently moving you.

Common mistakes

  • Adding 621 and treating it as an exact conversion. It only tells you which Gregorian year a Shamsi year mostly falls in. The actual day needs the converter, because the Shamsi year starts in March and runs into the following Gregorian year.
  • Assuming Esfand always has 30 days. It does only in a leap year. In a common year, like 1402, it stops at 29, and "30 Esfand 1402" is not a date the converter can return.
  • Confusing Shamsi with Hijri. Both count from the Hijra and both are sometimes just called "the Hijri calendar" in casual speech, but Shamsi is solar and Hijri is lunar — use the Hijri date converter if the date in front of you is a Ramadan or an Eid date rather than an Iranian or Afghan calendar date.

Limits

Conversions are for whole days, not times, so time zones do not come into it: a date is a date. "Today" is taken from your device's clock and your device's time zone, which means someone in Kabul and someone in Toronto can genuinely see different days for a few hours, exactly as they would on a wall calendar.

Very old dates are converted the way the standard implementation converts them, by extending the modern rules backwards. That is the normal convention, but it is a convention: for historical research before the calendar's adoption, a proleptic conversion is not the same thing as what a document of the period would have said.

For the lunar Islamic calendar — a different calendar despite the shared Hijra starting point — see the Hijri date converter or the Hijri age calculator.

Frequently asked questions

What is the difference between Shamsi, Jalali and the Persian calendar?

They are three names for the same calendar. Shamsi means "solar", Jalali refers to the reform of 1079 under Jalal al-Din Malik-Shah, and "Persian calendar" is what software usually calls it. Afghanistan and Iran both use it as their official calendar.

And what is Miladi?

Miladi is the Gregorian calendar — the ordinary international one. The word comes from the birth of Christ, which is where that calendar counts from.

Why do Afghan and Iranian month names differ?

They are two naming traditions for the same twelve months. Afghanistan uses the zodiacal Arabic names — Hamal, Sawr, Jawza — and Iran uses the Persian ones — Farvardin, Ordibehesht, Khordad. The dates are identical, so this page shows both names on every result.

Why does the Shamsi new year not fall on the same day every year?

Because it is tied to an astronomical event rather than a fixed count. Nowruz falls on the day of the March equinox as observed at Tehran, so it lands on 20 or 21 March depending on the year. That is also why the leap years do not follow a simple repeating cycle.

Is this the same as the Islamic (Hijri) calendar?

No, and confusing the two is the most common mistake here. The Shamsi calendar is solar — its year is the same length as a Gregorian year, so the seasons stay put. The Hijri calendar is lunar and about eleven days shorter, so it drifts through the seasons. They currently differ by roughly forty years in their year numbers.

How accurate is the conversion?

It uses the calendar implementation built into your browser, which is maintained by the Unicode Consortium and is the same code your operating system uses to display dates. No arithmetic is done by this page itself, precisely so there is nothing here to get wrong.

Why does it say a date does not exist?

Because some do not. Esfand, the twelfth month, has 30 days only in a leap year, so 30 Esfand in a common year is not a date at all. The page says so rather than quietly moving you to the nearest real day.

What is the year 1402 or 1403 in Gregorian terms?

Roughly: add 621 to a Shamsi year for the Gregorian year it mostly overlaps. 1402 ran from 21 March 2023 to 19 March 2024. Because the Shamsi year starts in March, any Shamsi year spans two Gregorian ones, so that addition is a rule of thumb rather than a conversion — use the tool for an exact date.

Is anything I enter sent anywhere?

No. The conversion runs in your browser. There is no upload, no logging and no account.

How many days are in each Shamsi month?

The first six months (Farvardin to Shahrivar, or Hamal to Sunbula) have 31 days each. The next five (Mehr to Bahman, or Mizan to Dalw) have 30. The twelfth month, Esfand or Hut, has 29 days in a common year and 30 in a leap year.

Does the converter handle times, not just dates?

No. It converts whole calendar days. There is no time-of-day field, so a time zone difference near midnight does not enter into the conversion — only which day it is where you are matters.

About this converter

The conversion follows the standard Solar Hijri calendar as implemented by the Unicode Consortium's calendar library. Official documents, national holidays and local practice can and do differ from a pure calendar conversion — a government office in Kabul or Tehran is the authority on what date belongs on a form, not a web page. Treat this as a reliable conversion, not as an official record.

Age Calculator

Exact age from a date of birth, with the next birthday countdown.

Date & Age

Tasbih Counter

Count dhikr with one tap. Targets, vibration and a saved count.

Utility Tools

More in Date & Time Tools All tools