Taiwan National ID Validator

Verify a ROC National ID number and decode its embedded district and gender.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Taiwan’s National Identity Card (國民身份證, guómín shēnfèn zhèng) is the primary government-issued identifier for all Republic of China citizens. The card number is a 10-character string printed on the front of every ROC ID card and used across government portals, bank account applications, healthcare systems, tax filings, and any process requiring verified identity in Taiwan. This validator checks the number’s full internal structure — format, gender digit, and the official Ministry of Interior checksum — in your browser, with no data uploaded anywhere.

What the 10 characters mean

A valid Taiwan National ID looks like A123456789 (a clearly fake example — every real number must pass the checksum). Each section carries specific information:

PositionContentExample
1Issuance district letter (A–Z)A = Taipei City
2Gender digit (1 = male, 2 = female)1
3–97-digit serial (region sequence)2345678
10Weighted check digit9

The letter in position 1 was assigned when the ID was first issued and reflects the household registration district at that time — someone with an “A” prefix originally registered in Taipei City, even if they have since moved elsewhere. Common prefixes include A (Taipei City), B (Taichung City), E (Kaohsiung City), F (New Taipei City), and H (Taoyuan City).

How the checksum is computed

The ROC Ministry of Interior uses a weighted digit-sum algorithm:

  1. Map the letter to a two-digit value: A = 10, B = 11, … Z = 35.
  2. Split that value: tens digit (always 1) is weighted ×1; units digit is weighted ×9.
  3. Weight the body digits at positions 2–9 with descending weights 8, 7, 6, 5, 4, 3, 2, 1.
  4. Sum all nine weighted products.
  5. Compute the check digit: (10 − (sum mod 10)) mod 10.
  6. The final character (position 10) must equal this computed check digit.

Worked example

Take the fictional ID A234567890 (deliberately constructed to show the arithmetic):

  • A → 10; tens digit 1 × 1 = 1; units digit 0 × 9 = 0
  • 2 × 8 = 16, 3 × 7 = 21, 4 × 6 = 24, 5 × 5 = 25, 6 × 4 = 24, 7 × 3 = 21, 8 × 2 = 16, 9 × 1 = 9
  • Sum = 1 + 0 + 16 + 21 + 24 + 25 + 24 + 21 + 16 + 9 = 157
  • Check digit = (10 − (157 mod 10)) mod 10 = (10 − 7) mod 10 = 3
  • The number above ends in 0, not 3, so it would fail the checksum.

The tool performs exactly this arithmetic instantly for any ID you enter.

Formula note

The algorithm is a straightforward mod-10 weighted checksum, not a cryptographic hash. It was designed to catch single-digit transcription errors and most transpositions but is not collision-resistant. Because the full letter-to-weight mapping and the weights are published in government standards, it is possible to construct numbers that pass the check but are not genuine government-issued IDs — validation here is strictly mathematical. The only authoritative source for whether a number is genuinely registered is the Ministry of the Interior’s National Household Registration database, which is not publicly queryable.

Ad placeholder (rectangle)