esc
ID checkers

身份证15位转18位:
Old 15-digit China ID to 18 digits

Type an old 15-digit 身份证号码 to get the 18-digit number, for HR, bank and database clean-up. Type an 18-digit one to get the old form.

More tools for China Other countries

How to use 身份证15位转18位

  1. 01Type the 15 digitsSpaces are fine.
  2. 02Copy the 18 digitsWith the check code.
  3. 03Check the dateRegion and birthday shown.
Front and back of an ID card on one sheet of paper

110105491231002 → 11010519491231002X.

Numbers issued under the 1989 standard had a 2-digit birth year and no check code. GB 11643-1999 made the year four digits and added the MOD 11-2 check code. The tool does exactly that and shows the working.

身份证15位转18位 for HR systems, bank records and spreadsheets that still hold old numbers. The rule comes from GB 11643-1999, which replaced the 1989 standard: the birth year gets four digits and a check code is added.

From 15 digits to 18

Example: 110105 491231 002 becomes 110105 19491231 002, and the check code of those 17 digits is X, so the 18-digit number is 11010519491231002X, the standard’s own example.

  1. Keep the first six digits (the region code).
  2. Put 19 in front of the 2-digit birth year.
  3. Keep the birth month, day and the 3-digit sequence.
  4. Work out the check code with MOD 11-2 and add it at the end.

Going back to 15 digits

If an old database needs the 15-digit form, type the 18-digit number. The tool checks its check code, removes the 19 from the year and drops the last character. Numbers of people born in 2000 or later, and foreigners’ permanent residence IDs, never had a 15-digit form.

When the result may differ from the card

The conversion assumes the person was born in the 1900s. The 1989 standard reserved special sequence numbers for people aged 100 or over, whose birth year may be in the 1800s. The number printed on the 18-digit card is always the official one.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

How do I convert by hand?

Insert 19 after the first six digits, then add the check code: multiply the 17 digits by 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2, add, divide by 11, and look up the remainder in 1 0 X 9 8 7 6 5 4 3 2.

Is the result my official number?

It is what the arithmetic gives, and for most people it matches the card. The number printed on your 18-digit card is the official one, so use that when they differ.

What about people born before 1900?

The old standard gave people aged 100 or more special sequence numbers, and their year may be 18xx. For them, check the birth year on the card.

Is the number sent anywhere?

No. The number is checked in your browser and nothing you type is sent to a server or saved.

Can I do this in Excel?

Yes: insert "19" with a text formula and compute the check code with the weights 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2. This page shows the working, so you can test a formula against it.

Does the region code change when upgrading?

The conversion keeps the same six digits, as the tool does.