Create validation patterns for US, UK, international

Check whether a phone number has a broad international digit shape.

freeworks offlinenothing uploaded
ToolPhone Regex
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

The pattern accepts an optional leading plus, country-code digits, and a bounded subscriber sequence while rejecting letters. It does not encode every national numbering plan or verify reachability.

  • Optional plus and broad digits fit common international displays.
  • Country-specific allocation is left to specialized numbering libraries.

Worked example

US phone number validation with area code
Get the regex pattern for US phone number validation
Input
											us
										
Output
												Phone Regex (us):

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

US phone number (with optional country code, area code)

Examples:
  (555) 123-4567
  +1-555-123-4567
  5551234567
											

When to use this

Signup forms, contact imports, and SMS API prechecks use phone patterns.

Edge cases

  • The plus sign is valid only at the beginning.
  • Display separators must be removed before API submission.
  • A shape-valid number may be unassigned or unreachable.

References