Learn how to obtain your HES code as a foreigner in Turkey. We explain how to fix common system errors and ensure you can travel between cities without issues.
Understanding the HES Code for Foreigners
Turkey used the HES code for foreigners to track COVID-19 cases during the pandemic. Most of those rules are gone now. But some government offices still ask for it. You might also need it for your own travel records. If you're a tourist or a resident having trouble, I'll show you how to fix it.
If you need a closer look here, see Understanding the HES Code.
Common Reasons for HES Code Errors
It's common to see an error when you try to get your code. Most people make simple mistakes. Here are the main reasons why the system might reject your request:
- Wrong Nationality Code: Use the three-letter ISO code. For example, use GBR for the UK or USA for the States.
- Passport Number Mismatch: Type it exactly as it looks in your passport. Don't add extra spaces.
- Name Spelling: Turkish systems don't like special characters. Use the letters from the bottom strip of your passport page.
- Entry Records: The system won't see you if the border police didn't log your entry right.
How to Get a HES Code via SMS
Don't have a Turkish residence permit yet? SMS is your fastest option. You'll need a Turkish SIM card for this. Or, use a roaming plan that lets you text Turkish numbers.
SMS Format for International Travelers
Send a text to 2023. Use this exact format:
HES [Nationality Code] [Passport Number] [Year of Birth] [Surname]
Example: HES USA 123456789 1985 SMITH
Put one space between each word. If it works, you'll get a text back with your code and when it expires.
Using the Hayat Eve Sığar Mobile App
You can find the Hayat Eve Sığar app on the App Store or Google Play. It creates a QR code. This is much easier to scan when you're visiting public buildings.
Steps for App Registration:
- Download and open the app.
- Pick the 'Foreigner' option when you log in.
- Enter your passport details and where you're from.
- Type in the verification code they text to your phone.
- Tap 'Generate HES Code'. You can choose how long you want it to last.
Getting a HES Code via e-Devlet
Do you have a Turkish ID number starting with 99? Then use the e-Devlet portal. It's the best way for residents to manage their documents.
- Log in to the e-Devlet portal with your ID and password.
- Search for 'HES Kodu Üretme'.
- Click 'Yeni HES Kodu' to make a new one.
- Choose yourself or your kids and hit 'Devam Et'.
Troubleshooting Your HES Code for Foreigners
Sometimes the system just won't work. Don't worry yet. Try these quick fixes to get back on track.
Check Your Entry Stamp
The system checks your arrival date with the Ministry. If you just landed, wait 24 hours. The database needs time to update. Also, check your visa. If it's expired, the system might block you automatically.
Contact Local Authorities
Still stuck? Head to a local health clinic (Sağlık Ocağı). Or, visit a migration office (Göç İdaresi). They can check your passport by hand. They'll help you get a HES code for foreigners if the digital system fails you.
Getting a HES code for foreigners is usually simple. But tech glitches happen. Follow these steps and you'll have your code in no time.
Related Articles
- residence permit in Turkey
- how foreigners get HES code
- get HES code with passport
- What You Need to Register / Steps to Create Your Card
If you need a closer look here, see Related Articles.
Frequently Asked Questions
About Hamit Ekşi
Expert real estate consultant specializing in Turkish Citizenship by Investment programs. Helping international investors find their dream properties in Turkey.
🌍 Read in Your Language
Subscribe to our Newsletter
Get the latest updates on Turkish real estate market and citizenship programs.


