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

Features

Smart defaults

  • Auto-select the user's country via IP lookup
  • Auto-generate an example placeholder for the selected country

Fast country picking

  • Search by typing a country's name
  • Keyboard navigation via up/down keys
  • High-resolution flag images

Formatting & output

  • Format the number as the user types
  • Users type a national number; you can store the standardised international number

Validation built in

  • Validate numbers, with specific error types
  • Optional strict mode: numeric-only input + max valid length

Global-ready

  • Translations in 40+ languages
  • RTL layout and alternative numeral set support

Accessible & typed

  • Accessibility provided via ARIA tags
  • TypeScript type definitions included

Customisable

  • Override CSS variables (e.g. for dark mode)
  • Lots of initialisation options + instance methods/events
  • React, Vue, Angular and Svelte components included

Playground presets

Jump straight into the Playground with some common configurations.

Or browse the docs and examples.

Testing

Browser testing via