Skip to contentRedact PII for your data. Get a quote

Coverage · Taiwan

Taiwanese national ID detection and redaction

OpenAnonymizer finds the Taiwanese national ID number in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.

At a glance

Country
Taiwan TW
Format
national ID number國民身分證統一編號
Placeholder
TW_NATIONAL_ID1Each distinct value gets its own number: TW_NATIONAL_ID_1, TW_NATIONAL_ID_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying citizens of Taiwan in household registration, health insurance and public services.

About the national ID number

The number is a letter for the place of first registration, then nine digits. The first digit gives the sex (1 for men, 2 for women) and the last is a check digit.

A123456789 is a well-known example that passes the check.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
身分證字號: A123456789
Out
身分證字號: TW_NATIONAL_ID1

How OpenAnonymizer handles it

Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.

  • It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
  • Every package ships every detector, so this format is covered in each of them.
  • It covers 34 languages.
How a match is decided