All guides
Cover illustration of numbered steps for a Photo Code that does not load. Article: UK Passport Photo Code Not Working? How to Fix Each Error.

UK Passport Photo Code Not Working? How to Fix Each Error

If a UK passport photo code is not recognised, check the characters first, then the provider. What each message usually means, and when to upload a photo instead.

Most photo codes that “do not work” fail for one of three reasons: a character was mistyped, the provider no longer has the file, or the code did load and the photograph itself is the problem. Retype the code once, carefully, before you pay for another sitting. If the picture appears and then the check complains, stop treating it as a bad code.

A photo code only lets the online UK passport application retrieve a digital photograph held by the provider. GOV.UK says you enter the code and the digital photo is added. The wording on a particular screen can change. The photo-with-a-code help page is the official illustration of that step.

Four-step diagram for a Photo Code that does not load: retype every character, confirm the picture, check the code is still available, then use a file upload. Article: UK Passport Photo Code Not Working? How to Fix Each Error.
Retype the code, confirm the picture is yours, then ask the provider or upload a file. Illustration: Passport Photo Code.

Why is my photo code not working?

GOV.UK does not publish one glossary of every error string. People report a handful of messages that feel the same and are not. Match what you see to the row below, then do that row’s next step. Do not work through all of them at once.

What you seeWhat it usually meansWhat to do
Not recognised, not found, or invalidThe characters do not match a photograph the service can retrieve right nowRetype it. Check 0 and O, 1 and I, and spaces. If it still fails, ask the provider who issued it
Something went wrong, or the page spins and stopsThe form failed while fetching the photo. It may be temporaryRefresh, try another browser or device, then try again later the same day. If it persists, ask the provider or upload a file
The right photograph appears, then the check names a faultThe code worked. The picture is the problemLeave the code alone. Read the reason and retake if you can see the fault. Use the checker guide
A different person’s face appearsYou have typed someone else’s code, or an old code from another sittingStop. Do not continue. Find the code for this applicant
You have no code to typeThe slip, screenshot or email is missingRecover it from the provider. Guessing a similar code will not find the photo

“Retrieved but rejected” is the row people mix up with “invalid”. If your face is on the screen, the retrieval worked. A shadow, a smile, closed eyes or a busy background is a photo-rules problem. Replacing one character will not fix it. HM Passport Office still examines the photograph after the automated check, which is covered in what happens after you submit.

What should you check first?

Give it sixty seconds, in this order, with the code in front of you. Shops use the same opening sequence; the counter version is in the shop playbook.

  1. Confirm you are on a UK passport application, in the photo step, on the option for a photo with a code. A visa website, a password field, or the file-upload box will reject a perfectly good code.
  2. Delete what you typed and enter it again from the slip or the email. Do not paste a line that includes a label, a date, or a trailing space.
  3. Read the easily swapped characters out loud: 0 and O, 1, I and l, 5 and S, 8 and B. Providers mix letters and numbers.
  4. Try a second browser, or the phone if you started on a laptop. A stuck page is not the same fault as an unknown code.
  5. Confirm the code belongs to this person and this sitting. A partner’s receipt, or last year’s envelope, will load the wrong face or nothing at all.

If the photograph then appears and it is the right person, you are finished with “not working”. Look at the picture, then follow whatever the online check says.

Side-by-side diagram of a Photo Code, which retrieves a photo from the provider, and a digital upload, which attaches the image file. Article: UK Passport Photo Code Not Working? How to Fix Each Error.
A Photo Code retrieves a photo from the provider. A file upload attaches the image instead. Both still have to meet GOV.UK photo rules. Illustration: Passport Photo Code.

What if the code still isn't recognised?

Ask the provider that issued it. They are the only people who can see whether that code still points at a photograph. A booth or shop can look the job up if you go back with the receipt, the payment card you used, or the time of the sitting. An online provider can look up the email address on the order.

Say what the screen actually shows. “Not recognised” after a careful retype is a different report from “the photo loaded and the check mentioned a shadow”. The first needs the provider. The second needs a new photograph.

There is no separate public search where you type your name and recover anyone’s code. Do not send the code to a stranger who offers to test it. Our privacy notice says not to share a Photo Code publicly, because anyone with it can pull the photograph into an application while the file is still held.

