Skip to content

Afghanistan Phone Number Format: Complete Validation Guide (+93 Country Code)

Validate Afghanistan phone numbers with +93 country code using proven regex patterns, area codes, and mobile operator codes. ITU-T E.164 compliant guide for developers.

Phone number standards9 min read

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:

  • Country Code: +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).
  • Area Codes: Two-digit regional identifiers ranging from 20 to 69. Kabul uses area code 20. Complete list verified in ITU-T E.164 National Numbering Plan (Communication of 7.II.2017).
  • Subscriber Numbers: Both landlines and mobiles use 9 digits total including the leading 0 (ITU-T E.164 specification, 2017).
  • Dialing Prefixes: Use 0 for domestic long-distance calls within Afghanistan. Omit it when dialing internationally. Use 00 as an alternative to + for international calls.

Afghanistan Phone Number Validation Regex Patterns

Number TypeFormat PatternExampleValidation Regex
Landline0AA XXXXXXX020 2001234^0[2-6][0-9] [2-9]\d{6}$
Mobile07X XXXXXXX070 1234567^07[0-9] \d{7}$
International+93 AA XXXXXXX+93 20 2001234^\+93 [2-6][0-9] [2-9]\d{6}$
Emergency Services1XX119^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:

  • Format: 07X XXXXXXX (9 digits total including the 0 prefix, per ITU-T E.164 Communication 7.II.2017)
  • Operator Code: The two digits after 0 identify the mobile operator (e.g., 070/071 for AWCC, 079/072 for Roshan, 077/076 for MTN)
  • Validation: Check for the 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:

  • Format: 0AA XXXXXXX (9 digits including the 0 prefix)
  • Area Code: Two digits after the 0 represent the geographic area
  • Validation: Ensure the number starts with 0, followed by a valid area code (20–69) and six-seven subscriber digits

How to Convert Afghanistan Numbers to International Format (+93)

Use this format for international communication:

  • Format: +93 AA XXXXXXX (for landlines) or +93 7X XXXXXXX (for mobiles)
  • Conversion from Local: Remove the leading 0 and prepend +93
  • Validation: Verify the +93 prefix followed by a valid area code and subscriber number
  • E.164 Compliance: Afghanistan numbers follow the international E.164 numbering standard, ensuring global telecommunications compatibility

What Are Afghanistan Emergency Numbers?

Emergency numbers use a simplified 3-digit format:

  • Format: 1XX (direct dial, no prefix required)
  • Main Emergency Number: 119 – Police directorate for crime reporting and complaints (established 2009 by Ministry of Interior Affairs, operates 24/7, verified via Afghanistan Ministry of Interior)
  • Additional Emergency Numbers:
    • 100 – Police emergency
    • 102 – Medical assistance
    • 112 – Fire services
  • Important Limitations: Local operators do not speak English. Emergency services are restricted to major cities. Response times may exceed standards in developed countries. Availability varies by region (U.S. State Department Travel Advisory, 2024).

How 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

JavaScript
// Regular expression patterns for validation (updated for 9-digit format per ITU-T E.164)
const patterns = {
  mobile: /^07[0-9]\s?\d{3}\s?\d{3}$/, // 9 digits: 07X XXX XXX
  landline: /^0[2-6][0-9]\s?[2-9]\d{2}\s?\d{3}$/, // 9 digits: 0AA XXX XXX
  international: /^\+93\s?[2-6][0-9]\s?[2-9]\d{2}\s?\d{3}$/ // +93 AA XXX XXX
};

// Example validation function
function validateAfghanPhone(number, type) {
  const cleanedNumber = number.replace(/\s/g, ''); // Remove spaces before validation
  return patterns[type].test(cleanedNumber);
}

// Example formatting function (Mobile) - 9 digits
function formatAfghanMobile(number) {
  const cleanedNumber = number.replace(/\s/g, '');
  if (!patterns.mobile.test(cleanedNumber)) {
      return "Invalid Number"; // Or throw an error
  }
  return cleanedNumber.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3');
}

// Example formatting function (Landline) - 9 digits
function formatAfghanLandline(number) {
  const cleanedNumber = number.replace(/\s/g, '');
  if (!patterns.landline.test(cleanedNumber)) {
      return "Invalid Number"; // Or throw an error
  }
  return cleanedNumber.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3');
}

// Example conversion to international format
function toInternationalFormat(number) {
  const cleaned = number.replace(/\s/g, '').replace(/^0/, '');
  return `+93 ${cleaned}`;
}


// Example usage
console.log(validateAfghanPhone("079 123 456", "mobile")); // true
console.log(formatAfghanMobile("079123456")); // "079 123 456"
console.log(toInternationalFormat("020 2001234")); // "+93 20 2001234"

// Example test case where validation might fail (incorrect prefix)
console.log(validateAfghanPhone("080 123456", "mobile")); // false – handles incorrect prefix

// Example test case for 9-digit compliance
console.log(validateAfghanPhone("070 1234567", "mobile")); // false – rejects 10-digit format

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

  • Input Sanitization: Remove whitespace and special characters before validation
  • Format Flexibility: Accept numbers with or without spaces, but enforce a consistent format for storage and display
  • Error Handling: Provide specific error messages for validation failures and implement graceful fallbacks
  • Stay Updated: Refer to official ATRA documentation at https://atra.gov.af/ and the ITU-T E.164 National Numbering Plan for the latest information. ATRA is working towards a digitally transformed Afghanistan by 2030.

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:

  • AWCC (070, 071) – Afghan Wireless Communication Company, launched 2002, covers all 34 provinces
  • Roshan (072, 079) – 6.5 million active customers, covers 287+ districts across 34 provinces
  • Etisalat (073, 078) – Launched August 2007, serves 34 provinces and 200+ districts with 12,000+ retail outlets (100% owned by Etisalat UAE, $300M+ invested)
  • MTN (076, 077) – 6+ million subscribers as of 2023
  • Afghan Telecom Salaam (074, 075) – Fixed line and wireless services under 25-year license

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):

  • Population Coverage: 85% via 4,760 active towers (Ministry of Communications and Information Technology)
  • Mobile Connections: 22.3 million (55% of population, January 2025, DataReportal Digital 2025)
  • Broadband Connections: 80.9% of connections use 3G, 4G, or 5G networks (GSMA Intelligence, 2025)
  • 4G Availability: Users on Roshan, Etisalat, and AWCC spend 50%+ of time with 4G connection (Opensignal 2023)
  • Network Availability: Etisalat and AWCC achieve 85–87.5% availability (3G or 4G connection, Opensignal 2023)
  • Download Speeds: Etisalat leads at 3.3 Mbps average download speed (Opensignal 2023)

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 with 0 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 mobile 079 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:

  • AWCC (operator codes 070, 071) - launched 2002
  • Roshan (079, 072) - 6.5M customers
  • Etisalat (078, 073) - launched 2007
  • MTN (077, 076) - 6M+ subscribers
  • Afghan Telecom Salaam (075, 074)

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 use 07X XXXXXXX (operator code + subscriber digits), per ITU-T E.164 Communication 7.II.2017. Mobile numbers always start with 07, while landlines start with 0 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.

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.