Frequently Asked Questions
Validate Afghan phone numbers using regular expressions specific to landline, mobile, and international formats. For example, use ^0[2-6][0-9] \d{6}$
for landlines and ^07[0-9] \d{7}$
for mobile numbers. Remember to remove spaces before validating using these regex patterns. You can find JavaScript code examples demonstrating the validation process within the article content itself.
Afghanistan's country code is +93. This code must be used when dialing Afghan numbers from outside the country. For domestic calls within Afghanistan, use 0 before the area code, but remove it for international calls. You can also use 00 as an alternative to the + sign for international calls.
Afghanistan uses different formats for landlines, mobiles, and emergency services to distinguish between these services and ensure efficient call routing. Landlines follow a 0AA XXXXXX format, mobiles use 07X XXXXXXX, and emergency numbers are simply 1XX. International format is +93 AA XXXXXX, always including the country code for global dialing.
Use the +93 country code when making international calls to Afghanistan. This code ensures that the call is correctly routed to the Afghan telephone network. Omit the leading '0' from the local number when using the international format. The plus sign (+) can also be replaced with 00 as an alternative.
You can enter Afghan numbers with spaces for readability, but always remove them before validating using regular expressions. The regular expression patterns provided in the article are designed to be strict, preventing common validation bypasses. Maintain a consistent format for storage and display after removing any spaces.
The article provides JavaScript code that formats Afghan mobile numbers using regular expressions and string manipulation for better readability. The provided regex patterns allow spaces for user input but ensure they are removed before validation. The code separates the mobile number groups to improve readability.
Kabul's area code is 20. Area codes are two-digit regional identifiers in Afghanistan, ranging from 20 to 69. They are essential for routing calls within the country. You can find a complete list of area codes on the Afghanistan Telecom Regulatory Authority (ATRA) website.
Afghan landline numbers have nine digits, including the leading '0'. The format is 0AA XXXXXX, where AA is the two-digit area code and XXXXXX is the six-digit subscriber number. Make sure to remove the leading '0' when dialing internationally.
Afghanistan's primary mobile operators are AWCC (070), Roshan (079), Etisalat (078), and MTN (077). This knowledge is beneficial for UI enhancements, potentially pre-filling operator details for users. The Afghan telecommunications sector has transformed significantly since 2002, primarily driven by the expansion of mobile networks.
To convert a local Afghan number to the international format, remove the leading '0' and prepend '+93'. This converts a number like 020 123456 to +93 20 123456, suitable for international dialing. This format ensures connectivity with the Afghan network from anywhere globally.
The standard emergency number in Afghanistan is 119. This number is a simplified 3-digit format that requires no prefix for dialing. However, availability might vary depending on your region. Contact local authorities for region-specific emergency numbers if necessary.
The Afghanistan Telecom Regulatory Authority (ATRA) website (https://atra.gov.af/) offers comprehensive information on Afghan phone number regulations and area codes. Refer to this website and the ITU-T E.164 standards for the latest information. ATRA is actively working towards a digitally transformed Afghanistan by 2030.
Afghanistan Phone Number Format: Complete Validation Guide (+93 Country Code)
Introduction
The Afghanistan phone number format uses the +93 country code with distinct patterns for mobile numbers (07X XXXXXXX - 9 digits), landlines (0AA XXXXXX - 9 digits), and international dialing. This comprehensive validation guide helps developers and telecommunication professionals implement accurate phone number verification using regex patterns, area code structures for all 34 provinces, mobile operator identification across AWCC, Roshan, Etisalat, MTN, and Afghan Telecom networks, plus best practices for web forms, API integrations, and telephony systems that comply with ITU-T E.164 international standards.
Understanding Afghanistan Phone Number Format Structure
Use these core components for accurate validation and processing:
+93
(assigned by the International Telecommunication Union). Use this to identify Afghan numbers in international communications and E.164 format compliance. E.164 limits phone numbers to a maximum of 15 digits (ITU-T standard).20
. Complete list verified in ITU-T E.164 National Numbering Plan (Communication of 7.II.2017).0
(ITU-T E.164 specification, 2017).0
for domestic long-distance calls within Afghanistan. Omit it when dialing internationally. Use00
as an alternative to+
for international calls.Afghanistan Phone Number Validation Regex Patterns
0AA XXXXXXX
^0[2-6][0-9] [2-9]\d{6}$
07X XXXXXXX
^07[0-9] \d{7}$
+93 AA XXXXXXX
^\+93 [2-6][0-9] [2-9]\d{6}$
1XX
^1\d{2}$
These patterns validate Afghan phone numbers per ITU-T E.164 standards and ensure data integrity.
Afghanistan Phone Number Types: Mobile, Landline, and International
Each number type serves specific use cases for telecommunication systems and business applications.
How to Format Afghanistan Mobile Numbers
Mobile penetration in Afghanistan covers 55% of the population (22.3 million connections as of January 2025, per DataReportal Digital 2025). Key formatting details:
07X XXXXXXX
(9 digits total including the0
prefix, per ITU-T E.164 Communication 7.II.2017)0
identify the mobile operator (e.g.,070
/071
for AWCC,079
/072
for Roshan,077
/076
for MTN)07
prefix followed by one digit (operator), then seven more digits. Allow spaces for readability, but remove them before validation.How to Format Afghanistan Landline Numbers
Landlines use this format:
0AA XXXXXXX
(9 digits including the0
prefix)0
represent the geographic area0
, followed by a valid area code (20–69) and six-seven subscriber digitsHow to Convert Afghanistan Numbers to International Format (+93)
Use this format for international communication:
+93 AA XXXXXXX
(for landlines) or+93 7X XXXXXXX
(for mobiles)0
and prepend+93
+93
prefix followed by a valid area code and subscriber numberWhat Are Afghanistan Emergency Numbers?
Emergency numbers use a simplified 3-digit format:
1XX
(direct dial, no prefix required)119
– Police directorate for crime reporting and complaints (established 2009 by Ministry of Interior Affairs, operates 24/7, verified via Afghanistan Ministry of Interior)100
– Police emergency102
– Medical assistance112
– Fire servicesHow to Validate Afghanistan Phone Numbers in JavaScript
Use these validation and formatting functions for web applications and API implementations:
JavaScript Validation and Formatting Code Examples
Error Handling
Implement comprehensive error handling to manage invalid inputs. Use custom error classes or specific error codes to provide detailed feedback. For example, create an
AfghanPhoneNumberError
class to categorize errors.Best Practices
Afghanistan Mobile Operators and Network Coverage
Which Mobile Network Operators Serve Afghanistan? (2025)
Afghanistan has five primary mobile operators per ITU-T E.164 Communication (7.II.2017) and MCIT:
Note: Each operator has been assigned multiple prefix codes (e.g., AWCC uses both 070 and 071). Always check both primary and secondary codes when validating operator identity (ITU-T E.164, 2017).
Use this information to pre-fill operator information in user interfaces and validate numbers against specific network providers.
The Afghan telecommunications sector has undergone significant transformation since 2002, evolving from limited fixed-line infrastructure to a predominantly mobile-based network. Compare with Pakistan phone numbers and Iran phone numbers for regional telecommunications context.
Network Coverage Statistics
Network coverage varies across Afghanistan. Key statistics (verified January 2025):
Urban centers have better 4G/LTE access compared to rural areas. Consider this when designing applications that rely on data connectivity. MCIT plans to expand coverage to the remaining 15% of the population via 700 new towers.
Frequently Asked Questions
What is the country code for Afghanistan?
The country code for Afghanistan is +93. Use this prefix when dialing Afghan numbers from outside the country. The International Telecommunication Union (ITU) assigns this code under the E.164 international numbering plan.
How do I validate an Afghanistan phone number?
Validate Afghanistan phone numbers using regex patterns that check for proper format structure. Mobile numbers must start with
07
followed by 7 digits (9 digits total with the 0 prefix, per ITU-T E.164 2017). Landlines start with0
followed by a two-digit area code (20–69) and 6-7 subscriber digits (9 digits total). Always remove spaces and special characters before validation. Use the JavaScript validation functions provided in this guide for implementation.What are Afghanistan area codes?
Afghanistan area codes are two-digit regional identifiers ranging from 20 to 69. Kabul uses area code 20, Kandahar uses 30, Heart uses 40, Balkh uses 50, and Nangarhar uses 60. Find the complete official list on the ATRA website at https://atra.gov.af/ or in the ITU-T E.164 National Numbering Plan.
How do I convert Afghanistan local number to international format?
To convert an Afghanistan local number to international format, remove the leading
0
from the local number and prepend+93
. For example,020 2001234
becomes+93 20 2001234
and mobile079 123456
becomes+93 79 123456
. This conversion is essential for international SMS delivery and voice call routing.What are the mobile operators in Afghanistan?
Afghanistan has five primary mobile operators as of 2025:
Each operator uses specific two-digit codes after the
07
prefix for mobile number identification.What is the emergency number in Afghanistan?
The main emergency number in Afghanistan is 119, which connects to the police directorate for crime reporting and complaints (established 2009 by Ministry of Interior Affairs, operates 24/7). Other emergency numbers include 100 (police emergency), 102 (medical assistance), and 112 (fire services). Important: Local operators do not speak English, and availability varies by region with services primarily available in major cities.
Can I use JavaScript to validate Afghanistan phone numbers?
Yes, you can use JavaScript regex patterns to validate Afghanistan phone numbers. Use
/^07[0-9]\s?\d{3}\s?\d{3}$/
for mobile numbers (9 digits: 07X XXX XXX) and/^0[2-6][0-9]\s?[2-9]\d{2}\s?\d{3}$/
for landlines (9 digits: 0AA XXX XXX). Remember to sanitize input by removing spaces before validation. See the complete JavaScript validation examples in this guide.What is the difference between Afghanistan landline and mobile numbers?
Afghanistan landlines and mobiles both use 9 digits total. Landlines follow format
0AA XXXXXXX
(area code + subscriber digits), while mobiles use07X XXXXXXX
(operator code + subscriber digits), per ITU-T E.164 Communication 7.II.2017. Mobile numbers always start with07
, while landlines start with0
followed by area codes ranging from 20–69 identifying specific provinces.Do Afghanistan phone numbers follow E.164 format?
Yes, Afghanistan phone numbers follow E.164 format. Afghanistan numbers comply with the ITU-T E.164 international standard per official Communication of 7.II.2017. In E.164 format, an Afghan number includes the country code +93 followed by the national destination code (area or operator code) and subscriber number, with 9 digits after the leading 0 (12 digits total in international format including +93).
How reliable is mobile network coverage in Afghanistan?
Mobile network coverage in Afghanistan reaches 85% of the population via 4,760 active towers (MCIT, 2025). 80.9% of mobile connections use broadband 3G/4G/5G networks (GSMA Intelligence, 2025). Users on major operators (Roshan, Etisalat, AWCC) spend 50%+ of time with 4G connection, with network availability reaching 85–87.5% (Opensignal 2023). Urban centers like Kabul have reliable 4G/LTE coverage, while rural areas typically rely on 2G/3G networks. Consider this connectivity variance when developing SMS or data-dependent applications for Afghanistan.
Conclusion
You now understand Afghanistan phone number formats, validation regex patterns, and implementation best practices for E.164-compliant telecommunication systems. Follow these guidelines to ensure your applications handle Afghan phone numbers accurately per ITU-T E.164 standards. Stay updated with the latest regulations from ATRA and the ITU-T National Numbering Plan to maintain a robust, production-ready implementation.