esc
ID checkers

身分證字號驗證:
Taiwan ID and 統一證號

Type a 身分證字號 or 統一證號 to check its check code and see the region, gender and type it encodes.

More tools for Taiwan Other countries

How to use 身分證字號驗證

  1. 01Type the number1 letter + 9 digits.
  2. 02See the resultValid or not.
  3. 03Read the partsRegion, gender, type.
Front and back of an ID card on one sheet of paper

A123456789: total 130, valid.

The first letter becomes a 2-digit number, then the 11 digits are weighted 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1 and the total must be divisible by 10. Since 2021, resident certificates use the same pattern with 8 or 9 as the second digit, and the tool checks those too.

身分證字號驗證 follows one rule for national ID numbers and, since 2021, for resident certificate numbers too. This page walks through the 身分證檢查碼 calculation, the letter table, what the second and third digits mean, and the 2021 change to the 統一證號 format that older checkers still get wrong.

The check code, step by step

Example A123456789: A becomes 1 and 0, giving 1 0 1 2 3 4 5 6 7 8 9. The products are 1, 0, 8, 14, 18, 20, 20, 18, 14, 8 and 9, which add up to 130. 130 is divisible by 10, so the number passes.

  1. Turn the first letter into its 2-digit number: A = 10, B = 11, C = 12 … but I = 34, O = 35, W = 32, X = 30, Y = 31 and Z = 33.
  2. Write the two digits of that number, then the 9 digits of the ID: 11 digits in all.
  3. Multiply them by 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1.
  4. Add up the products. The number is valid if the total is divisible by 10.

What the letters and digits mean

  • First letter: the city or county of first registration, for example A 臺北市, F 新北市, E 高雄市. L, R and S belonged to counties merged in 2010 and are no longer issued.
  • Second digit on a national ID: 1 male, 2 female.
  • Second digit on a new resident certificate: 8 male, 9 female.
  • Third digit on a new resident certificate: 0–6 foreign national, 7 national without household registration, 8 Hong Kong or Macau resident, 9 mainland China resident.
  • Last digit: the check code.

The 2021 新式統一證號

Until 1 January 2021, resident certificates (居留證) had 2 letters and 8 digits, such as FA12345689. Many shopping, ticketing and hospital sites only accepted the national ID pattern, so foreign residents couldn’t register. From 2 January 2021 the National Immigration Agency issues 1 letter and 9 digits instead, following the national ID’s coding principle, with 8 or 9 as the second digit.

The check code is calculated in the same way as a national ID. The problem is that many validators also insist the second digit is 1 or 2, and so reject a valid number such as one starting A8 or F9. This checker accepts 1, 2, 8 and 9. Old two-letter numbers can be used until the end of 2030, and the tool checks them with their own rule: the second letter is converted with the same table and only its last digit is used.

For developers

  • Accept [A-Z][1289][0-9]{8} for current numbers, and [A-Z]{2}[0-9]{8} if you still need old resident numbers.
  • Apply the weighted sum to all of them; don’t treat the second digit as a gender flag only.
  • Never store a full ID number in logs or analytics just to validate it.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

Why does a website reject my new resident certificate number?

Numbers issued from 2 January 2021 have 8 or 9 as the second digit. Older checkers only accept 1 or 2 there. The check code itself works the same way as a national ID, so this tool accepts both.

Does it check the old two-letter resident numbers?

Yes. For a number like FA12345689, the second letter is converted with the same table and only its last digit is used. Old numbers can be used until the end of 2030.

Does a valid result mean the ID exists?

No. It means the check code fits the other characters. The tool doesn’t look anything up, so it can’t tell whether a number was issued or whose it is.

Is the number sent anywhere?

No. Everything runs in your browser.

Why are I and O worth 34 and 35?

The letter table isn’t simply alphabetical: I, O, W, X, Y and Z have their own fixed values. The tool uses the standard table, so you don’t need to remember it.

Can I type just the first 9 characters?

Yes. Type the letter and 8 digits and the tool shows the last digit that makes the number valid.

Does this check the 統一編號 of a company?

No. A company’s 8-digit 統一編號 has a different rule. Use the 統一編號驗證 tool on this site.