Validate phone

Check an international phone number’s E.164 digit count and country-code shape.

freeworks offlinenothing uploaded
ToolPhone Validator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Spaces, hyphens, and parentheses are removed, the remaining value must begin with a non-zero digit, and the total count must be seven to fifteen digits. The check validates shape only and does not identify an assigned subscriber.

  • The fifteen-digit ceiling follows E.164.
  • Human separators are accepted before the international pattern is checked.

Worked example

Valid Phone (E.164)
Validate an international phone number in E.164 format
Input
											+1-555-123-4567
										
Output
												Valid phone number: +1-555-123-4567 (11 digits)
											

When to use this

SMS providers, contact databases, and two-factor enrollment forms validate phone strings.

Edge cases

  • A national number without a country prefix can have enough digits but still fail.
  • More than fifteen digits is invalid even with plausible separators.
  • A valid-looking number may be unassigned because no carrier lookup occurs.

References