DevTools Logo

Taiwan National ID Generator

Taiwan National ID Generator

Generate Taiwanese national ID numbers (letter + 9 digits) with the MOI check digit — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates 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).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Generated national ID

    Input
    National ID · Generate
    Output
    A123456789

    Letter A, gender digit 2, and the final digit that makes the weighted sum divisible by 10.

    Lowercase input

    Input
    a123456789
    Output
    Valid — A123456789

    The parser uppercases the letter before applying the mapping.

    Wrong check digit

    Input
    A123456788
    Output
    Invalid — check digit is 8 but the first 9 characters require 9

    The 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

    1. Generate one national ID

      Click Generate to create a random area letter, a gender digit of 1 or 2, and the check digit.

    2. Copy the value

      Copy the 10-character result or download it as a .txt file.

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

    PartRule
    Length1 letter + 9 digits
    LetterHousehold registration area, mapped to a two-digit value
    Second character1 male, 2 female; 8 and 9 resident certificates since 2021
    Letter weightingTens digit × 1, units digit × 9
    Digit weightingNext eight digits × 8, 7 … 1
    ValidityTotal 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