Vietnam CCCD Number Generator
Generate 12-digit Vietnamese citizen ID (CCCD) numbers with province, gender-century and birth-year digits — 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
Generate a CCCD number
VN CCCD · Generate001090012345Province 001 is Hà Nội, digit four is 0 (1900s male) and the birth year is 1990.
Reject an unassigned province
003090012345Invalid — 003 is not a province codeOnly the codes on the official list are accepted, so an invented province fails immediately.
Read the birth year from digit four
001190012345Valid — born 1990, femaleDigit four of 1 marks a 1900s female, and the validator derives the birth year from digits four to six.
About this tool
The Vietnam CCCD Generator produces one 12-digit citizen identity number (Căn cước công dân) in the layout set out in Circular 07/2016/TT-BCA: a three-digit province code, one digit for gender and century, a two-digit birth year, and a six-digit serial.
The province code comes from the official list, so 001 is Hà Nội and 079 is Ho Chi Minh City, while an unassigned code such as 003 is rejected. Digit four encodes both gender and century: 0–1 are 1900s male and female, 2–3 are 2000s male and female. The number carries no check digit, so validation confirms that the province exists and that the birth year implied by digits four to six is not in the future.
These are synthetic values for QA and development: never use them on real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how generated data is used. A random value can coincidentally match a real CCCD. Everything runs locally in your browser.
What this tool does not do
- There is no check digit, so a single mistyped digit usually still passes validation.
- Validation cannot confirm that a number was issued or that it belongs to the person presenting it.
- Generated birth years stay between 1950 and 2008, so older and very recent cohorts need manual samples.
- The tool covers the 12-digit CCCD only; the older 9-digit CMND layout is not generated.
How to use this tool
Open the CCCD generator
The tool is pinned to the 12-digit CCCD layout, so there is no option to choose.
Generate a value
Click Generate to create one number with a real province code, a gender and century digit, and a birth year between 1950 and 2008.
Copy or validate
Copy the number to an identity fixture or download it as a .txt file, or switch to Validate to check a pasted value.
Use cases
Identity form fixtures
Populate Vietnamese KYC screens with a 12-digit value that passes the province and birth-year checks.
Province validation tests
Check that your backend rejects unassigned province codes without needing real citizen records.
Gender-field mapping
Exercise forms that derive gender or birth year from the CCCD instead of asking for them directly.
CCCD digit layout
| Digits | Meaning |
|---|---|
| 1–3 | Province or city code from the official list (001 = Hà Nội) |
| 4 | Gender and century: 0/1 = 1900s, 2/3 = 2000s; even = male, odd = female |
| 5–6 | Two-digit birth year |
| 7–12 | Six-digit serial |
| Check digit | None — structure only |
An unknown province code or a birth year in the future is rejected with the failing part named.
Common mistakes
Mistake:Looking for a checksum
Fix:The CCCD has no check digit; only the province code and the derived birth year can be verified.
Mistake:Assuming every three-digit code is a province
Fix:The official list is sparse, so codes such as 003, 005 and 007 do not exist.
Mistake:Reading digit four as a plain century digit
Fix:It combines century and gender, so 0 and 1 are 1900s and 2 and 3 are 2000s.
Frequently asked questions
Are these real Vietnamese CCCD numbers?
No. They are synthetic values for QA and development, never for real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how they are used.
How is the CCCD number structured?
Twelve digits: a three-digit province code, one digit for gender and century, a two-digit birth year, and a six-digit serial.
Does the CCCD carry a check digit?
No. Validation confirms that the province code exists and that the birth year derived from digits four to six is not in the future.
Why is province 003 rejected?
Only the codes on the official Circular 07/2016/TT-BCA list are valid, and that list is sparse, so 003 is unassigned.
What does digit four encode?
It combines century and gender: 0 and 1 are 1900s, 2 and 3 are 2000s, and even values mark men while odd values mark women.
Related tools
Vietnam Tax Code (MST) Generator
Generate synthetic Vietnamese tax codes (mã số thuế) with a mod-11 check digit, including 13-digit branch codes, 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.