All guides / Verification codes and WhatsApp
GOV.UK One Login and HMRC sign-in codes from abroad
Why a non-UK number can't get GOV.UK One Login texts, and what to set up before you leave.
By the Linehome team. Updated . 1 minute read.
GOV.UK says you can't get a One Login security code by text if your phone number is registered outside the UK. Use an authenticator app or keep a UK mobile number. Set the app up before you leave.
GOV.UK One Login
Codes can come by text to a UK number or from an authenticator app. GOV.UK's guidance says text codes aren't available to numbers registered outside the UK. Codes expire after 15 minutes. From outside the UK, the One Login contact number listed is +44 208 629 0008.
HMRC
HMRC offers two sign-in routes: Government Gateway and GOV.UK One Login. For Government Gateway access codes it lists text message, voice call or an authenticator app, and you can change the method, for example after changing your number. A locked account unlocks after two hours.
Before you move
- Sign in to each government account while your UK number works.
- Add or switch to an authenticator app.
- Check you can sign in with it.
- Decide whether to keep your UK number as a backup.
- Note the help routes somewhere you can reach without the account.
Changing phones abroad
Move your authenticator entries to the new phone while the old one still works. Wiping the old phone first can lock you out.
Common questions
Can GOV.UK send a code to my foreign number?
Not by text. Use an authenticator app.
Do I need a UK number to use HMRC from abroad?
No if you set up an authenticator app, though a working UK number gives you another route.
Sources
- GOV.UK: Getting a security code for GOV.UK One Login
- GOV.UK: HMRC online services, problems signing in
- GOV.UK: HMRC online services sign in
Checked 27 November 2026. Rules and prices change, so confirm anything that matters with the provider. Spotted a mistake? Tell us.