Area Code 21 – Shanghai
The phone area code for Shanghai is 21 (international format +8621). Browse local exchange codes (NXX) and carrier assignments below.
📞 Exchange Codes (NXX) for Area Code 21
Select a central office code to view local carrier data and detailed information
📍 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.