Korea RRN Generator
Generate 13-digit South Korean Resident Registration Numbers with birth date and legacy check digit — synthetic test data only
For Development & Testing Purposes Only - Synthetic Mock Data
Settings
1 valueGenerates 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).
Examples
Valid pre-2020-style RRN
900101-1234568Valid — born 1 Jan 1990, gender digit 1 (man, 1900s), check digit 8The weighted sum over the first 12 digits produces 8, matching the final digit.
Wrong check digit
900101-1234567Invalid — 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
Choose the RRN option
The tool is pinned to Resident Registration Number, using the YYMMDD-GNNNNNC layout and the legacy mod-11 check digit.
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.
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
| Part | Meaning |
|---|---|
| Digits 1-6 | Birth date, YYMMDD |
| Digit 7 | 1/2 = 1900s man/woman; 3/4 = 2000s; 5–8 = foreign residents |
| Digits 8-12 | Serial digits |
| Digit 13 | Legacy check digit, (11 − weighted sum mod 11) mod 10 |
| Post-2020 numbers | No 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.
Related tools
Korea Business Registration Number Generator
Generate synthetic 10-digit South Korean Business Registration Numbers (사업자등록번호) with the NTS weighted check digit.
VAT Number Generator
Generate VAT numbers for EU, UK, Switzerland, Norway and global tax integration testing.
Tax Number Generator
Generate valid tax identification numbers for testing (TR, US, SG, etc.)
National Identity Generator
Generate and validate national ID numbers for testing (TR, US, DE, UK, SA, AE, QA, KW, CA, ES, BR, FR, IT, NL, SE, NO, EG, SG)
Tax ID Validator
Auto-detect and validate VAT, EIN, TIN and GST identifiers with batch checksum reporting.