DevTools Logo

Vietnam CCCD Number Generator

Vietnam CCCD Number Generator

Generate 12-digit Vietnamese citizen ID (CCCD) numbers with province, gender-century and birth-year digits — 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

    Generate a CCCD number

    Input
    VN CCCD · Generate
    Output
    001090012345

    Province 001 is Hà Nội, digit four is 0 (1900s male) and the birth year is 1990.

    Reject an unassigned province

    Input
    003090012345
    Output
    Invalid — 003 is not a province code

    Only the codes on the official list are accepted, so an invented province fails immediately.

    Read the birth year from digit four

    Input
    001190012345
    Output
    Valid — born 1990, female

    Digit 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

    1. Open the CCCD generator

      The tool is pinned to the 12-digit CCCD layout, so there is no option to choose.

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

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

    DigitsMeaning
    1–3Province or city code from the official list (001 = Hà Nội)
    4Gender and century: 0/1 = 1900s, 2/3 = 2000s; even = male, odd = female
    5–6Two-digit birth year
    7–12Six-digit serial
    Check digitNone — 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.