Prefixyr.com
China ☎️ Landline / Geographic

Area Code 21 – Shanghai

The phone area code for Shanghai is 21 (international format +8621). Browse local exchange codes (NXX) and carrier assignments below.

Current Local Time
11:34:09
Asia/Shanghai • UTC +08:00
Full Dialing Format
+8621
Population 24,874,500
👥
Admin Region Shanghai
🗺️
Elevation 12m
🏔️
GPS Coordinates 31.2222, 121.4581
📍

📍 Geographic Location of Shanghai

Overview of Area Code +86 21

Area code 21 is the National Destination Code (NDC) assigned to Shanghai, a province-level municipality and one of China's most significant economic and financial hubs. Under the ITU-T E.164 international numbering plan, the full international dialing format for Shanghai is +86 21 XXXX XXXX, where +86 is the country calling code for China and the subsequent eight digits represent the local subscriber number. Domestically, callers within China dial 021 XXXX XXXX, while international callers must replace the trunk prefix 0 with the country code, resulting in +86 21 XXXX XXXX.

Geographic Coverage and Administrative Jurisdiction

Unlike many area codes that cover a broader region, the 21 NDC is exclusively allocated to the Shanghai Municipality, which includes the central urban districts (e.g., Huangpu, Xuhui, Jing'an, Pudong) and surrounding suburban districts (e.g., Minhang, Baoshan, Jiading). This single-code allocation reflects Shanghai's status as a directly administered municipality, eliminating the need for multiple area codes within its boundaries. Consequently, all fixed-line numbers in Shanghai share the same NDC, simplifying dialing procedures for both local and external callers.

Dialing Procedures and Number Format

Local calls within Shanghai are made by dialing the eight-digit subscriber number directly, without the area code. For example, a local call to a number such as 1234 5678 requires only those eight digits. To call a Shanghai number from elsewhere in China, you must dial 021 followed by the eight-digit number (e.g., 021 1234 5678). International callers should dial +86 21 followed by the eight-digit number (e.g., +86 21 1234 5678). It is essential to omit the leading 0 of the domestic trunk prefix when dialing from abroad.

Overlay and Numbering Considerations

Currently, Shanghai does not have an overlay area code; the 21 code is the sole NDC for the entire municipality. However, due to the high demand for telecommunication services, the eight-digit subscriber number space provides ample capacity. In some cases, mobile numbers in Shanghai are often mistaken for geographic numbers, but mobile numbers in China always begin with prefixes like 13x, 15x, 18x, etc., and are not tied to a specific geographic area. Therefore, a number starting with +86 21 is definitively a fixed-line number.

Practical Guidance for Callers

  • Local callers in Shanghai: Dial the 8-digit subscriber number directly.
  • Domestic callers outside Shanghai: Dial 021 + 8-digit subscriber number.
  • International callers: Dial your country's exit code (e.g., 00 or 011) + 86 + 21 + 8-digit subscriber number.

Always verify the subscriber number length, as Shanghai numbers are strictly eight digits. This consistency aids in accurate dialing and reduces call routing errors.

❓ Frequently Asked Questions

What is the international dialing format for a Shanghai landline?
To call a Shanghai landline from abroad, dial your country's exit code, then China's country code 86, then area code 21, followed by the 8-digit local number. For example: +86 21 1234 5678.
Do I need to dial 021 when calling Shanghai from another Chinese city?
Yes, if you are calling from outside Shanghai, you must dial the trunk prefix 0 followed by the area code 21, then the 8-digit number. For example: 021 1234 5678.
Are all numbers starting with +86 21 mobile numbers?
No, numbers starting with +86 21 are fixed-line (landline) numbers. Mobile numbers in China have prefixes like 13x, 15x, 18x, etc., and are not geographically tied.
Is there an overlay code for Shanghai?
No, Shanghai uses only area code 21 for all fixed-line numbers. There is no overlay code currently.
How many digits are in a Shanghai local phone number?
Shanghai local phone numbers consist of 8 digits. When dialed locally, you only need to dial these 8 digits; when dialed from outside, you add the area code 21 (or 021 domestically).