# Egyptian Phone Number Format (+20): Validation Rules for Developers

> How Egyptian mobile numbers are written locally and in E.164, the valid prefixes, a validation regex you can copy, and the input mistakes that break SMS delivery.

Source: https://resalax.com/resources/egypt-phone-number-format/
Language: English · Category: Egypt & MENA · Updated: 2026-11-09
Publisher: Resalax (https://resalax.com)

Wrongly formatted numbers are one of the most common reasons SMS to Egypt fails. The fix is simple once you know the rules, and it is much cheaper to validate at signup than to pay for messages that never arrive.

## Local format vs international format

Egyptian mobile numbers have 11 digits when dialled inside Egypt, always starting with `01`:

- Local: `010 1234 5678`
- International (E.164): `+20 10 1234 5678`, stored as `+201012345678`

The rule that catches most teams: **drop the leading 0 when you add `+20`**. A number stored as `+2001012345678` has one digit too many, and networks will reject it.

## Valid mobile prefixes

After `+20`, an Egyptian mobile number has exactly 10 digits and starts with one of these:

| After +20 | Local prefix | Originally assigned to |
|---|---|---|
| 10 | 010 | Vodafone |
| 11 | 011 | Etisalat Misr |
| 12 | 012 | Orange |
| 15 | 015 | WE |

Because of number portability, the prefix tells you the original network, not the current one. Use it for validation only. More on that in our [guide to Egypt's mobile networks](https://resalax.com/resources/egypt-mobile-networks-guide/).

## A validation regex you can copy

For a number already normalized to E.164:

```
^\+20(10|11|12|15)\d{8}$
```

For raw user input, normalize first, then validate:

```js
function normalizeEgyptianMobile(input) {
  let digits = input.replace(/\D/g, '')        // keep digits only
  if (digits.startsWith('0020')) digits = digits.slice(4)
  else if (digits.startsWith('20') && digits.length === 12) digits = digits.slice(2)
  if (digits.startsWith('0')) digits = digits.slice(1) // drop the trunk 0
  const e164 = `+20${digits}`
  return /^\+20(10|11|12|15)\d{8}$/.test(e164) ? e164 : null
}
```

This accepts the forms people actually type: `01012345678`, `010 1234 5678`, `+20 10 1234 5678`, `00201012345678`, and `201012345678`.

## Input mistakes to design for

- **Typing the leading 0 after selecting +20.** Very common. Strip it silently instead of showing an error.
- **Pasting a full international number** into a field that already has a country selector. Detect the `+` and remove the duplicated country code.
- **Arabic-Indic digits.** Some Arabic keyboards type `٠١٠١٢٣٤٥٦٧٨`. Convert `٠–٩` to `0–9` before validating, or your regex will reject a correct number.
- **Spaces, dashes, and brackets.** Strip them; never make the user remove them.

For a general approach that works for every country, see [E.164 formatting and validation](https://resalax.com/resources/phone-number-validation-e164/).

## Landlines are not mobile numbers

Egyptian landlines use area codes, such as `02` for Cairo and `03` for Alexandria, and cannot receive SMS. If your form accepts any Egyptian number, an OTP sent to a landline simply fails. Validate for mobile prefixes only when the number will receive messages.

## Store one canonical format

Store every number in E.164 (`+201012345678`) and format it for display only when you show it, for example `+20 101 234 5678`. Comparing, deduplicating, and looking up users all become reliable when there is only one stored form.

## Show users what you understood

After normalization, show the formatted number back on the confirmation screen ("We sent a code to +20 101 234 5678"). Users spot their own typos quickly, and you avoid a support ticket about a code that went to the wrong person.

> Resalax rejects numbers that are not valid E.164 before sending, so malformed numbers fail fast instead of costing you a message. [See how it works](https://resalax.com/).
