The TC Kimlik No: How Turkey's 11-Digit Identity Number Is Checked
How the Turkish TC identity number is built and checked: 11 digits, no leading zero, the 10th and 11th check digits, foreigners' 99 numbers and forms.

The TC Kimlik No: How Turkey's 11-Digit Identity Number Is Checked
The TC identity number (TC Kimlik Numarası) is the key to almost every service in Turkey: e-Devlet, banks, hospitals, schools, tax and social security. Introduced in 2000, it has eleven digits, and the last two are check digits that catch nearly all typing mistakes. The Turkey TC Identity Number Validator applies the rules.
The structure
- 11 digits in total.
- The first digit cannot be 0.
- Digits 1 to 9 are the base number.
- Digit 10 is the first check digit.
- Digit 11 is the second check digit.
The number does not contain the date or place of birth, unlike some other national IDs.
The check rules
- Add the digits in odd positions 1, 3, 5, 7 and 9, and multiply the sum by 7.
- Add the digits in even positions 2, 4, 6 and 8.
- Subtract the second sum from the first. The result modulo 10 must be the 10th digit.
- Add the first ten digits. The result modulo 10 must be the 11th digit.
A worked example
Take 10000000146:
- Odd positions: 1 + 0 + 0 + 0 + 1 = 2; 2 × 7 = 14.
- Even positions: 0 + 0 + 0 + 0 = 0.
- 14 − 0 = 14; 14 mod 10 = 4, which is the 10th digit.
- First ten digits: 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 4 = 6, which is the 11th digit.
The number is valid. Changing the last digit to 7 makes it fail.
Foreign residents
Foreigners who live in Turkey receive a foreign identity number (yabancı kimlik numarası) that starts with 99 and follows the same check rules. Forms that reject numbers starting with 99 lock out foreign residents, so accept them.
Building it into forms
- Accept the number as text, not as a number, so leading characters and length are kept.
- Check the length, the first digit and both check digits as the user types.
- Show a clear message, such as "the 11th digit does not match".
- Repeat the checks on the server.
The make test values button produces numbers that pass both checks for use in automated tests. They are not real identities and must never be used as such.
Verification
A valid format does not mean the person exists or that the number belongs to the user. Authorised institutions verify identity through the KPS (Identity Sharing System); individuals can check their own data on e-Devlet. Never collect TC numbers just to check them against a name without a legal basis.
Data protection
The TC number is personal data under Turkey's Personal Data Protection Law (KVKK). Organisations must have a legal basis to collect it, inform the person, store it securely and limit access. Avoid printing full TC numbers on documents others can see; show only the last digits where possible.
Cleaning data
Old records often contain TC numbers stored in spreadsheets as numbers, which can lose digits or show in scientific format. Paste a column into the validator to find the bad ones, and correct them from the original documents.
Quick self-check
If you are unsure whether you copied a number correctly, run it through the validator before submitting a form. If it fails, compare it digit by digit with the ID card or e-Devlet record. The two check digits make it very unlikely that a wrong number passes by accident.
Limits
The validator checks the published structure and check digits only. It is not an identity check and not legal advice. The General Directorate of Population and Citizenship Affairs is the authority for TC numbers.



