What Is a Digital Passport Photo Code, and Do You Need One?
A photo code is a reference number a booth or shop gives you so HM Passport Office can retrieve your photo directly. It is one of three ways to supply a photo online — and it is not the only one.
By Helal · Last updated

What is a digital passport photo code?
A digital passport photo code is a reference number issued by a photo booth or a participating shop when you choose the digital option for your photos. GOV.UK describes it plainly: you can "get a digital passport photo from a photo booth or shop. Choose the option to get a code with your photos," and you will then be "asked to enter the photo code during your passport application."
The code is a pointer, not a photo. Your image is stored by the booth operator, and entering the code during your online application lets HM Passport Office fetch it directly. You never handle the file yourself.
Do you actually need one?
No. A photo code is one route among several, and it is the only one that requires you to visit a booth.
When applying for a UK passport online, you can supply your photo by:
- Entering a photo code from a booth or shop that offers the digital option.
- Uploading a digital photo file that meets the published specification — at least 600 pixels wide by 750 pixels tall, and between 50KB and 10MB.
- Posting printed photos, if you are applying on a paper form instead. That route needs two identical prints, 45mm × 35mm.
Route 2 is what most people use. There is no requirement anywhere in the guidance that a digital photo must come from a booth, and no advantage conferred by a code beyond convenience.
What a code does and does not do for you
Factor | Photo code | Your own digital file |
|---|---|---|
Where the photo comes from | A booth or participating shop | Any camera, including a phone |
Cost | Booth or shop fee | Nothing, if you take it yourself |
Correct dimensions | Handled by the booth | You crop to specification |
Correct file size | Handled by the booth | Check it is 50KB to 10MB |
Correct background | Booth curtain, usually compliant | Your responsibility |
Guarantees acceptance | No | No |
Expression, glasses, shadows, head position | Your responsibility | Your responsibility |
That "no" in the guarantee row is the point worth internalising. A photo code standardises the technical properties of the image — its size, its format, where it is stored. It does nothing about the reasons photos are actually rejected.
A booth photo can still be rejected
This surprises people, and it should not. The booth controls the frame, the background and the file. It does not control you.
Every one of these is a rejection ground, and every one of them happens inside booths:
- Smiling. The rules require "a plain expression and your mouth closed," and examiner guidance rejects "smiling widely, pouting, frowning."
- Glare on glasses. A booth's flash fires straight at your face. If you wear glasses, this is the worst lighting position available. See can you wear glasses in a UK passport photo.
- Head tilt. Examiners reject photos where the head is "tilted backward, forward or to the side" or "turned to one shoulder."
- Sitting too low or too high. The stool height decides whether your eyes land inside the "top 40% to 70% of the photo" band HM Passport Office needs them in.
- Hair across an eye. Explicitly prohibited.
- Red-eye. Examiners are told to reject any photo showing it.
The booth's advantage is that it removes the technical variables. It leaves every human one in place.
How to use a photo code
- Find a booth or shop offering the digital option. Not every booth does — the machine will offer you a choice between printed photos and a code, or both.
- Choose the code option when prompted, and keep the receipt or slip it prints. Photograph it with your phone as a backup; a thermal receipt in a pocket for a week is not a reliable storage medium.
- Start your online application at GOV.UK.
- Enter the code when prompted. HM Passport Office retrieves the image.
- Check the photo shown back to you. If the application displays the retrieved image, look at it properly before continuing.
If the code does not work, the usual causes are a mistyped character, an expired code, or a booth that issued a code for a different service. Go back to the booth operator rather than to the passport office.
What happens if your photo is rejected either way
The application does not fail outright. HM Passport Office contacts you to ask for a new photo, and the clock on your application effectively restarts while you supply one.
The cost is time, not money — the passport fee is not lost. But with the standard service and no guaranteed turnaround, a rejection can add weeks to a trip you have already booked. See your passport photo was rejected: what happens next.
The three routes compared on cost and effort
Deciding between a code, your own file, and printed photos comes down to what you are optimising for.
Factor | Photo code | Your own digital file | Printed photos |
|---|---|---|---|
Works with | Online application | Online application | Paper form |
Trip required | Yes, to a booth | No | Only if you do not print at home |
Direct cost | Booth or shop fee | None if self-taken | Photo paper, or a shop fee |
Technical risk | Lowest | Yours to manage | Yours to manage, plus print quality |
Human-error risk | Same as any route | Same | Same |
Retakes | Pay again, or use the booth's retake option | Free and unlimited | Free if printing at home |
The retake column is the underrated one. In a booth you get one sitting and whatever preview it offers; at home you can take forty frames, review them at full size, and pick the best. Given that the causes of rejection are overwhelmingly human — expression, head angle, glare, hair — the ability to take a lot of attempts is worth more than the booth's technical guarantees.
For context on the paper route, see how to print UK passport photos at home and digital vs printed passport photos.
What happens to the photo behind a code
Worth understanding, because a code is a pointer to a file held by someone else.
When you take a digital-option photo, the booth or shop operator stores your image and issues you a reference. HM Passport Office retrieves it when you enter the code. That means a third party is holding a biometric photograph of you, under their own retention policy, until you use the code or it lapses.
None of that is a reason to avoid codes. It is a reason to use one promptly rather than keeping it in a drawer, and to check the operator's stated retention period if it matters to you. Your own file, taken at home, never leaves your possession — which some people will regard as the more meaningful difference between the two routes.
Codes are a passport thing, not a DVLA thing
Photo codes belong to the HM Passport Office online application. DVLA works differently: when you renew your photocard driving licence online, GOV.UK states "you'll be able to use your passport photo or upload a new one." DVLA reaches into the passport record you already have rather than asking for a booth code.
That is a genuinely useful shortcut and it is covered in can you use the same photo for your passport and driving licence.
Getting the most out of a booth sitting
If you are using a booth, the technical work is done for you and everything that remains is on your side of the lens. A few minutes of preparation converts a one-shot sitting into a good one.
Before you go in:
- Wear a mid-tone or dark top. Booth panels are light, and a white shirt leaves you without a shoulder line. See what to wear for a UK passport photo.
- Take your glasses off, or plan to. A booth's flash fires straight at your face, which is the worst possible geometry for lens glare.
- Check for pushed-up sunglasses, earphones and hair clips. "No other objects" includes anything you forgot you were wearing.
Inside:
- Set the stool height first. Your eyes need to sit in the upper portion of the frame, and stool height is the only control you have over that. Most booths show a guide line — use it rather than eyeballing it.
- Sit square. Shoulders parallel to the panel, head level, chin neither raised nor dropped. Examiners reject a head "turned to one shoulder or at an angle."
- Face at rest. Breathe out and let the shutter fire on the exhale rather than composing an expression.
- Use the retake option if the booth offers one. Many do, and it is the closest a booth comes to the advantage of shooting at home.
Afterwards: look at the result properly before you leave. It is far easier to sit down again immediately than to come back next week.
If you need a physical copy as well as a code, our printed photo products are cut to the 45mm by 35mm specification.
Frequently asked questions
Do I need a photo code to apply for a passport online?
No. You can upload your own digital photo instead, provided it is at least 600 × 750 pixels and between 50KB and 10MB and meets every other requirement. A code is a convenience, not a requirement.
How long does a passport photo code last?
GOV.UK does not publish a standard expiry for photo codes, and the storage period is set by the booth or shop operator. What is fixed is the underlying rule: your photo "must have been taken in the last month" when you submit it. Use the code promptly.
Where can I get a digital photo code?
From photo booths and shops that offer the digital option — many high street booths, pharmacies and photo shops do. The machine or the assistant will offer you the choice when you take the photo.
Does a photo code guarantee my photo will be accepted?
No. A code standardises the file's size, format and storage. Expression, glasses glare, head position, shadows and hair are still yours to get right, and they are the reasons most photos are rejected.
Can I use a photo code for a child's passport?
Yes, the same routes apply. Getting a compliant photo of a small child inside a booth is often harder than at home, though — booths cannot be reconfigured for height and the flash makes infants blink. See UK child passport photo rules by age.
Is a photo code better than uploading my own photo?
Neither is better in itself. A code removes the technical work — dimensions, file size, storage — but leaves every human variable in place. Taking your own photo lets you shoot forty frames and choose, which matters because expression, head angle and glare cause most rejections. A booth gives you one sitting.
Who holds my photo when I have a code?
The booth or shop operator stores the image and HM Passport Office retrieves it when you enter the code. That means a third party holds a biometric photograph of you under its own retention policy. Use the code promptly rather than holding onto it.
What if I have printed photos but I am applying online?
You would need a digital version. Photographing or scanning a printed photo is a poor route — the Home Office's equivalent visa guidance states a photo must "not be a scan or photo of another photo," and a rephotographed print loses sharpness that the standard requires.
Sources
- GOV.UK, Get a passport photo: digital photos
- GOV.UK, Get a passport photo: printed photo requirements
- HM Passport Office, Photo standards (accessible)
- GOV.UK, Change the photo on your driving licence