Vietnamese Citizen ID (CCCD) Validator
Validate the authenticity, format, and checksum of Vietnamese Citizen ID (CCCD).
About Vietnamese Citizen ID (CCCD) Validation
The Căn Cước Công Dân (CCCD) is Vietnam's national chip-based biometric identity card regulated by the Ministry of Public Security (BCA) under the 2024 Identity Law. As of January 1, 2025, legacy 9-digit CMND cards are decommissioned, making the 12-digit CCCD the sole valid civilian ID.
The 12-digit format consists of 4 segments: `[PPP][G][AA][NNNNNN]`. `PPP` (3 digits) represents the birth province code; `G` (1 digit) encodes century & gender (0=Male 20th C, 1=Female 20th C, 2=Male 21st C, 3=Female 21st C); `AA` (2 digits) is the birth year; and `NNNNNN` (6 digits) is a unique sequence.
Anatomy & Structure of CCCD (Citizen Identity Card) — Vietnam
The Vietnamese Citizen Identity Card consists of 12 digits in 4 parts:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 3 | Province / City Code | 3 digits | Place of registration code (001 to 096, e.g., 001=Hanoi, 079=HCMC) | 001 |
| 4 | Century & Gender | 1 digit | 20th c.: 0=M, 1=F; 21st c.: 2=M, 3=F; 22nd c.: 4=M, 5=F | 0 |
| 5 & 6 | Birth Year | 2 digits | Last two digits of birth year (YY) | 90 |
| 7 to 12 | Random Sequential Number | 6 digits | Unique sequence assigned by Ministry of Public Security (MPS) | 123456 |
Official CCCD Validation Rules (Law No. 59/2014/QH13)
Structural validation and decoding of Vietnamese CCCD:
- 1. Verify exact length of 12 numeric digits.
- 2. Validate 3-digit province code against Vietnam's 63 administrative divisions.
- 3. Validate century and gender digit (position 4: 0 to 9).
- 4. Decode complete 4-digit birth year from century and digits 5-6.