Brazil Phone Number Validator

Validate any Brazilian phone number against ANATEL E.164 rules — area code, mobile 9th digit, and line type decoded instantly.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Brazil is the fifth-largest country in the world by population, and its mobile market is one of the largest on the planet — with over 250 million active SIM cards. Every Brazilian subscriber number is governed by ANATEL (Agência Nacional de Telecomunicações), the federal telecoms regulator, which assigns DDD area codes to regions and mandates the overall numbering structure. Validating a Brazilian phone number correctly requires checking three independent rules: the total digit count, the assigned DDD, and the correct leading digit depending on whether the line is mobile or landline.

This tool applies all three rules in real time, decodes the DDD to its state or region, labels the line type, and outputs both the international E.164 form and the conventional Brazilian local format. Everything runs in your browser — no number you enter is ever sent anywhere.

How Brazilian phone numbers are structured

A Brazilian national number contains either 10 digits (landline) or 11 digits (mobile). The first two digits are always the DDD — the Discagem Direta a Distância area code. ANATEL has assigned 67 DDDs, each tied to a specific metropolitan area or state region.

After the DDD comes the subscriber number:

Line typeSubscriber digitsFirst digit after DDDTotal national digits
Mobile (celular)9Must be 911
Landline (fixo)8Must be 2, 3, 4, or 510

In international E.164 format, Brazil’s country code +55 is prepended, making the full number 12 digits (landline) or 13 digits (mobile) including the plus sign.

The nono dígito rule explained

Before 2012, Brazilian mobile numbers had only 8 subscriber digits — the same length as landlines. As subscriber growth pushed some DDDs toward exhaustion, ANATEL introduced the nono dígito (ninth digit): a mandatory leading 9 is prepended to every mobile subscriber number. The rollout was completed across all DDDs by 2016, so today any valid Brazilian mobile number is always 11 national digits with the subscriber portion starting with 9.

The algorithm used here:

  1. Strip the +55 prefix if present.
  2. Take the first two digits as the DDD and look them up in the ANATEL table.
  3. If 11 national digits remain, treat the line as mobile and verify the third digit is 9.
  4. If 10 national digits remain, treat the line as landline and verify the third digit is in the set {2, 3, 4, 5}.
  5. Reject all-zero subscriber portions and any digit outside the allowed ranges.

Worked example

Input: (11) 9 8765-4321

After stripping formatting: 11987654321 — 11 digits.

  • DDD: 11 → São Paulo capital region (ANATEL-assigned, valid).
  • Remaining subscriber: 987654321 — 9 digits, starts with 9.
  • Line type: mobile, nono dígito present.
  • Local format: (11) 9 8765-4321
  • E.164: +5511987654321

Input: 021 3456-7890

After stripping and recognising 0 as a dial-out prefix: national digits are 2134567890 — 10 digits.

  • DDD: 21 → Rio de Janeiro capital region (valid).
  • Remaining subscriber: 34567890 — 8 digits, starts with 3.
  • Line type: landline.
  • Local format: (21) 3456-7890
  • E.164: +552134567890

Privacy and limitations

Privacy: every calculation runs in JavaScript inside your browser tab. No number you enter is ever transmitted, logged, or stored.

Limitations: this tool verifies format and structure only. It cannot confirm whether a number is currently active, assigned to a real subscriber, ported to a different carrier, or reachable. Only a carrier-level HLR or number-portability lookup — which requires a live network query to a telco database — can confirm live status.

Ad placeholder (rectangle)