Skip to main content
  • Home
  • >
  • International Telephone Input Validation

International Telephone Input Validation

By Twilio

  • Verify
  • Twilio
  • Quick Deploy
  • Applications

This project will show you one way to validate phone number inputs with the intl-tel-input plugin and Twilio's Lookup API. For a production use case we recommend adding phone verification, which is a best practice for collecting phone numbers from your users in order to make sure they have control of the number.

phone number input translated to e.164 format

How it works:

  1. User selects their country from the drop down and enters their phone number
  2. App validates phone number validity with the Twilio Lookup API
  3. App displays the phone number in E.164 format

For more information, check out this blog post on building international phone number input.

Launch and test this app in a few minutes with Quick Deploy. No server needed. Quick Deploy will automatically configure and deploy this app using Twilio Functions. Learn more about Twilio Functions
Step 1:Log in to Twilio
Step 2:Deploy your application and try it out!
Deploy this application
This will use the details entered above to deploy your application to Twilio Functions. You will be able to view the application in the browser and edit it using the Functions UI. Learn more about Twilio Functions
Deploying applicationThis might take up to a minute
Success! Your application has been deployed.
Oops...something went wrong. Retry
Step 3:View and edit your application
Once deployed, any changes to the fields above will not be applied to your app. To make changes, here are two options
Refresh the page, edit customizations and re-deploy the application
Edit your customizations directly in code
Why use Quick Deploy?
No coding required to launch
Easy to edit and iterate post launch
No server management
Scales automatically
Secure by default

Don't see what you want? Request a code sample Explore Docs

Questions about scaling, pricing, or which products/features to use? Get a consultation

There was an issue loading the page.

Please try again in some time.