Home🇹🇼 TaiwanNational Identification Card Number

National Identification Card Number generator (Taiwan)

A Taiwanese national ID number is one letter and nine digits — a region letter, a sex digit (1 or 2), a serial, and a weighted checksum digit. These test values are synthetic but checksum-valid.

Synthetic · not collision-guaranteed Validate a number →
Q159926746

Synthetic Taiwanese ID with a valid check digit. Not a real issued number.

Format specification

IdentifierNational Identification Card Number
Country🇹🇼 Taiwan
FormatA000000000
Length10 characters
ChecksumWeighted MOD 10
ExampleS191363358
Safe strategy Synthetic
Data qualityVerified against sources

National Identification Card Number: what each part means

A Region of first household registration (e.g. A = Taipei City); each letter maps to a two-digit value in the checksum.
0 Sex: 1 = male, 2 = female.
0000000 Seven-digit serial number.
0 Check digit: letter value (tens ×1, units ×9) plus the digits weighted 8 down to 1; the total must end in 0.

Validation regex

Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()

^[A-Z][12]\d{8}$

References

  1. en.wikipedia.org/wiki/National_identification_card_(Taiwan)

Common questions

Will these pass my validation?

Yes — they are well-formed National Identification Card Number values (A000000000) and pass standard format checks, including the Weighted MOD 10 checksum.

Could one belong to a real person?

These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.

Can I generate many at once?

Increase the count, or use the free API and CSV/JSON export for large datasets.

Validate an existing number →

For software testing only. These numbers are synthetic and must never be used for real-world identification, applications, or to impersonate anyone.