Brazil CEP Postal Code Validator

Validate Brazilian CEP postal codes format and region

Ad placeholder (leaderboard)

Validate a Brazilian CEP and find its region instantly

The CEP (Código de Endereçamento Postal) is Brazil’s eight-digit postal code. At checkout, a malformed CEP breaks shipping-rate calls and address autofill. This validator confirms the format and, from the leading digits, tells you which state or area the code belongs to — without any network request.

How it works

A CEP is structured NNNNN-NNN. The leading digits are meaningful: Correios divides the country into ten macro-regions by the first digit, then subdivides by the next digits. The tool:

  1. Strips non-digits and confirms exactly eight digits are present.
  2. Re-formats the value as NNNNN-NNN.
  3. Reads the first two digits as a prefix and matches it against the published Correios range table to identify the state (UF) and area.

For example, prefixes 0105 are São Paulo capital, 2023 are Rio de Janeiro capital, and 9099 are Rio Grande do Sul.

Example and notes

The CEP 01310-100 (Avenida Paulista, São Paulo) has prefix 01, so the tool reports SP, São Paulo capital. A code like 90010-150 has prefix 90, mapping to Rio Grande do Sul.

Treat the region result as a strong hint, not a precise address. Prefix ranges identify the state reliably, but the exact street and neighbourhood require the official Correios lookup. Some prefixes legitimately cover more than one state, which the tool shows as a grouped UF.

Ad placeholder (rectangle)