International Telephone Input
A JavaScript plugin for entering, formatting and validating international telephone numbers. React, Vue, Angular and Svelte components also included.
Type a number above to see the output here
Get started
Sponsored by
Use Twilio's API to build phone verification, SMS 2FA, appointment reminders, marketing notifications and so much more. We can't wait to see what you build.
Features
- Automatically select the user's current country using an IP lookup
- Automatically set the input placeholder to an example number for the selected country
- Navigate the country dropdown by typing a country's name, or using the up/down keys
- Automatically format the number as the user types
- Optionally, only allow numeric characters and cap the number at the maximum valid length
- The user types their national number, and the plugin gives you the full standardised international number
- Number validation, including specific error types
- High-resolution flag images
- Accessibility provided via ARIA tags
- Typescript type definitions included
- Easily customise styles by overriding CSS variables, e.g. support dark mode
- React, Vue, Angular and Svelte components also included
- Translations provided in over 40 languages, as well as support for RTL layout and alternative numeral sets
- Lots of initialisation options for customisation, as well as instance methods/events for interaction