All guides
Cover illustration of the steps for using a UK passport Photo Code. Article: UK Passport Photo Code Explained: What It Is, How Long It Lasts and Where to Enter It.

UK Passport Photo Code Explained: What It Is, How Long It Lasts and Where to Enter It

A UK passport photo code is a short reference that retrieves your digital photo on the application. What it looks like, how long to keep it, and where to type it.

A UK passport photo code is a short reference that lets an online passport application retrieve your digital photograph from the provider who took or prepared it. You get the code from a participating booth, shop or online service. You type it in when GOV.UK asks for your photo, and the picture appears on the form. The code is not the passport, and it is not a decision that the photograph meets the rules.

You need a digital photo to apply online. GOV.UK says you can get that photo from a booth or shop, with a code, or take one on your own device during the application and upload the file. The photograph must have been taken in the last month, even if you look the same as you did last time.

Four-step diagram: take a photo, prepare the digital file, copy the Photo Code, then enter the code in the online application. Article: UK Passport Photo Code Explained: What It Is, How Long It Lasts and Where to Enter It.
A Photo Code lets the online application retrieve the digital photo. It does not replace the photo rules. Illustration: Passport Photo Code.

What is a passport photo code?

It is a pointer. The provider holds the digital photograph. The code is how the UK online application asks that provider for the file and shows it to you. GOV.UK’s wording is that you enter the photo code during the application and the digital photo is added.

It is not any of these:

  • your passport number
  • the application reference you are given after you submit
  • a receipt number for the passport fee
  • evidence that HM Passport Office has examined the photograph
  • something another country’s visa website can look up

HM Passport Office’s own examiner guidance describes the same two choices on a digital application: upload a photo, or enter a code to retrieve one from a shop or booth. After the photo is on the form, an automated check runs, and an examiner can still reject the photograph if it does not meet the standards. That later stage is what happens after you submit. Choosing a code rather than an upload is covered in photo code vs digital photo upload.

What does a photo code look like?

It is a short string of letters and numbers. Some providers put a name, a dot or a slash in front of the personal part. You copy every character, in order, with the same capitals.

There is no need to memorise a pattern. The code on your slip or in your email is the one that matters. Read it, do not retype it from memory. The characters people swap are 0 and O, 1 and I, and 5 and S. A space copied from the line above the code will make a valid code look unknown.

Do not post the code on a forum or send it to someone who offers to “test it”. While the provider still holds the file, anyone with the code can retrieve that photograph. Our privacy notice says the same thing: do not share the Photo Code publicly.

When it works, you see your own face, not a confirmation tick by itself. If a different person appears, you have the wrong code. Stop. If nothing appears, use the not working guide before you buy another photo.

Two-column photo checklist. Helpful items are a plain light background, facing the camera, even light, an upright head and a recent photo. Avoid a patterned background, another person, hard shadows, a tilt or filters. Article: UK Passport Photo Code Explained: What It Is, How Long It Lasts and Where to Enter It.
Check the background, light and pose on the picture the code retrieves. HM Passport Office decides whether it meets GOV.UK photo rules. Illustration: Passport Photo Code.

How long does a photo code last?

There are two different clocks, and only one of them is a GOV.UK rule.

The photograph must have been taken in the last month. That is on photos for passports. Examiners are told to reject a photo they suspect is older than a month, for example because it carries a date. A code cannot stretch an old sitting into a new one. If the picture was taken earlier than the last month, get a new photograph even if a code still displays the old one.

How long the code keeps working is the provider’s retention, not a single number on GOV.UK. GOV.UK does not publish one expiry that applies to every booth, shop and website. A provider deletes the file on its own timetable, and after that the code retrieves nothing. Ask that provider, or read what they told you when they issued the code, if you need their period.

On Passport Photo Code the period is short, and it is published. Photos and processed files are normally deleted within 48 hours. That sentence is in our privacy notice. Download the digital photo when you pay, and enter the code while the picture still appears. Do not leave the code for a later month and expect the file to be there. The one-month photo rule would have failed that plan anyway.

If you are comparing “the code expired” with “the photo is too old”, use this test. If the picture still appears and the sitting was in the last month, the code is doing its job. If the picture no longer appears, the provider has nothing to give the form, and you need a new photo regardless of the calendar.

Where do you enter the code on GOV.UK?

