Persian Solar Hijri Calendar Converter

Convert dates between the Gregorian calendar and the Persian Solar Hijri (Shamsi/Jalali) calendar.

Input

Result

All parameters set. Ready to execute!
Client-Side Privacy
Instant Response
100% Free Forever

Persian Solar Hijri Calendar Converter

The Persian Solar Hijri Calendar Converter is an online chronological utility that translates dates between the Gregorian calendar and the Persian Solar Hijri (Shamsi or Jalali) calendar. The Solar Hijri calendar is the official calendar of Iran and Afghanistan. This tool calculates correct date alignments, accounts for complex Persian leap years, and returns localized month names for scheduling. Users enter values, select conversion parameters, and receive exact outputs instantly.

What is the Solar Hijri Calendar?

The Solar Hijri calendar (also known as the Persian Shamsi calendar) is an astronomical solar calendar that determines its starting point and year divisions based on the spring equinox (Nowruz). The calendar beginning (epoch) corresponds to the Hijra, the migration of the Prophet Muhammad from Mecca to Medina in 622 AD, which is the same epoch used by the Islamic lunar calendar. However, because the Solar Hijri calendar tracks the Earth's orbit around the Sun, its year length matches standard solar years ($365$ or $366$ days), making it distinct from the lunar Hijri calendar. The automated converter processes these calendar rules instantly.

There are 4 distinct properties that govern the Solar Hijri calendar. First, the first six months (Farvardin through Shahrivar) contain exactly 31 days each. Second, the next five months (Mehr through Bahman) contain exactly 30 days each. Third, the twelfth month (Esfand) contains 29 days in a standard year and 30 days in a leap year. Fourth, the start of the year is determined by astronomical calculations of the vernal equinox as observed from the Tehran timezone, rather than a fixed calendar rule. This utility calculates dates based on these standardized astronomical rules.

The History of the Jalali Calendar and Omar Khayyam

The origin of the modern Solar Hijri calendar is the Jalali calendar, which was commissioned in 1079 AD by the Seljuk Sultan Jalal al-Din Malik Shah I. A committee of astronomers led by the famous Persian polymath, mathematician, and poet Omar Khayyam conducted observations at the Isfahan observatory to reform the existing calendar. Khayyam calculated the length of the solar year with high precision, determining it to be 365.242198 days. This measurement was more accurate than the Gregorian calendar calculation ($365.2425 ext{ days}$) developed five centuries later.

According to chronological studies, the Jalali calendar uses a unique leap year cycle based on a 33-year period, where leap years occur every four years, with the final leap year of the cycle occurring after five years (a quinquennial leap year). This system keeps the calendar aligned with the seasons to within one day every 120,000 years. The modern Iranian parliament standardized this system in 1925, establishing the Solar Hijri calendar as the official national standard. The Persian Solar Hijri Calendar Converter implements these leap calculations, ensuring alignment with official administrative dates.

How the Calendar Conversion Algorithm Works

To convert between Gregorian and Solar Hijri dates, enter the date string, select the conversion direction, and execute the calculation. The processing engine executes this conversion through a 4-step pipeline.

  1. Input Validation: The system validates the input string, checking for standard hyphenated date syntax (YYYY-MM-DD). It splits the string into year, month, and day components, verifying that they represent a valid calendar date.
  2. Reference Day Calculation: The engine calculates the total number of elapsed days from a mutual reference epoch. This normalization step translates different calendar cycles into a single integer day count.
  3. Calendar Cycle Division: The system applies the target calendar's rules to partition the reference days. It calculates leap year distribution patterns to extract the correct target year, month, and day.
  4. Month Name Translation: The formatting engine maps the calculated month integer to its classic Persian name (e.g., Ordibehesht or Esfand), constructing the final display string.

For example, if you convert the Gregorian date "2026-06-16", the tool calculates the reference day count. It identifies that the corresponding Persian year is 1405. The month corresponds to Khordad (the 3rd month), and the day is 26. The tool outputs "1405-03-26" and the localized string "26 Khordad 1405," indicating a non-leap year.

Comparison of Calendar Structures

The table below compares the Gregorian calendar, the Solar Hijri calendar, and the Lunar Hijri calendar. It displays the calendar type, year length, starting epoch, and leap year cycles.

Calendar System Calendar Base Type Average Year Length Starting Epoch (Year 1) Leap Year Cycle Structure
Solar Hijri (Persian) Astronomical Solar 365.24219 days 622 AD (Hijra migration) 33-year cycle (mixed 4-year and 5-year intervals)
Gregorian Calendar Arithmetic Solar 365.24250 days 1 AD (Traditional birth of Christ) 400-year cycle (divisible by 4, except centurials not by 400)
Lunar Hijri (Islamic) Astronomical Lunar 354.36700 days 622 AD (Hijra migration) 30-year cycle (11 leap years of 355 days)

The comparison table demonstrates the difference between solar and lunar calendars. It shows that although the Solar Hijri and Lunar Hijri calendars share the same starting year (622 AD), the different year lengths cause their current year counts to diverge significantly.

What are the Benefits of Calendar Conversion Automation?

