DevTools Logo

Japan Corporate Number Generator

Japan Corporate Number Generator

Generate 13-digit Japanese Corporate Numbers (法人番号) with the leading NTA 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

    The NTA's own number

    Input
    7000012050002
    Output
    Valid — leading check digit 7 matches the mod-9 result

    The National Tax Agency publishes this number for itself, so it is a reliable worked example.

    Wrong leading check digit

    Input
    6000012050002
    Output
    Invalid — leading check digit is 6 but the other 12 digits require 7

    Only the first digit differs, which isolates the check-digit branch from the length check.

    About this tool

    The Japan Corporate Number Generator produces one 13-digit Corporate Number (法人番号) with a valid leading check digit. Unlike My Number, the check digit comes first: it is computed as 9 minus the weighted sum of the other 12 digits mod 9, with weights of 1 and 2 alternating from the right.

    Corporate numbers are assigned by the National Tax Agency and are public, unlike individual My Numbers. The corporate number registry publishes every registered company, so a generated value can coincide with a real, live company number. The validator checks the 13-digit length and the leading check digit, and reports the expected digit when a pasted value fails.

    These values are synthetic fixtures 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

    • The validator recomputes the check digit only; it does not query the corporate number registry.
    • Because corporate numbers are public, a generated value can coincidentally belong to an existing company.
    • Only the 13-digit Corporate Number is supported; individual My Numbers live in a separate tool.
    • Separators are ignored on input, so formatting differences are not reported.

    How to use this tool

    1. Choose the Corporate Number option

      The tool is pinned to Japan Corporate Number, which uses 13 digits with the check digit in position 1.

    2. Generate a value

      Click Generate to create one 13-digit number with the leading check digit computed over the other 12 digits.

    3. Validate or copy

      Switch to Validate to check a pasted number against the mod-9 rule, or copy the result and download it as .txt.

    Use cases

    Supplier master data

    Seed Japanese company records with 13-digit numbers that pass the NTA check before a real registry lookup.

    Invoice form tests

    Exercise corporate number fields on Japanese invoice and ordering forms without copying a live company's number.

    Checksum comparison

    Test your mod-9 implementation against 7000012050002 and a value with a changed first digit.

    Corporate Number structure

    PartRule
    Length13 digits
    Position 1Check digit
    Positions 2-1312-digit body assigned from the registry
    Check rule9 − (weighted sum mod 9), weights 1 and 2 alternating from the right
    VisibilityPublic — the corporate number registry lists every company

    The National Tax Agency's own number, 7000012050002, is a useful sanity check.

    Common mistakes

    Mistake:Expecting the check digit at the end

    Fix:Corporate numbers carry it first; the last 12 digits are the body.

    Mistake:Treating a generated number as unassigned

    Fix:Corporate numbers are public, so a random value can match a real registered company.

    Mistake:Confusing the check with My Number

    Fix:My Number uses mod 11 over 11 digits; the Corporate Number uses mod 9 over 12.

    Frequently asked questions

    Are these real Corporate Numbers?

    They are synthetic fixtures for QA and development, not company registrations. Because corporate numbers are public, a random value can coincide with a real registered company; never use one on real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how it is used.

    How is the Corporate Number check digit calculated?

    The first digit is 9 minus the weighted sum of the other 12 digits mod 9, with weights of 1 and 2 alternating from the right. The check digit always sits in position 1.

    What is the difference between My Number and the Corporate Number?

    My Number is a 12-digit individual identifier with the check digit last. The Corporate Number is 13 digits for legal entities, is public, and carries its check digit first.

    Is 7000012050002 a real number?

    Yes. It is the National Tax Agency's own published Corporate Number, which is why it works as a reliable worked example for the check rule.

    Does the tool check the corporate number registry?

    No. Validation recomputes the leading check digit only; it does not confirm that a company exists or that the number is currently registered.

    References & standards