libphonenumber API

Switzerland Phone Number Format

Country code +41 · ISO CH

How to format, dial, and validate Switzerland phone numbers, with live examples.

Country Code

+41

National Prefix

0

International Prefix

00

Mobile Portability

Yes

Try it now

Pre-filled with a valid fixed line number for Switzerland. Edit it and click "Try It" to see the parsed result.

Number Types & Example Formats

Each Switzerland phone-number type supported by libphonenumber, with a real example formatted three ways.

Type Length National International E.164
Fixed Line 9 digits 021 234 56 78 +41 21 234 56 78 +41212345678
Mobile 9 digits 078 123 45 67 +41 78 123 45 67 +41781234567
Pager 9 digits 074 012 34 56 +41 74 012 34 56 +41740123456
Personal Number 9 digits 0878 123 456 +41 878 123 456 +41878123456
Premium Rate 9 digits 0900 123 456 +41 900 123 456 +41900123456
Shared Cost 9 digits 0840 123 456 +41 840 123 456 +41840123456
Toll Free 9 digits 0800 123 456 +41 800 123 456 +41800123456
UAN 9 digits 058 123 45 67 +41 58 123 45 67 +41581234567
VoiceMail 12 digits 0860 12 345 67 89 +41 860 12 345 67 89 +41860123456789

How to Dial Switzerland Numbers

From abroad

Dial +41 followed by the national number, dropping any leading 0.

Within Switzerland

Dial 0 before the local number to make a domestic call.

Dialing out of Switzerland

Dial 00 followed by the destination country code and number.

Area Codes

Browse Switzerland area codes with cities, timezones, and example numbers for each.

View Switzerland area codes →

Validate a Switzerland Number with the API

Send the number to the free libphonenumber API to get the parsed country, type, formatting, and validity.

Request
curl https://libphonenumberapi.com/api/phone-numbers/+41212345678

Frequently Asked Questions

What is the country code for Switzerland?

The international country code for Switzerland is +41. Use this prefix when dialing Switzerland numbers from another country.

How long is a Switzerland phone number?

Switzerland phone numbers are typically 9 digits, not including the +41 country code.

How do I dial a Switzerland phone number from abroad?

From abroad, dial +41 followed by the national number, dropping any leading 0. Within Switzerland, dial 0 before the local number.

How do I validate a Switzerland phone number programmatically?

Send a GET request to https://libphonenumberapi.com/api/phone-numbers/<number>. The free libphonenumber API returns the parsed country, format, type, and validity for any number — no API key required.