Phone Number Regex

Phone number regex patterns for international E.164, US and UK numbers, tested live. Free and private: runs in your browser.

Pick a format and paste numbers to test them.

Runs entirely in your browser. Nothing you paste is uploaded or stored.

Use cases

  • Find a syntax error before the build or deploy fails.
  • Check config files in code review.
  • Learn the rules your linter enforces.

Frequently asked questions

How should I store phone numbers?

In E.164 format (+14155552671): one canonical form per number makes de-duplication and SMS APIs simple.

Is the Phone Number Regex free?

Yes. It is free with no sign-up, and it runs entirely in your browser, so your input is never uploaded or stored.

What should I do with the issues it reports?

Fix high-severity items first; they usually break builds or deployments. Lower-severity items are style and best-practice suggestions.

Related tools

Checking one snippet is a start. Scan your whole repository for free with CodeInspector.

All free developer tools