County codes in CNP: How to identify the region of origin

County codes in CNP: How to identify the region of origin

In a world where most processes are digitized, verifying and validating personal data have become routine operations for companies. Whether we are talking about software applications, ERP systems, HR platforms, or online forms, entering a valid Personal Numeric Code (CNP) is the first step toward the accurate processing of information.

For this reason, the platform VerificareCNP.ro provides a series of free tools that simplify the verification, testing, and understanding of a CNP structure.

1. CNP Validator

The most widely used tool is the one that checks whether a personal numeric code complies with the official legal and mathematical structure. The system automatically analyzes the following elements:

  • The exact length of the code;

  • Date of birth;

  • Gender of the person;

  • Encoded county;

  • Control digit.

This tool is useful for both regular users and developers who wish to quickly verify whether a code is structurally valid. You can test this functionality directly via this online CNP validator.

2. CNP Generator for Testing

In software development and application testing, using real data is not recommended for security and GDPR compliance reasons. Therefore, the CNP generator creates mathematically valid values, ideal for:

  • Software development and programming;

  • QA testing and quality assurance;

  • Populating demo databases with data;

  • Forms and internal applications;

  • Presentations and technical documentation.

The generator produces codes intended exclusively for testing and must not be used to identify a real person. For your projects, you can access a CNP generator for test data.

3. Bulk Validation for Large Lists of Records

Companies often process entire lists of data containing hundreds or thousands of records. Instead of manually verifying each code, the bulk validation tool allows the simultaneous analysis of multiple CNPs. This automated workflow is useful for:

  • Internal data audits;

  • Database migration to new platforms;

    County Codes in the CNP: How You Can Identify the Region of Origin

    The Personal Numeric Code (CNP) is the main identifier for Romanian citizens and contains important information about the individual to whom it belongs. In addition to the holder's date of birth and gender, the CNP also includes a code indicating the county or region where the birth was registered.

    This code is located in positions 7 and 8 of the CNP and can be used to identify the corresponding county.

    List of County Codes in the CNP

    Code County
    01 Alba
    02 Arad
    03 Argeș
    04 Bacău
    05 Bihor
    06 Bistrița-Năsăud
    07 Botoșani
    08 Brașov
    09 Brăila
    10 Buzău
    11 Caraș-Severin
    12 Cluj
    13 Constanța
    14 Covasna
    15 Dâmbovița
    16 Dolj
    17 Galați
    18 Gorj
    19 Harghita
    20 Hunedoara
    21 Ialomița
    22 Iași
    23 Ilfov
    24 Maramureș
    25 Mehedinți
    26 Mureș
    27 Neamț
    28 Olt
    29 Prahova
    30 Satu Mare
    31 Sălaj
    32 Sibiu
    33 Suceava
    34 Teleorman
    35 Timiș
    36 Tulcea
    37 Vaslui
    38 Vâlcea
    39 Vrancea
    40 Bucharest
    41 Sector 1 Bucharest
    42 Sector 2 Bucharest
    43 Sector 3 Bucharest
    44 Sector 4 Bucharest
    45 Sector 5 Bucharest
    46 Sector 6 Bucharest
    47 Călărași
    48 Giurgiu

    How to Identify the County from a CNP?

    Let's take the following example:

    1980522080012

    Positions 7 and 8 are 22, which indicates Iași County. Thus, the person's birth was registered in this county.

    It is important to note that this code reflects the place of birth registration and not necessarily the person's current domicile.

    Bucharest – A Special Case

    Romania's capital benefits from several dedicated codes. In addition to the general code 40, each sector of the municipality of Bucharest has its own code:

    • 41 – Sector 1
    • 42 – Sector 2
    • 43 – Sector 3
    • 44 – Sector 4
    • 45 – Sector 5
    • 46 – Sector 6

    This system allows for a more precise identification of the registration area.

    Why Is Verifying the County in a CNP Useful?

    Identifying the county can be useful in numerous situations:

    • verifying data entered into a form;
    • validating databases;
    • developing and testing software applications;
    • statistical and demographic analysis;
    • verifying the consistency of information associated with a CNP.

    In combination with the date of birth, gender, and control digit, the county code is one of the essential components used to validate a Romanian CNP.

    If you want to automatically verify the region associated with a CNP, you can use the county identification tool available on VerificareCNP.ro, which instantly decodes the information contained within the code.

  • Verifying import files;

  • Data cleansing before integration into an ERP or CRM system.

Automating these checks significantly reduces processing time and minimizes human data-entry errors. For processing large lists, you can use the service for bulk validation of multiple CNPs simultaneously.

4. County Identification by CNP

Positions 7 and 8 in the structure of a CNP represent the code of the county where that specific personal numeric code was issued. The dedicated tool allows for quick identification of the county or sector of the municipality of Bucharest. This function is useful for educational purposes as well as for developing applications that automatically interpret the geographical structure of a CNP.


Why Are These Tools Useful for Your Activity?

Each of these solutions satisfies a different need, but together they form a complete suite for properly working with CNPs. Whether you are a software developer, HR specialist, or data analyst, these tools can help you save time and significantly reduce the risk of errors in your company’s systems.

All features run directly in the browser without requiring installation and are available free of charge on VerificareCNP.ro. The platform is constantly updated with new options and articles dedicated to digitization, data security, and the correct usage of CNPs in modern applications.