If the provider confirms the file is gone, or they cannot find the order, stop. The next step is a new photograph, either as a new code or as an upload. How to choose between those two is in photo code vs digital upload.

What if you lost the receipt or the code?

Recover it from the place that created it. The options depend on who that was.

  • A high-street shop often still has the job if you return with enough detail to identify the sitting. Ask them. Do not expect a different shop to see another company’s code.
  • A booth receipt is the record. If the slip is unreadable, the operator of that booth is the contact, not GOV.UK.
  • An online order is usually in the confirmation email, including the code and a download of the digital photo. Search for the sender before you assume it has vanished.
  • Passport Photo Code sends the Photo Code and the digital photo to the email address on the order, and shows them on the result page after payment. If you still have that email, you have the code.

GOV.UK will not look up a commercial provider’s code for you. The passport application only retrieves the photo when you enter a code the provider can still serve.

Keep the code until you have submitted and seen your own photograph on the form. After that, store the email until you no longer need the file. Our photos and processed files are normally deleted within 48 hours. That period is ours, stated in the privacy notice. It is not a GOV.UK rule, and it is not evidence that every booth keeps a photo for a particular number of days. We do not quote a universal booth lifetime, because GOV.UK does not publish one. The rule GOV.UK does publish is about the photograph: it must have been taken in the last month.

When should you stop and upload a photo instead?

Stop retrying the code when one of these is true. Carrying on is what turns a two-minute typo into a wasted evening.

SituationWhat to do
One character was wrong and the photo had not loadedRetype it. Stay with the code
The right person loaded and the check names a fault you can seeRetake the photo. The old code was fine; it is now the wrong picture
The provider says the file is no longer availableStop. Get a new photo, taken in the last month
The face on screen is not the applicantStop. Find the correct code. Do not upload that image
You cannot find any record of the codeStop searching random slips. Take a new photo and either get a new code or upload the file
You are overseas and the only code you have was from a UK booth some time agoIf it no longer loads, do not fly the receipt home. Use a new photo. The expat guide covers that case

Uploading needs a real file, not a photo of a printed photo taken at an angle. Use the original, uncropped, with head, shoulders and upper body, against a plain light background. The size rules are at least 600 pixels wide and 750 pixels tall, and between 50KB and 10MB.

If you want a new code and a digital file together, rather than uploading unaided, Passport Photo Code prepares both from a photo you take yourself. The photo is formatted to meet GOV.UK photo rules, and the code is usable for an HMPO online application. The price is £2.99 once, for the code and the digital photo. Start on the create page. That price is also stated on the online passport photos page. HM Passport Office still decides whether the photograph meets the rules.

Frequently asked questions

Why does GOV.UK say my photo code is not recognised?

After a careful retype, it usually means the service cannot retrieve a photograph for those characters. The code may be from a different person, the provider may no longer hold the file, or a character such as 0 and O is still wrong. Ask the provider before you assume the passport system is down.

The photo loaded, but the checker is unhappy. Is the code invalid?

No. Retrieval worked. Read the reason on screen. Shadows, expression, glasses and background are photo rules, listed on photos for passports and how to take a digital passport photo. Fix the photograph.

How long do I have to enter the code?

Enter it while the provider still holds the file, and only use a photograph taken in the last month. The one-month rule is on GOV.UK. How long a particular shop keeps the file is that shop’s policy. On this site, photos are normally deleted within 48 hours.

Can I use the code on a paper form or a visa application?

A UK passport Photo Code is for the online UK passport application. A paper passport form asks for prints. Another country’s visa site will not retrieve a UK code. If you need prints, use a shop.

Who do I contact, the shop or HM Passport Office?

Contact the provider who issued the code if the photograph will not load. Contact is through the shop, the booth operator, or the online service’s support address. HM Passport Office examines the application after you submit a photograph. They do not operate each shop’s code database.

I run the shop and a customer is at the till. Where is the staff version?

Use when a customer’s Photo Code fails. That page is the counter sequence. This page is for the applicant.

Updated 21 October 2026. Rules for the photograph are on GOV.UK photos for passports. Passport Photo Code is independent of GOV.UK and HM Passport Office.

If you need a new code and digital photo, the £2.99 order is on the create page.