---
id: "br_state_code"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["geo", "government"]
country: ["BR"]
quality: 100
url: "http://registry.apicrafter.io/datatype/br_state_code"
---

# Brazilian state abbreviation (UF) (`br_state_code`)

> **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.

Two-letter abbreviation (sigla) of a Brazilian federative unit, such as SP for São Paulo or DF for the Federal District. ISO 3166-2:BR uses the same letters after BR-.

- Pattern of: `br_state`
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Brazil (BR)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:AC|AL|AM|AP|BA|CE|DF|ES|GO|MA|MG|MS|MT|PA|PB|PE|PI|PR|RJ|RN|RO|RR|RS|SC|SE|SP|TO)$
```

## Examples

- `SP` — São Paulo
- `RJ` — Rio de Janeiro
- `DF` — Distrito Federal
- `BR` (invalid example) — the country code, not a state

## Mappings

- fta: `STATE_PROVINCE.STATE_BR`

## Supported by tools

- `fta`

## Translations

- ru: Сокращение штата Бразилии

## Sources

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

## Quality

Score 100/100.

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