Skip to main content

Text: Phone Validator

Validate and format a phone number using libphonenumber. Emits the re-formatted number on phone and the detected ISO country code (e.g. "FR") on country.

There are two failure modes: a configured country code that is not a valid ISO code fails every record with an "invalid country code" error, while an input that cannot be parsed — or parses but is not a valid number — fails that record with an "invalid number" error.

Example
Force country code: "FR", Render Mode: International
Input: "0676171166" → phone: "+33 6 76 17 11 66", country: "FR"

Render Mode: E164
Input: "+33676171166" → phone: "+33676171166", country: "FR"

Parameters

Render Moderequired

How the parsed number is re-emitted (the editor preselects "Preserve original"):

  • Raw (shown as "Preserve original") — echo the original input untouched.
  • E164+33676171166.
  • International+33 6 76 17 11 66.
  • National06 76 17 11 66.
  • Rfc3966tel:+33-6-76-17-11-66.
Force country code (*optional)

ISO country code (e.g. FR) used to disambiguate inputs without a + country prefix. Leave empty to require the input to already include a country code.

Input

Phonerequired
The phone number to validate.

Output

Phone

The re-formatted phone number per Mode.

Country

The detected ISO country code (e.g. FR).