CEP (Brazilian ZIP Code) Generator and Validator
Generate plausible CEPs by Brazilian region and validate the format of a CEP.
Generate plausible CEPs by Brazilian region and validate the format of a CEP.
The CEP (Código de Endereçamento Postal) is a numeric system created by
the Brazilian postal service (Correios) in 1972 to identify streets, localities,
buildings and postal services in Brazil. It consists of 8 digits in the
format NNNNN-NNN, where the first 5 digits identify the region/sector and
the last 3 identify the sub-sector and suffix.
The CEP is widely used in e-commerce, logistics, registration and delivery systems to determine the destination address. Unlike the CPF and CNPJ, the CEP has no check digit — there is no mathematical calculation that confirms whether a CEP exists; the only way to verify that is by consulting the Correios' official database.
The first digit of the CEP determines the broad coverage region, according to the Correios' official table:
| 1st digit | Region |
|---|---|
0 | Greater São Paulo |
1 | São Paulo countryside |
2 | Rio de Janeiro and Espírito Santo |
3 | Minas Gerais |
4 | Bahia and Sergipe |
5 | Pernambuco, Alagoas, Paraíba and Rio Grande do Norte |
6 | Ceará, Piauí, Maranhão, Pará, Amazonas, Acre, Amapá and Roraima |
7 | Distrito Federal, Goiás, Tocantins, Mato Grosso, Mato Grosso do Sul and Rondônia |
8 | Paraná and Santa Catarina |
9 | Rio Grande do Sul |
This tool validates only the format of the CEP — it checks whether the supplied value has exactly 8 numeric digits, which is the minimum requirement for a plausible CEP. It does not confirm whether the CEP exists in the Correios' database, nor does it return the corresponding street address. To look up a real CEP, use the public ViaCEP API or the official Correios website.
Likewise, the CEPs generated by this tool are numerically plausible (they respect the first-digit range of the selected region), but may not correspond to any real address — they are useful for filling form fields in development and testing environments.
No. Unlike the CPF and CNPJ, the Brazilian CEP has no check digit. This means any sequence of 8 digits is "mathematically valid" — there is no calculation that detects an incorrect CEP without consulting the Correios' database. Validation here is format-only (8 numeric digits).
Not necessarily. The generated CEPs are plausible (they respect the first digit of the chosen region), but the remaining digits are random. It is possible for a generated CEP to coincide with a real address, but that is purely coincidental. For tests that require real CEPs, use a curated list of known CEPs or consult the Correios.
While developing systems that have address fields, it is common to need fictitious CEPs to fill in test forms, populate development databases, test front-end validations or simulate registrations without using real user data.
No. The tool automatically removes any hyphen or space before validating — you can
paste the CEP with or without the NNNNN-NNN mask.