Frequently Asked Questions
The country code for Iran is +98. This code is used when dialing an Iranian number from an international location. When dialing within Iran, a '0' is added before the area code and number.
Iranian landline numbers follow the format 0XX XXXX XXXX, where 0 is the national prefix, XX represents the two or three digit area code and the rest are the subscriber number. For example, a Tehran landline number would be 021 1234 5678.
Iranian mobile numbers follow the format 09XX XXX XXXX, where 0 is the national prefix, 9 indicates a cell phone number, followed by 9 more digits. Mobile numbers begin with 09 and are nine digits after the national prefix (0).
Major Iranian cities have two-digit area codes, such as 021 for Tehran, 051 for Mashhad, 031 for Isfahan, 041 for Tabriz, and 071 for Shiraz. Other regions use three-digit area codes.
You can validate Iranian phone numbers using regular expressions in JavaScript. The article provides an example function that checks for common formats like landline, mobile, MVNO, and basic premium-rate numbers. Remember to sanitize the input by removing non-digit characters.
Iran has several mobile operators with their own prefixes. MCI uses 0910-0919 and 0990-0994, MTN Irancell uses 0900-0905, 0930, 0933, 0935-0939, and 0941, RighTel uses 0920-0923, and Shatel Mobile uses 0998.
Mobile Virtual Network Operator (MVNO) numbers in Iran follow the format 099X XXX XXXX. For example, Shatel Mobile, an MVNO, uses the prefix 0998.
Premium-rate numbers in Iran are used for services like voting, entertainment, and support, and have higher costs. Prefixes include 909, 7020 (provincial), 7070 (national), 8081, and 9922 (IR-MCI), among others. Always check the cost before dialing.
+98 is Iran's designated country code as per the international ITU-T E.164 standard. This standard ensures global consistency in international dialing.
The '0' prefix, used for domestic calls within Iran, should be dropped when dialing an Iranian number from another country. Use the +98 country code followed by the area code and local number.
Dial 110 for Police, 115 for Ambulance, and 125 for the Fire Department in Iran. 112 can be dialed from mobile phones for International Emergency and will redirect to local services.
The JavaScript validation example is a starting point. You'll need to adjust and extend it for comprehensive validation, accounting for all premium-rate prefixes and future changes to Iran's numbering plan. Consult the CRA website for updates.
Number portability in Iran allows users to switch operators while keeping their number. Therefore, a number's prefix may not always match its current provider. Consider using a carrier lookup service if accurate operator information is crucial.
Loading...
Iran Phone Numbers: Format, Area Code & Validation Guide
This guide provides a comprehensive overview of Iran's telephone numbering system, including fixed lines, mobile numbers, and special services. Whether you're a developer building telecommunications applications, managing international call routing, or simply trying to understand how to dial an Iranian number, this resource will equip you with the necessary knowledge.
Numbering Plan Structure
Iran adheres to the international ITU-T E.164 standard, using the country code +98. When dialing from within Iran, a national prefix of '0' precedes all numbers. This '0' is dropped when dialing an Iranian number from an international location.
Area Codes
Iran employs a hierarchical area code system, dividing the country into telecommunication regions. Major cities typically have two-digit area codes, while other regions use three-digit codes. Understanding these area codes is crucial for accurate routing and validation.
Here are some examples of major city area codes:
A more comprehensive list of area codes can be found in Appendix A at the end of this document.
Number Formats
The following table details the formats for different types of Iranian phone numbers:
Premium-Rate Numbers
Premium-rate numbers in Iran have various formats and are used for services like voting, entertainment, and technical support. These numbers typically begin with prefixes like 909, 7020 (provincial), 7070 (national access), 8081, 9922 (for IR-MCI), and others. Always confirm the specific format and associated costs before dialing a premium-rate number. A more detailed breakdown of premium-rate number formats can be found in Appendix B.
Mobile Operators and Prefixes
Iran has several mobile operators, each with its own set of prefixes. Recognizing these prefixes can be helpful for identifying the carrier and applying appropriate routing logic. Here are the major operators and their common prefixes:
Number Validation
Implementing robust number validation is crucial for any application handling Iranian phone numbers. Here's an example of how you might approach this using regular expressions in JavaScript:
Important Note: This validation example provides a starting point. You'll need to adapt and expand it to cover all possible number formats, including the various premium-rate number prefixes and potential future expansions of the numbering plan.
Best Practices
Emergency Numbers
These numbers should be accessible even without a SIM card or network coverage.
Appendix A: Expanded Area Code List (Partial - Consult CRA for Full List)
This list is not exhaustive. Refer to the Communication Regulatory Authority (CRA) of Iran for the most up-to-date and complete list.
Appendix B: Premium-Rate Number Formats
This guide provides a solid foundation for understanding and working with Iranian phone numbers. Remember to consult official resources for the most current information and regulations.