If you live in the UK on a visa or under the EU Settlement Scheme, you will sometimes need to prove your right to work, rent a home or study. Since most immigration status is now held online as an eVisa, you cannot simply show a card or a sticker in your passport. Instead, you share your status with a short code. If you need to prove your right to work or rent in the UK, you will need to generate share code through the official online service.
A share code is a short code, usually nine characters long, that lets someone else view your immigration status online. You give the code and your date of birth to an employer or landlord, and they use the official checking service to see your permission. This guide explains what a share code is, when you need one, and how to create one step by step.
What Is a Share Code?
A share code is a one-time code that proves your immigration status to someone else. When you generate share code, the Home Office gives you a short code that is linked to your online status. The person you share it with can then see your right to work, rent or study, and how long your permission lasts.
The code does not give anyone access to your full immigration history. It only shows the information they need for the check, such as the type of status you hold and its expiry date. That makes it a safe way to prove your status without sharing your passport or other documents.
When Do You Need a Share Code?
Employers often ask you to generate share code before your first day at work. They are legally required to check that you have the right to work in the UK, and the share code is the simplest way for them to do it.
Landlords and letting agents may also ask for a code when you rent a home. Colleges and universities can ask for one when you enrol on a course. In each case, the person checking your status only needs the code and your date of birth. They cannot use the code for anything else.
What You Need Before You Start
Before you generate share code, make sure your passport or BRP details are up to date in your online account. The service will also send a security code to your phone or email, so make sure you can open your messages.
You will also need to know which document you used when you applied. This is usually your passport or national identity card. If your passport has been renewed since you applied, update your details first, or the service may not accept your old document.
How to Generate a Share Code Step by Step
Creating a code is quick and usually takes less than ten minutes. You do not need to visit an office or send anything by post.
Step 1: Go to the official service
To generate share code, go to the official GOV.UK service for proving your immigration status. Always use the official government website. The service is free, and you should never pay another website to create a code for you.
Step 2: Prove your identity
Sign in with your UKVI account details and confirm your identity document. The service will send a security code to your phone or email. Enter the code to continue. If you use the official app, you may be asked to scan your document instead.
Step 3: Get your code
Once your identity is confirmed, you can generate share code in a few minutes. The screen will show your nine-character code and the date it expires. Write it down or take a screenshot, and give it to the person who asked for it, along with your date of birth.
How to Share Your Code Safely
Only share the code with the person who asked for it. After you generate share code, it is valid for 30 days, so do not create one too early. If the person does not use it in time, you can simply create a new one.
Never post your code on social media or send it to someone you do not know. A share code on its own is of little use without your date of birth, but it is still best to treat it like any other personal detail and keep it private.
Common Problems and How to Fix Them
If you cannot generate share code, check that the document details you entered match the ones on your Home Office account. A wrong passport number or an old email address is the most common cause of a failed sign-in.
If the service says your status cannot be found, your details may need updating. This can happen after a passport renewal or a visa extension. Use the update service on GOV.UK to link your new document, then try again. If the problem continues, contact UKVI for help.
How Long Does a Share Code Last?
A share code is valid for 30 days from the day you create it. After that, it stops working and you will need to create a new one. This is not a problem, because creating a new code is free and takes only a few minutes.
If an employer or landlord tries to use an old code, they will see a message saying it has expired. Just create a fresh code and send it to them again.
Conclusion
A share code is the simplest way to prove your immigration status in the UK. Keep your documents and contact details up to date, use the official GOV.UK service, and only share your code with the person who asked for it. It only takes a few minutes to generate share code, and it gives employers, landlords and colleges the proof they need without you having to share your passport.
Frequently Asked Questions
How long is a share code valid for?
A share code is valid for 30 days. After that, you will need to create a new one.
Can I create a share code on my phone?
Yes, you can generate share code on your phone using the GOV.UK website or the official app. You will need your identity document and access to your phone or email.
What do I need to give to my employer?
Give them your nine-character code and your date of birth. They will use the official checking service to view your status.
Is it free?
Yes. The official service is completely free. Never pay another website to create a code for you.
What if my code has expired?
Just create a new one. It is free and takes only a few minutes.
For more helpful guides and updates, visit Galena Cellars.


