DevTools Logo

Japan My Number Generator

Japan My Number Generator

Generate 12-digit Japanese My Number (Individual Number) values with the official 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 My Number

    Input
    1234 5678 9018
    Output
    Valid — check digit 8 matches the mod-11 result

    The weighted sum over the first 11 digits leaves a remainder of 3, so the check digit is 11 − 3 = 8.

    Wrong check digit

    Input
    123456789017
    Output
    Invalid — check digit is 7 but the first 11 digits require 8

    Changing only the last digit gives a reliable negative case without breaking the length rule.

    Too short

    Input
    1234 5678 901
    Output
    Invalid — My Number has 12 digits; found 11

    Length is checked before the checksum, so truncated fixtures report the digit count.

    About this tool

    The Japan My Number Generator produces one 12-digit Individual Number (個人番号, My Number) test value with the check digit the system defines. The first 11 digits are random, and the 12th is derived from them: weights run 2, 3, 4, 5, 6, 7 and then 2, 3, 4, 5, 6 counted from the right, the weighted sum is taken mod 11, and the check digit is 0 when the remainder is 0 or 1 and 11 minus the remainder otherwise.

    Results are shown in the familiar 4-4-4 grouping, so a value reads like the number printed on a notification card. My Number is used in tax, social security and disaster-response administration, and the validator accepts digits with spaces or hyphens, enforces the 12-digit length and recomputes the check digit. When a pasted value fails, it says which digit was wrong and what the first 11 digits require, which makes the rejection easy to assert in a test.

    Every value here is synthetic test data for QA and development: never use it on real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how generated data is used. Generation and validation run locally in your browser.

    What this tool does not do

    • The generator only produces values that pass the format check; it cannot say whether a number exists or is in use.
    • Validation confirms the check digit only, so a coincidentally valid number can stand in for a real one.
    • The tool covers the 12-digit My Number only; the Corporate Number lives in a separate tool.
    • Spaces and hyphens are ignored, so separator mistakes are not reported.

    How to use this tool

    1. Choose the My Number option

      The tool is pinned to My Number, which uses 12 digits with the mod-11 check digit and the 4-4-4 display grouping.

    2. Generate a value

      Click Generate to create one 12-digit number whose final digit satisfies the official weighted mod-11 rule.

    3. Verify and copy

      Paste a value into Validate to see the check digit recomputed, then copy the result or download it as a .txt file.

    Use cases

    Resident form fixtures

    Fill My Number fields on Japanese onboarding forms with values that pass the check digit.

    Checksum regression tests

    Compare your own mod-11 implementation against 1234 5678 9018 and the deliberately broken variant.

    Rejection messages

    Exercise the length and check-digit branches separately with the two invalid samples.

    My Number structure and check rule

    PartRule
    Length12 digits, shown as 4-4-4
    BodyFirst 11 digits, generated at random
    Weights2, 3, 4, 5, 6, 7, 2, 3, 4, 5, 6 counted from the right
    Check digit0 if weighted sum mod 11 is 0 or 1, otherwise 11 minus the remainder
    ValidationDigits only, 12-digit length and the recomputed check digit

    Separators such as spaces and hyphens are ignored before the check.

    Common mistakes

    Mistake:Treating My Number as a public identifier

    Fix:It is an individual identifier; keep generated values in test data and never in shared fixtures that look real.

    Mistake:Computing the check digit from left to right

    Fix:The weights are applied by position counted from the right, starting with 2.

    Mistake:Rejecting a value because of its spaces

    Fix:The 4-4-4 grouping is presentation; separators are stripped before validation.

    Frequently asked questions

    Are these real Japanese My Numbers?

    No. Every value is synthetic test data for QA and development and cannot be used on real applications, KYC checks, tax filings, or identity documents; DevTools accepts no liability for how generated data is used.

    Can a generated My Number belong to a real person?

    Yes, it can. The 12-digit structure and check digit are the real ones, so a random value may coincide with an issued My Number. Keep generated values in test environments only.

    How is the My Number check digit calculated?

    Take the first 11 digits, weight them 2, 3, 4, 5, 6, 7 and then 2, 3, 4, 5, 6 from the right, sum the products, take the total mod 11, and use 0 if the remainder is 0 or 1, otherwise 11 minus the remainder.

    Does the 4-4-4 spacing matter?

    No. The groups are only a display convention; spaces and hyphens are stripped before the length and check-digit validation runs.

    Can I use a generated My Number in a tax filing?

    No. A generated value follows the check rule only and has no legal standing; real filings require the number issued to the person by the local authority.

    References & standards