.*RegexQuick

Phone Number Regex

Regex patterns for validating phone numbers in US, UK, and international formats. Multiple format variants.

^(\+1)?[-.\s]?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
//
0 matches

About this pattern

Phone number validation is one of the most common regex use cases and one of the trickiest because phone formats vary widely by country and convention. The pattern shown above handles US phone numbers in multiple formats: (555) 123-4567, 555-123-4567, 555.123.4567, +1 555 123 4567, and variations with different separators. For international numbers, consider using a library like libphonenumber instead of regex, as international formats are too diverse for a single pattern.

FAQ

Can one regex handle all phone number formats?

Not reliably. US numbers are relatively uniform, but international formats vary enormously. For production use, Google's libphonenumber library is the standard solution for international phone validation.

More patterns