---
id: "tw_national_id"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["TW"]
langs: ["zh"]
quality: 75
url: "http://registry.apicrafter.io/datatype/tw_national_id"
---

# Taiwanese national identification number (`tw_national_id`)

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

Taiwanese national identification number: a letter, the digit 1 or 2 for sex, and eight digits, the last of which is a check digit.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Taiwan (TW)
- Languages: Chinese (zh)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z][12]\d{8}$
```

## Mappings

- dpv: `pd:OfficialID`
- purview: `Taiwan National ID`, `Taiwan national identification number`

## Supported by tools

- `awsglue`
- `azureailanguage`
- `microsoftpurview`
- `nightfall`

## Sources

- doc: <https://learn.microsoft.com/en-us/purview/sit-defn-taiwan-national-identification-number>
- wikipedia: <https://en.wikipedia.org/wiki/National_identification_card_(Taiwan)>

## Quality

Score 75/100. Missing: examples, negative example, translation.

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