Country calling codes, national dialing prefixes and mobile number lengths for 245 regions, in CSV, JSON and Markdown.
Typing a phone number into a sign-up form goes wrong in a small number of predictable ways: a leading 0 that should have been dropped, a country code entered twice, or the wrong number of digits. This table lists what each region expects so you can check before you submit.
Generated 2026-10-02 from libphonenumber-js 1.13.14.
| Region | ISO | Calling code | National prefix | Mobile digits | Example (international) |
|---|---|---|---|---|---|
| United States (guide) | US | +1 | 1 | 10* | +1 201 555 0123 |
| United Kingdom (guide) | GB | +44 | 0 | 10 | +44 7400 123456 |
| France (guide) | FR | +33 | 0 | 9 | +33 6 12 34 56 78 |
| India (guide) | IN | +91 | 0 | 10 | +91 81234 56789 |
| Indonesia (guide) | ID | +62 | 0 | 9-12 | +62 812 345 678 |
| Brazil (guide) | BR | +55 | 0 | 10-11 | +55 11 96123 4567 |
| Spain (guide) | ES | +34 | - | 9 | +34 612 34 56 78 |
| Russia (guide) | RU | +7 | 8 | 10 | +7 912 345 67 89 |
| Thailand (guide) | TH | +66 | 0 | 9 | +66 81 234 5678 |
| Malaysia (guide) | MY | +60 | 0 | 9-10 | +60 12 345 6789 |
| Hong Kong SAR China (guide) | HK | +852 | - | 8 | +852 5123 4567 |
| Israel (guide) | IL | +972 | 0 | 9 | +972 50 234 5678 |
* mobile and landline numbers share the same ranges in this region, so the length applies to every number (North American Numbering Plan).
The full table is in docs/COUNTRIES.md. Machine-readable copies: data/countries.csv and data/countries.json.
- Calling code: the prefix you dial from abroad, written with
+. - National prefix: the digit you dial before a number inside the same country, for example
0in the UK or France. Drop it when you write the number with the calling code.06 12 34 56 78in France becomes+33 6 12 34 56 78, and07400 123456in the UK becomes+44 7400 123456. The US and Canada use1, which is the same digit as the calling code. - Mobile digits: the number of digits after the calling code (and without the national prefix) that a mobile number can have. A range such as
9-12means more than one length is valid. - Example: a sample number from libphonenumber for formatting purposes. It is not a real subscriber. Do not call or text it.
- Use E.164 when you store or send a number:
+, the calling code, then the digits, with no spaces, no brackets and no national prefix. The whole thing has at most 15 digits. - Do not type the calling code twice. If the form already shows a country selector, enter only the national digits.
- A calling code can belong to several regions.
+1covers the US, Canada and many Caribbean countries, and+7covers Russia and Kazakhstan. See docs/SHARED-CALLING-CODES.md. - Length is only a syntax check. A number can have the right length and still be unassigned, and a number can be valid but belong to a line type that a service refuses, such as a VoIP line.
Country guides on number format and what each country's services expect:
- United States
- United Kingdom
- France
- India
- Indonesia
- Brazil
- Spain
- Russia
- Thailand
- Malaysia
- Hong Kong SAR China
- Israel
Also: Non-VoIP vs VoIP numbers for SMS verification.
pnpm install
pnpm generateOutput is deterministic for a given libphonenumber-js version. To update, change the version in package.json and run the command again.
The tables are generated from the metadata in libphonenumber-js (MIT), which is derived from Google's libphonenumber (Apache-2.0). Country names come from the Unicode CLDR through the runtime's Intl.DisplayNames. See NOTICE.
The scripts and generated files in this repository are released under the MIT License. Phone number rules change; check the upstream project for the latest data.