Regex for International Phone Number
Matches international phone numbers in E.164 format. Supports an optional + prefix and 2-15 digits.
Pattern
/^\+?[1-9]\d{1,14}$/Pattern Breakdown
| Token | Explanation |
|---|---|
| ^ | Start of string |
| \+? | Optional plus sign |
| [1-9] | First digit must be 1-9 (no leading zero) |
| \d{1,14} | 1 to 14 more digits (total up to 15) |
| $ | End of string |
Test Examples
| Input | Match? |
|---|---|
| +14155551234 | Match |
| +442071234567 | Match |
| 61412345678 | Match |
| +0123456 | No match |
| abc | No match |
Common Use Cases
- International form validation
- SMS API input validation
- Phone number normalization
Variations
^\+\d{1,3}[-.\s]?\d{4,14}$With required + and country code separator
Other Regex Patterns
Want to test this pattern with your own data?
Open the Regex Tester