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

# Swedish postal code (`se_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.

Postal code (postnummer) in Sweden: five digits, written as three digits, a space and two digits.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Sweden (SE)
- Languages: Swedish (sv)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-9]\d{2} ?\d{2}$
```

## Examples

- `111 20` — Stockholm
- `211 20` — Malmö
- `11120` — written without the space
- `011 20` (invalid example)

## Mappings

- fta: `POSTAL_CODE.POSTAL_CODE_SE`
- stdnum: `se.postnummer`

## Supported by tools

- `fta`
- `pythonstdnum`

## Translations

- ru: Почтовый индекс Швеции

## Sources

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

## Quality

Score 100/100.

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