---
id: "br_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["BR"]
langs: ["pt"]
quality: 100
url: "http://registry.apicrafter.io/datatype/br_postcode"
---

# Brazilian postal code (CEP) (`br_postcode`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Brazilian postal code (CEP, Código de Endereçamento Postal): eight digits, usually written as five digits, a hyphen and three digits.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Brazil (BR)
- Languages: Portuguese (pt)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^\d{5}-?\d{3}$
```

## Examples

- `01001-000` — Praça da Sé, São Paulo
- `01310-100` — Avenida Paulista, São Paulo
- `1001-000` (invalid example)

## Mappings

- fta: `POSTAL_CODE.POSTAL_CODE_BR`

## Supported by tools

- `amazonmacie`
- `fta`

## Translations

- ru: Почтовый индекс Бразилии (CEP)

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Postal_codes_in_Brazil>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/br_postcode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/geo/br_postcode.yaml>
