Vietnam Citizen ID (CCCD) Number Decoder

Paste one or more 12-digit citizen identity numbers and see, for each, the province or city code, the sex and century from the fourth digit, the year of birth from the next two digits, and whether the structure is valid. Nothing is looked up online.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste

    Paste the numbers.

  2. 2
    Province

    Read the province code.

  3. 3
    Sex

    Read the sex and century.

  4. 4
    Year

    Read the year of birth.

  5. 5
    Check

    Note any invalid numbers.

About this tool

Vietnam's citizen identity card, căn cước công dân, now called căn cước under the Identity Law 2023, carries a 12-digit personal identification number that stays with a person for life. The structure is public, set out by the Ministry of Public Security in Circular 59/2021/TT-BCA. The first three digits are the code of the province or centrally run city where the person's birth was registered, for example 001 for Hà Nội, 048 for Đà Nẵng and 079 for Hồ Chí Minh City. The fourth digit encodes both sex and the century of birth: 0 for a man and 1 for a woman born in the 20th century, 2 and 3 for the 21st century, 4 and 5 for the 22nd, and so on. The fifth and sixth digits are the last two digits of the year of birth. The last six digits are a random number. Because the structure is fixed, it is easy to read the province, sex and year of birth from a number, which helps people check that a form or a registration has been filled in consistently, and helps developers validate input. It cannot confirm that a number has been issued or belongs to a particular person, which only the national population database can do. The provinces merged in 2025 still keep their original codes in existing numbers. This decoder works entirely in your browser. Paste one or more 12-digit numbers, one per line. For each, the tool shows the province or city for the code, the sex and century from the fourth digit, the year of birth, and flags numbers with the wrong length, an unknown province code or an impossible year. Nothing is sent anywhere.

Structure of the number

| Digits | Meaning | |---|---| | 1–3 | Province or city of birth registration | | 4 | Sex and century (0/1: 1900s, 2/3: 2000s) | | 5–6 | Year of birth (last two digits) | | 7–12 | Random number |

Worked example

For 001095012345, 001 is Hà Nội, 0 means a man born in the 20th century and 95 gives 1995. For 079301009876, 079 is Hồ Chí Minh City, 3 means a woman born in the 21st century, and 01 gives 2001.

What it cannot do

A valid structure does not prove that a number exists or matches a person; use the VNeID app or official channels to verify identity.

Older 9-digit IDs

The older chứng minh nhân dân had 9 digits with a different structure and is no longer valid; this decoder reads only 12-digit numbers.

For developers

Check the length, the province code and that the year is not in the future; store and display numbers carefully, because they are personal data under Decree 13/2023 on personal data protection.

Personal tax and social insurance codes

Since 2025 the citizen ID number also serves as the personal tax code and the social insurance number for most people.

Privacy

Your data stays in your browser; nothing is looked up online.

Limits

Decodes the structure only. Not identity verification or legal advice.

Worked example

001095012345 → Hà Nội, male, 1995; 079301009876 → Hồ Chí Minh City, female, 2001.

Quick facts

Frequently asked questions

What do the first three digits mean?

The province or city where the birth was registered.

How is sex encoded?

In the fourth digit: even for male, odd for female, with the century.

Can I find the year of birth?

Yes, digits five and six with the century from digit four.

Does it check the number online?

No, it only reads the structure.

Does it read old 9-digit IDs?

No, only 12-digit numbers.

Is my data uploaded?

No.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages