UK Passport Digital Photo Code: What It Is, and Why You Might Not Need One
By Elena Dev, Founder ยท July 21, 2026 ยท 4 min read

If you have started a UK passport application and hit a screen asking for a "photo code," you might assume you need to go find one before you can continue. You do not. A Digital Photo Code is one way to submit your photo, not the only way, and it is worth understanding what it actually does before you decide whether to bother with it.
What the code actually is
A UK Digital Photo Code is a 16-character code you get when a participating provider, Boots, the Post Office, Tesco, or Snappy Snaps, takes your passport photo in person and checks it against the official standards on the spot. Instead of you uploading the image file yourself, you type this code into your online application at gov.uk, and HM Passport Office pulls the photo directly from the provider's system.
The part most guides skip: you do not need one
Gov.uk still lets you upload a digital photo you took yourself, no code, no in-person visit. Go to gov.uk/renew-adult-passport, choose the option to upload your own photo instead of entering a code, and submit an image that meets the size and background rules. Gov.uk is upfront that a shop or booth photo is statistically more likely to pass on the first attempt, since a person there checks it before you leave. But a self-taken photo is a genuinely supported route, not a workaround.
Where a free tool like this fits, and where it does not
Being direct about this: no online tool, including this one, can generate a Digital Photo Code. The code only exists because a provider verified your photo in person, there is no way to produce that verification from a browser. What IDPhotoSnap does is the other half of the job, taking a photo you already have and cropping and formatting it to the UK's 35 by 45 millimetre size with a plain light grey or cream background (not white), so it is ready for the self-upload route. If you would rather have an in-person check and a code, that is a real, valid choice, use this tool instead if you are going the self-upload path or just want to sanity-check a photo before a booth visit.
Either way, the 1-month recency rule applies. A code tied to an old photo gets rejected exactly like an old self-uploaded one would, so take the photo close to when you actually apply, whichever route you use. See the full 1-month rule breakdown for what counts as too old.
Make a compliant self-upload photo for free
Stand facing a window in soft daylight, plain light grey or cream wall behind you, neutral expression, no glasses. Then use IDPhotoSnap to crop it to the UK 35 by 45 millimetre size and set a clean background, entirely in your browser, nothing uploaded to a server. Export and use it directly in the self-upload step of your application.
Frequently asked questions
What is a UK passport Digital Photo Code?
A 16-character code issued when you get your passport photo taken and checked in person at a participating provider (Boots, the Post Office, Tesco, or Snappy Snaps). Instead of uploading a photo file, you enter this code during your online passport application and HM Passport Office retrieves the photo directly.
Do I need a Digital Photo Code to renew my UK passport?
No. A code is one option, not a requirement. At gov.uk/renew-adult-passport you can also upload a digital photo you took yourself, as long as it meets the size and background rules. Gov.uk notes a shop or booth photo is more likely to be approved on the first try, but a self-taken photo is still an accepted route.
Can IDPhotoSnap generate a Digital Photo Code?
No, and no online tool can. A Digital Photo Code is only issued after an in-person check at an approved provider, it is tied to that verified capture, not to a photo file. What IDPhotoSnap does is prepare a correctly sized, compliant photo for the separate self-upload route, where you submit your own digital photo instead of a code.
How recent does the photo behind a Digital Photo Code or a self-upload have to be?
Under 1 month old either way. HM Passport Office Photo Standards version 49.0 requires a photo taken within the last month regardless of which submission route you use, so a code from an old photo or a saved digital photo is treated the same, both get rejected.
Related guides
UK Passport Photo 2026: The New 1-Month Rule (All HMPO Requirements)
UK passport photo rules for 2026: the new 1-month recency rule from HMPO Photo Standards v49.0, the 35x45 mm size, the plain light-grey background (not white), no smiling, and how to take a compliant photo at home for free.
UK ETA 2026: Full Enforcement, GBP 20 Fee, 84 Countries
UK ETA enforced from 25 Feb 2026 for 84+ countries. Fee raised to GBP 20 on 8 April. What changed for US, EU, Australia, India.
Passport Photo Size Guide: mm, Inches, Pixels (Countries)
US: 2ร2 inch (51ร51mm), UK: 35ร45mm, Canada: 50ร70mm, China: 33ร48mm. Complete size reference with pixel dimensions at 300 DPI for printing.
Why Passport Photos Need a White Background (2026 Rules)
Why white? Which countries are exceptions (Finland: grey, Indonesia: red)? And how to fix your background for free before your application.
About the Author
Elena Dev, Founder of IDPhotoSnap
Elena Dev is the sole operator of IDPhotoSnap. Her work involves auditing the official photo specifications of 100+ countries against issuing-authority sources (embassies, government portals, ICAO 9303) and translating those rules into a browser-only tool that runs entirely on the user's device. The full 276-format specification dataset is published as MIT open data on GitHub. Source verification methodology and corrections policy are documented on the editorial standards page. Every article is written and reviewed by Elena Dev. Corrections: elena@idphotosnap.com.
Found this useful? Public reviews are how new readers discover IDPhotoSnap. Leave a quick Trustpilot review โ