International · Validation

Japan My Number check digit validator.

マイナンバー(個人番号)チェックデジット検証

Check that a 12-digit My Number (個人番号) has the right check digit in its last position. Format and checksum only. Everything runs in your browser.

How it works: the first 11 digits are multiplied by fixed weights, summed, and reduced mod 11 to give the 12th digit (検査用数字). A remainder of 0 or 1 gives a check digit of 0.

Source: 平成26年総務省令第85号 art. 5; python-stdnum jp/in_.pyVerified 29 September 2026

Advertisement

Inputs

Enter 12 digits. Spaces and hyphens are ignored. Use a published test number rather than a real person's.

Result

Enter a My Number and press Check.

Advertisement

How the My Number check digit works

マイナンバー チェックデジットの計算方法

A My Number (個人番号, マイナンバー) has 12 digits. The last digit is a check digit (検査用数字) calculated from the first 11. The calculation is public: the number itself encodes no personal information.

The calculation
StepWhat happens
1Number the first 11 digits P11 (leftmost) down to P1 (rightmost of the 11)
2Weight Qn = n + 1 for n from 1 to 6, and n − 5 for n from 7 to 11. Left to right the weights are 6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2
3Add the products Pn × Qn, then take the remainder mod 11
4Check digit = 11 − remainder, or 0 if the remainder is 0 or 1

Example: the first 11 digits 62149832025 give a weighted sum of 180, a remainder of 4, and a check digit of 11 − 4 = 7, so 6214 9832 0257 (the published python-stdnum example) passes.

Checksum only, not an identity lookup

A passing result means only that the 12 digits are internally consistent. It cannot confirm that the number was ever issued, is currently in use, or belongs to anyone. Only Japanese authorities can do that.

Sources

Weights and formula: python-stdnum, stdnum/jp/in_.py, with the same method described on Japanese Wikipedia (個人番号), which cites 平成26年総務省令第85号 (Ministry of Internal Affairs and Communications ordinance No. 85 of 2014) article 5.

Checksum only — not an identity lookup

This tool checks the 12-digit format and mod 11 check digit entirely in your browser. It cannot confirm a number was issued or belongs to anyone, and it does not query any government system. Nothing you type is transmitted, stored, or logged.

What My Number is

My Number (個人番号, kojin bangō, also called the Individual Number) is the 12-digit number Japan assigns to each person who has a resident record. Japan’s Digital Agency describes it as a single number used for administrative procedures set by law, such as the social security system, the tax system and disaster response. The Digital Agency’s FAQ also says that seeing or leaking the number alone does not let someone complete a procedure or retrieve a person’s information, but that you should not post it on blogs or social media, because that may count as providing it to a third party and could violate the law. That makes a local, browser-only check useful: you can test whether a number was typed correctly without sending it anywhere.

The My Number Card is a separate thing: an ID card that can be used with the system. This page only checks the number itself, not any card, and it never contacts a government system.

How the check digit is calculated

The 12th digit is a check digit (検査用数字) calculated from the first 11. Using the weights in the open-source python-stdnum implementation, which follows the ministerial ordinance cited on Japanese Wikipedia, the steps are:

  1. Write the first 11 digits and give them the weights 6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2 from left to right.
  2. Multiply each digit by its weight and add the products.
  3. Take the sum modulo 11.
  4. If the remainder is 0 or 1, the check digit is 0; otherwise it is 11 minus the remainder.

Worked example, digit by digit

The python-stdnum example 6214 9832 0257 has the first 11 digits 62149832025.

Digit62149832025
Weight65432765432
Product3610412185618100610

The products add up to 180. 180 divided by 11 leaves a remainder of 4 (11 × 16 = 176), so the check digit is 11 − 4 = 7, which matches the 12th digit and the number passes. Change the last digit to anything else and it fails; python-stdnum’s own documentation shows 6214 9832 0258 being rejected. The remainder rule is worth remembering: whenever the sum leaves a remainder of 0 or 1, the check digit is 0, because 11 − 1 = 10 and 11 − 0 = 11 do not fit in one digit.

Common mistakes

  • Using a real person’s number to test. Use a published test number such as the one above, not a family member’s or customer’s.
  • Entering the wrong number of digits. A My Number has exactly 12 digits. Spaces and hyphens are ignored, but anything shorter or longer fails before the checksum is even tried.
  • Applying the weights from the wrong end. The weights 6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2 run from the leftmost digit; reversing them gives a different remainder.
  • Assuming a pass proves identity. Only the 12-digit consistency is checked. The number encodes no personal information, so a valid checksum tells you nothing about its holder or whether it was ever issued.

Other national identifiers with check digits are covered in the ID validators hub, including the Aadhaar validator, Taiwan ID validator and the Canadian SIN validator.

Frequently asked questions

What is a My Number check digit?

It is the 12th digit, calculated from the first 11 by multiplying them by the weights 6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2, adding the products and applying a modulo 11 rule. It exists to catch typing mistakes.

How do I calculate the check digit by hand?

Multiply each of the first 11 digits by its weight, add the products and divide by 11. If the remainder is 0 or 1 the check digit is 0; otherwise it is 11 minus the remainder. For 62149832025 the sum is 180, the remainder is 4 and the check digit is 7.

Does a valid My Number mean it belongs to someone?

No. The number encodes no personal information and a valid checksum only shows the 12 digits are internally consistent. Only Japanese authorities can confirm that a number was issued or who holds it.

Who gets a My Number?

The Digital Agency’s FAQ says it is a single 12-digit number for each person who has a resident record.

What is My Number used for?

The Digital Agency lists administrative procedures set by laws and ordinances, such as social security, tax and disaster response, including pensions, medical insurance and final tax returns.

Is it safe to share my My Number online?

The Digital Agency says not to post it on blogs or social media, because that may count as providing it to a third party and could violate the law. This validator runs in your browser and sends nothing.

Does the tool accept spaces or hyphens?

Yes. Spaces and hyphens are ignored, so 6214 9832 0257 and 621498320257 give the same result.

Advertisement