Japan Corporate Number Generator
Generate 13-digit Japanese Corporate Numbers (法人番号) with the leading NTA 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
The NTA's own number
7000012050002Valid — leading check digit 7 matches the mod-9 resultThe National Tax Agency publishes this number for itself, so it is a reliable worked example.
Wrong leading check digit
6000012050002Invalid — leading check digit is 6 but the other 12 digits require 7Only 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
Choose the Corporate Number option
The tool is pinned to Japan Corporate Number, which uses 13 digits with the check digit in position 1.
Generate a value
Click Generate to create one 13-digit number with the leading check digit computed over the other 12 digits.
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
| Part | Rule |
|---|---|
| Length | 13 digits |
| Position 1 | Check digit |
| Positions 2-13 | 12-digit body assigned from the registry |
| Check rule | 9 − (weighted sum mod 9), weights 1 and 2 alternating from the right |
| Visibility | Public — 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
Related tools
Japan My Number Generator
Generate synthetic 12-digit Japanese My Number values with the official mod-11 check digit, and validate pasted numbers.
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.