DevTools Logo

Egypt National ID Generator

Egypt National ID Generator

Generate 14-digit Egyptian national ID numbers with century, birth date and governorate — 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 national ID

    Input
    EG NID · Generate
    Output
    29001010112345

    Century 2, birth date 1990-01-01 and governorate 01 (Cairo); the sequence is female.

    Reject month 13

    Input
    29013011234567
    Output
    Invalid — birth month 13 (digits 4-5)

    The month digits must be 01–12 and the day must exist in that month.

    Reject an unknown governorate

    Input
    29001019934567
    Output
    Invalid — unknown governorate code 99

    Only the codes on the documented list are accepted, and 88 is reserved for births abroad.

    About this tool

    The Egypt National ID Generator produces one 14-digit national ID in the layout the Civil Status Organization documents: a century digit, a YYMMDD birth date, a two-digit governorate code, a four-digit sequence, and a final check digit.

    The first digit is 2 for 1900–1999 and 3 for 2000–2099. The governorate code maps to an Egyptian governorate, with 88 reserved for people born outside Egypt. The last of the four sequence digits is odd for men and even for women. The 14th check digit algorithm is not public, so the validator confirms the structure, the birth date and the governorate only and says so in its output.

    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 national ID. Everything runs locally in your browser.

    What this tool does not do

    • The final check digit is not verified because its algorithm is not published.
    • Validation cannot confirm that a number is assigned or that it belongs to a person.
    • The tool accepts the documented governorate codes only, so any newer code needs a manual sample.
    • A generated value can coincide with a real national ID.

    How to use this tool

    1. Open the national ID generator

      The tool is pinned to the 14-digit Egyptian national ID, so there is no option to choose.

    2. Generate a value

      Click Generate to create one number with a real birth date, a governorate code and a gender digit.

    3. Copy or validate

      Copy the ID 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

    Fill Egyptian onboarding mocks with a value that carries a real birth date and governorate.

    Derived-field tests

    Check that your form derives gender or governorate from the ID instead of asking for them.

    Negative-path tests

    Use an invalid month or governorate to confirm each structural rejection is reachable.

    Egyptian national ID layout

    DigitsMeaning
    1Century: 2 = 1900s, 3 = 2000s
    2–7YYMMDD birth date
    8–9Governorate code; 88 = born outside Egypt
    10–13Sequence; last digit odd = male, even = female
    14Check digit — algorithm not public, not verified

    The validator names the failing part, such as an invalid month or an unknown governorate.

    Common mistakes

    Mistake:Treating the check digit as verifiable

    Fix:The algorithm is not public, so the tool checks structure, date and governorate only.

    Mistake:Reading the governorate from the wrong digits

    Fix:Digits 8–9 hold the governorate, not the last two digits of the birth date.

    Mistake:Assuming digit 14 encodes gender

    Fix:Gender comes from the parity of digit 13, the last sequence digit.

    Frequently asked questions

    Are these real Egyptian national IDs?

    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.

    Is the 14th digit verified?

    No. The check digit algorithm is not public, so the validator confirms the structure, birth date and governorate only.

    What does the first digit mean?

    It marks the century: 2 for 1900–1999 and 3 for 2000–2099, followed by a YYMMDD birth date.

    What is governorate code 88?

    It is reserved for people born outside Egypt; every other accepted code maps to an Egyptian governorate.

    How is gender encoded?

    The last of the four sequence digits, digit 13, is odd for men and even for women.