Phone number parser

    Parse and validate a phone number, and format it for international use.

    Loading tool…

    About the phone number parser

    Parses a phone number with Google's libphonenumber rules, reporting whether it is valid and possible, the country, the national number and formatted E.164, international, national and tel: URI forms. Numbers without a country code are interpreted using the default country you set.

    Frequently asked questions

    What is the difference between valid and possible?

    Possible means the length is plausible for the country. Valid means the number also matches a real assigned prefix range. A number can be possible but not valid.

    How should I store phone numbers?

    In E.164 — a plus sign and up to fifteen digits, no spaces or punctuation. It is unambiguous worldwide and lets you format for display in any local convention later.

    Often used alongside