tools.junyo.dev

brazilian phone regex

Brazilian phone regex

Brazilian phone numbers are a strong programmatic case because they have local intent, their own format and an existing tool preset.

Approved intentTest a Brazilian phone regex with area code and optional ninth digit.

Available presetThe Regex Builder below already loads the “Phone (BR)” preset, with pattern, flags and samples ready to test.

Supported pattern

  • The preset accepts optional parenthesized area code, optional spacing, optional ninth digit, four digits, optional hyphen and four digits.
  • It validates shape, not line existence or carrier-specific operational rules.

Accepted examples

Formatted mobile

Input
(11) 99999-9999
Expected output
match

Area code + ninth digit.

Unformatted number

Input
11999999999
Expected output
match

Useful for normalized inputs.

Frequently asked questions

Does the regex validate that the phone exists?

No. Regex validates format. Existence requires an external service or SMS/WhatsApp confirmation.

Does it work for landlines?

Yes, the ninth digit is optional in the current preset.

We use aggregate analytics and manual ads only with consent. The tools keep working even if you decline.