Taiwan National ID Generator
Generate Taiwanese national ID numbers (letter + 9 digits) with the MOI check digit — synthetic test data only
For Development & Testing Purposes Only - Synthetic Mock Data
Settings
1 valueGenerates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.
Generated value
No value yet
Set options, then press Generate.
Generated values are valid in shape but randomized (Test Data).
Examples
Generated national ID
National ID · GenerateA123456789Letter A, gender digit 2, and the final digit that makes the weighted sum divisible by 10.
Lowercase input
a123456789Valid — A123456789The parser uppercases the letter before applying the mapping.
Wrong check digit
A123456788Invalid — check digit is 8 but the first 9 characters require 9The validator prints the digit the weighted sum requires.
About this tool
The Taiwan National ID Generator produces 10-character identification numbers: one letter for the household registration area plus nine digits. The second character is 1 for male and 2 for female, and 8 or 9 mark resident certificates issued to foreign residents since 2021 — the validator accepts those, but the generator emits citizen values only.
Each letter maps to a two-digit value: A=10 through H=17, I=34, J=18, O=35, W=32, X=30, Y=31, Z=33 and the rest in order. The tens digit is multiplied by 1, the units digit by 9, the next eight digits by 8 down to 1, and the final digit must make the total divisible by 10. Validation checks the letter, the gender digit and the checksum separately.
These are synthetic values for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.
What this tool does not do
- Validation checks the letter, the second character and the checksum, not real issuance.
- The generator never emits resident-certificate gender digits 8 or 9.
- Area letters are drawn from the full mapping, so a value can look real without being assigned.
- No household-registration lookup is performed.
How to use this tool
Generate one national ID
Click Generate to create a random area letter, a gender digit of 1 or 2, and the check digit.
Copy the value
Copy the 10-character result or download it as a .txt file.
Validate a pasted ID
Switch to Validate to check the letter mapping, the second character and the weighted sum.
Use cases
Taiwanese account forms
Fill ID fields with values that pass the letter and checksum rules.
Gender-digit branches
Test that your parser recognises 1 and 2 while still accepting 8 and 9 for resident certificates.
Letter mapping coverage
Exercise every area letter, including the out-of-order I, O, W, X, Y and Z values.
Taiwan ID structure
| Part | Rule |
|---|---|
| Length | 1 letter + 9 digits |
| Letter | Household registration area, mapped to a two-digit value |
| Second character | 1 male, 2 female; 8 and 9 resident certificates since 2021 |
| Letter weighting | Tens digit × 1, units digit × 9 |
| Digit weighting | Next eight digits × 8, 7 … 1 |
| Validity | Total plus the final digit divisible by 10 |
Resident certificate values (8 or 9) validate but are never generated.
Common mistakes
Mistake:Assigning letters sequentially from A
Fix:I, O, W, X, Y and Z break the alphabetical order and have their own values.
Mistake:Rejecting resident certificate numbers
Fix:8 and 9 in the second position are valid for foreign residents since 2021.
Mistake:Treating the letter as decoration
Fix:The letter contributes a two-digit value to the checksum.
Frequently asked questions
Are these real Taiwan IDs, and can I use them in production?
No. They are synthetic test values for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used.
How does the letter contribute to the check?
Each area letter maps to a two-digit value such as A=10 or I=34. The tens digit is multiplied by 1, the units digit by 9, and the remaining eight digits by 8 down to 1.
What does the second character mean?
1 marks male and 2 marks female. 8 and 9 are used on resident certificates issued to foreign residents since 2021; the validator accepts them but the generator does not emit them.
Why are I, O, W, X, Y and Z out of alphabetical order?
Those letters were assigned their numeric values later, so the mapping is not sequential. The validator uses the published values for each letter.
Is lowercase input accepted?
Yes. The validator uppercases the letter before applying the mapping and summing the digits.
References & standards
Related tools
Taiwan UBN Generator
Generate synthetic 8-digit Taiwanese Unified Business Numbers (統一編號) that pass the Ministry of Finance check, and validate pasted values.
VAT Number Generator
Generate VAT numbers for EU, UK, Switzerland, Norway and global tax integration testing.
Tax Number Generator
Generate valid tax identification numbers for testing (TR, US, SG, etc.)
National Identity Generator
Generate and validate national ID numbers for testing (TR, US, DE, UK, SA, AE, QA, KW, CA, ES, BR, FR, IT, NL, SE, NO, EG, SG)
Tax ID Validator
Auto-detect and validate VAT, EIN, TIN and GST identifiers with batch checksum reporting.