There are 5 primary benefits of using an automated Persian calendar converter. These advantages optimize trade operations, software internationalization, and cultural event planning.

  • Accuracy in Public Filings: The tool calculates correct Jalali dates, helping business administrators complete official documents for Iranian or Afghan authorities.
  • Verification of Passport Data: Visa coordinators translate birthdates on Persian identity documents into Gregorian equivalents, preventing entry errors.
  • Precise Holiday Planning: Cultural organizations calculate the exact Gregorian dates for traditional festivals like Nowruz and Yalda, which shift relative to civil calendars.
  • Simplified Software Localization: Developers verify calendar translation APIs, ensuring that local time constructors match calculated outputs.
  • Fast Historical Audits: Historians check treaty dates in 0.05 milliseconds, replacing manual calculation cycles.

Common Industry Use Cases for Solar Hijri Conversions

Project managers, software internationalization engineers, and researchers use Solar Hijri converters to manage chronological data. There are 5 primary scenarios that utilize this converter.

1. International Logistics and Customs Clearing

Logistics coordinators manage shipping dates for trade routes crossing Central Asia. Converting delivery dates from Gregorian calendars to Solar Hijri ensures that local custom manifests match official state calendars.

2. Localization of Web and Mobile Applications

Software developers build localized calendars for Persian markets. They verify their localization libraries against this tool to ensure that year transitions and leap days display correctly in user interfaces.

3. Academic Historical Research and Translation

Scholars translate historical manuscripts from the Safavid and Qajar eras. Converting the handwritten dates (often recorded in Shamsi formats) to Gregorian dates helps build accurate historical timelines.

4. Consular and Visa Document Verification

Consular staff process passport applications. They convert the applicant's birth date from the Shamsi calendar to the Gregorian calendar to ensure the visa record matches standard travel databases.

5. Cultural Festival Coordination

Nowruz event organizers determine the exact Gregorian calendar minute of the equinox to coordinate the transition ceremonies for the Persian New Year.

Astronomical Verification vs. Arithmetic Calendars

A primary difference between the Persian Solar Hijri calendar and the Gregorian calendar is the method of verification. The Gregorian calendar is strictly arithmetic, using a fixed cycle of leap years that requires no physical observations. The Persian calendar, however, is an astronomical calendar. The year begins at the exact second the Sun crosses the celestial equator as observed from the astronomical meridian at $52.5^{circ} ext{ East}$ longitude (Tehran). If the equinox occurs before noon on a given day, that day is declared the first day of the year (1 Farvardin). If it occurs after noon, the next day is the start of the year. The Persian Solar Hijri Calendar Converter utilizes mathematical algorithms that approximate these astronomical transitions, ensuring high accuracy for standard dates.

Frequently Asked Questions

What is the difference between Shamsi, Jalali, and Solar Hijri?

These terms describe the same solar calendar system used in Iran and Afghanistan. Shamsi means solar in Arabic, Jalali is the historical name from Omar Khayyam's reform, and Solar Hijri is the modern official name.

Are the Persian and Islamic calendars the same?

No, the Persian calendar is solar, while the Islamic calendar is lunar. Although they share the same starting epoch (622 AD), the solar calendar has 365 days and stays aligned with the seasons, whereas the lunar calendar has 354 days and drifts backward.

Why do some Persian years have 366 days?

A year with 366 days is a leap year, occurring to keep the calendar aligned with the Earth's orbit. In the Persian calendar, leap years occur approximately every four years, with a five-year gap occurring once every 33 years.

Does this tool convert Afghan Dari calendar names?

Yes, the date conversion math is identical for the Afghan solar calendar. Afghanistan uses the same Solar Hijri calendar, but the month names correspond to the zodiac signs (e.g., Hamal, Sawr) instead of the Persian names.

Can I convert dates prior to 622 AD?

Yes, the converter handles negative Persian dates to represent historical dates before the Hijra. These values are calculated using the proleptic extension of the calendar rules.

How does the tool handle the spring equinox leap day?

The algorithm calculates the leap year status of the Jalali year. If the year is determined to be a leap year, the twelfth month (Esfand) is assigned 30 days instead of 29, shifting subsequent Gregorian dates accordingly.

Simplify Your Persian Calendar Calculations

Manual conversion between Gregorian and Persian dates involves complex leap year cycles and is prone to errors. The Persian Solar Hijri Calendar Converter provides a fast, standardized translation instantly. Use this chronological utility to verify passport records, localize web applications, and plan cultural events accurately.

More Date Time Tools

Browse All

Year Calendar Text Generator

Date Range to Weekdays List

Week Start and End Date Finder

Month Calendar Text Generator

Date Range Generator

Recurring Date List Generator

Time Zone Offset List Generator

ISO 8601 Date Formatter

Week Number Calculator

Pregnancy Due Date Calculator

Sunrise Sunset Time Estimator

Season Detector

Quarter of Year Calculator

Leap Year Checker

Day of Week Finder

Moon Phase Calculator

Contract End Date Calculator

Business Days Calculator

Time to Decimal Hours Converter

Chinese Calendar Converter

Decimal Hours to Time Converter

Hebrew Calendar Converter

Islamic Hijri Calendar Converter

Date Format Converter

Julian Date Converter

Date to Unix Timestamp Converter

UTC to Local Time Converter

Unix Timestamp to Date Converter

Time Zone Converter

Local Time to UTC Converter

Human Readable Duration Formatter

Relative Time Formatter

Cron Expression to Plain English

Age in Various Units Calculator

24-Hour to 12-Hour Converter

12-Hour to 24-Hour Converter

Time Duration Calculator

Date Validation Tool

Day of Year Calculator

Daylight Hours Calculator

Days Between Two Dates

Easter Date Calculator

Invoice Due Date Calculator

Fiscal Year Calculator

Countdown Formatter

Cron Expression Generator

Date Calculator