Validation

International Phone (E.164)

Validate phone numbers in ITU-T E.164 international format: a + sign followed by 2–15 digits, first digit non-zero.

Try it in RegexPro →

Available in

JavaScript / ECMAScript code

jsJavaScript
const re = new RegExp("^\\+[1-9]\\d{1,14}$", "");
const input = "+14155552671";
const match = input.match(re);
console.log(match ? match[0] : null);

Uses `String.prototype.match`, which returns the first match or null.

Pattern

regexengine-agnostic
^\+[1-9]\d{1,14}$

Raw source: ^\+[1-9]\d{1,14}$

How it works

^ anchors the start. \+ matches the required leading plus sign. [1-9] ensures the country code starts with a non-zero digit. \d{1,14} allows 1 to 14 additional digits for a total of 2–15 digits after the +, per E.164 spec. $ anchors the end.

Examples

Input

+14155552671

Matches

  • +14155552671

Input

+442071838750

Matches

  • +442071838750

Input

14155552671

No match

—

Common use cases

  • •SMS / WhatsApp API integration (Twilio, Vonage)
  • •International contact form validation
  • •Phone number normalization pipelines
  • •CRM data quality enforcement

Related patterns