DevTools Logo

Korea RRN Generator

Korea RRN Generator

Generate 13-digit South Korean Resident Registration Numbers with birth date and legacy check digit — 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

    Valid pre-2020-style RRN

    Input
    900101-1234568
    Output
    Valid — born 1 Jan 1990, gender digit 1 (man, 1900s), check digit 8

    The weighted sum over the first 12 digits produces 8, matching the final digit.

    Wrong check digit

    Input
    900101-1234567
    Output
    Invalid — check digit is 7 but the first 12 digits require 8. Numbers issued since October 2020 no longer carry this check digit.

    The message notes the 2020 change so a modern-format value is not mistaken for a broken older one.

    About this tool

    The Korea RRN Generator produces one Resident Registration Number (주민등록번호) in the YYMMDD-GNNNNNC layout. The first six digits are the birth date, the seventh digit carries gender and century (1 and 2 for people born in the 1900s, 3 and 4 for the 2000s, 5–8 for foreign residents), five digits follow as serial, and the last digit is the check digit computed as (11 − weighted sum mod 11) mod 10 with weights 2 through 9 then 2 through 5.

    That check digit only applies to older numbers. Since October 2020, newly issued RRNs drop the region digits and the check digit, and the last six digits are random, so a modern number cannot be validated this way. The generator therefore emits pre-2020-style numbers, and the validator checks the birth date for the selected century digit, the 13-digit length and the legacy checksum.

    These values are synthetic test data 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. Everything runs locally in your browser.

    What this tool does not do

    • Only pre-2020-style numbers can be generated and validated; post-2020 RRNs have no usable checksum.
    • The validator cannot confirm that a number was ever issued to a person.
    • Gender digits 5–8 are accepted as foreign-resident codes, but no real residency status is implied.
    • Separator handling covers spaces and hyphens only; other characters are reported as invalid.

    How to use this tool

    1. Choose the RRN option

      The tool is pinned to Resident Registration Number, using the YYMMDD-GNNNNNC layout and the legacy mod-11 check digit.

    2. Generate a value

      Click Generate to create one pre-2020-style number with a real birth date, a gender digit and a matching check digit.

    3. Validate or copy

      Switch to Validate to check the date and checksum of a pasted number, or copy the result and download it as .txt.

    Use cases

    Legacy system fixtures

    Populate Korean identity fields in staging with numbers that pass the pre-2020 checksum.

    Gender-digit branches

    Test that 1–4 select the right century and that 5–8 are treated as foreign-resident codes.

    Migration checks

    Contrast a legacy-format sample with a modern random-suffix one to confirm your service accepts both.

    RRN layout and gender digits

    PartMeaning
    Digits 1-6Birth date, YYMMDD
    Digit 71/2 = 1900s man/woman; 3/4 = 2000s; 5–8 = foreign residents
    Digits 8-12Serial digits
    Digit 13Legacy check digit, (11 − weighted sum mod 11) mod 10
    Post-2020 numbersNo region digits or check digit; the last six digits are random

    The generator only emits pre-2020-style numbers, because the validator's checksum applies to those.

    Common mistakes

    Mistake:Validating a post-2020 number by checksum

    Fix:New RRNs have random last six digits and no check digit, so a checksum failure is expected.

    Mistake:Reading the first six digits as YYMMDD only

    Fix:The birth century comes from digit 7; the same YYMMDD means different years for 1 and 3.

    Mistake:Treating the serial as region data

    Fix:The generator emits unassigned serial digits, not a real registration district.

    Frequently asked questions

    Are these real Korean RRNs?

    No. They are synthetic values for QA and development, never for real applications, KYC checks, tax filings, or identity documents. The structure is real, so a random value can coincide with an issued number; DevTools accepts no liability for how generated data is used.

    Why does the check digit only work for older numbers?

    Since October 2020, newly issued Resident Registration Numbers drop the region digits and the check digit, and the last six digits are random. The generator emits pre-2020-style values so the checksum still applies.

    What does the seventh digit mean?

    1 and 2 mark people born in the 1900s (man and woman), 3 and 4 mark the 2000s, and 5 through 8 mark foreign residents.

    How is the legacy check digit calculated?

    Take (11 minus the weighted sum mod 11) mod 10 over the first 12 digits, using weights 2 through 9 and then 2 through 5.

    Can I validate a modern, post-2020 RRN?

    Not by checksum. Modern numbers have random trailing digits and no check digit, so a checksum failure on one is expected rather than a sign of a bad value.