You enter it on the photo step of the online application, in the option for a photo with a code. The help page illustrates the flow. Labels move. The actions do not.

  1. Start the correct application. In the UK that is the renew, replace, first-adult or child service that matches you. From abroad, start at overseas British passport applications, not the UK-resident form.
  2. Reach the photo step. Choose the code, not the upload, if a provider holds the photograph.
  3. Type the code exactly, or paste it with no extra words and no extra space.
  4. Wait until a photograph appears.
  5. Check it is the applicant, from the last month, with a clear face and a plain background. If it is someone else, stop.
  6. Read the online check. If it names a fault you can see, replace the photo. The meaning of those results is in the checker guide.
  7. Continue only when you can confirm the photo, which the form asks you to do.

A paper application does not have this box. Paper forms ask for printed photographs. A code does not stand in for those prints.

Can you reuse a code, or use it for someone else?

Use the code for the person in the photograph, on the application you are completing now.

GOV.UK requires a new photo for a new passport, even when your appearance has not changed. The code points at one photograph from one sitting. It is the wrong tool for a second person, including a child who was standing next to you, and it is the wrong tool for a sitting older than a month.

If you have already submitted an application with that photograph, stay on that application. If HM Passport Office later asks for a new photo, they want a new photograph, not the same code typed into a second, parallel application. Follow their message.

If the picture no longer loads, there is nothing to reuse. Get a new photo. Do not keep a partner’s code “because the form is the same”. The form will retrieve their face.

You can hold both the code and a digital file of the same sitting. The file is your copy. The code is what you type. Using one of them is enough for a single application. Holding both is useful when the code fails and the file is still a good original you can upload. That choice is set out in photo code vs digital upload.

Where can you get a photo code?

Get it before you start, from someone who can actually hand the file to the UK application. Price is theirs. The passport fee on the form is separate.

WhereWho takes the photoWhat you receiveWhat to know
A UK photo booth or shopThe booth, or the shop staffA code, often with printsGOV.UK says photos from a booth or shop are more likely to be approved than a photo you take on your own device. That is their comparison, not a promise about a named brand
Your own device, during the applicationSomeone helping youNo code. You upload the fileInclude head, shoulders and upper body. Do not crop. This is the other official route, not a failed code
An online providerYou take it, they prepare the digital photoA code and a fileYou can do this from outside the UK. A local shop abroad usually cannot issue the UK code. See the expat guide
A shop counter, if you run oneYour staffA code you print on the receiptApplicants are on this page. Staff procedure is in the shop playbook

Passport Photo Code is the online row. You take a photo, we check and format it to meet GOV.UK photo rules, and you receive a Photo Code usable for an HMPO online application plus the digital photo. The price is £2.99 once, for both. There is no subscription. Start on the create page. The same price is on the online passport photos page, and the steps are in how to get a UK passport photo code online for £2.99.

We are not GOV.UK. The checks before payment are not HM Passport Office’s decision. The £2.99 does not pay the passport fee and does not include posted prints.

Frequently asked questions

Is a photo code the same as a digital photo?

No. The digital photo is the picture. The code is the reference the form uses to fetch that picture from the provider. You can have both. You type the code. You keep the file.

Does the code mean the photo meets the rules?

It means the provider can hand the file to the application. The photograph still has to meet GOV.UK photo rules. The online check and, after you submit, HM Passport Office, are what stand between that file and the passport. Some sellers talk as though a code were a guarantee or an official approval. It is neither.

How long does the code last?

Use a photograph taken in the last month, which is the GOV.UK rule. How long the code retrieves the file depends on the provider. GOV.UK does not publish one expiry for every provider. On this site, photos are normally deleted within 48 hours.

Where exactly do I type it?

On the photo step, in the option for a photo with a code. The screens are illustrated on the GOV.UK help page. Type every character, then wait until your photograph appears.

Can I use my child’s code, or reuse mine from a previous passport?

No. The code retrieves one person’s photograph from one sitting. A new passport needs a new photo taken in the last month, even if you look the same. A child needs their own photograph, with the child rules on GOV.UK.

What if it is not recognised?

Retype it, checking 0 and O and any pasted space. If it still fails, ask the provider who issued it, or upload a suitable file. The full sequence is in UK passport photo code not working.

Updated 21 October 2026. Official sources: photos for passports, photo with a code, and Photo standards.

The £2.99 Photo Code and digital photo start on the create page.