Skip to content

Phone Number ReactCountry-aware phone input for React

Headless hook that handles country selection, digit normalization, calling codes, mask patterns, and phone validation — no masking library needed.

Phone Number React Logo
INTERACTIVE HOOK DEMO

Try the usePhoneNumber hook live

Select a country and type numbers to see hook state variables update in real-time.

Hook State (phone)

phone.selectedCountryIndia (IN)
phone.callingCode+91
phone.localPhone""
phone.mask+91 ##### #####
phone.formattedPhone+91 ...
phone.isValidfalse

MIT License. Copyright Er Amit Gupta