A digital photo code is what a booth or shop gives you instead of handing over a file. HMPO's guidance to photo providers spells out the format, and it is a short URL, not a string of characters: sub-domain of 1 to 6 characters, top-level domain of 2 to 3, path of 6 to 8, so it looks like photo.co/yh8Y6K2s.1 You type it into the online application and your photo is fetched and attached.2 You cannot generate one yourself, and no phone app can generate one for you, SpecSnap included. The alternative is uploading your own digital photo, which GOV.UK allows at 600 by 750 pixels or larger and 50 KB to 10 MB, with the caveat that booth and shop photos "are more likely to be approved than a photo taken using your own device."2 What an on-device app like SpecSnap can do is check that file against the spec before you submit it.3
Jump to: What the code actually is · Where codes come from · The upload path · When a file is enough · The unaltered rule · Where SpecSnap fits · Ireland · FAQ
A photo code is a short URL, not a code
Almost every explanation of the UK photo code describes it as a string of characters, usually with a confident number attached. Nine characters. Sixteen characters. The numbers disagree because none of them come from HMPO.
The actual specification is published, and it is aimed at the businesses that issue codes rather than the people who use them. It says a provider "must" give the customer a short URL "in the format of sub-domain (1-6 characters), top-level-domain (2-3 characters), and path (6-8 characters)", and it gives a worked example: photo.co/yh8Y6K2s.1
So the thing on your receipt is a web address. That single fact explains most of the behaviour people find confusing.
It explains why the code is short enough to read off a printed slip without errors. It explains why the code is specific to one photo rather than to you: the path points at your image, sitting on your provider's server. And it explains why the passport service can attach the photo without you touching a file. When you enter the code, HMPO says, "they enter the code to retrieve their digital photo. The photo is added directly to the passport application."1 Retrieve is the operative word. Nothing is uploaded from your end.
It also quietly explains the failure mode. If the photo lives on the provider's server, then the provider controls how long it stays there. A code is a pointer, and pointers go stale.
Where a code comes from, and why you cannot mint one
GOV.UK's instruction is one sentence long: "Get a digital passport photo from a photo booth or shop. Choose the option to get a code with your photos."2
That is the whole route. A code is something a participating booth or a participating shop issues at the point of sale, because the code is a URL on infrastructure they run. No app on your phone can produce one, no matter how compliant the photo it makes is, because minting a code means operating the server the code resolves to and holding an agreement with the passport service.
This is the part worth being blunt about, since a lot of writing on this topic blurs it. If you need a code, you need to physically go somewhere and pay for a session. Photo booth chains and high-street photo counters both run the service, prices vary by operator and by town, and we are not going to publish a price table here because the retailers do not publish stable national prices and the numbers circulating in blog posts contradict each other.
What is worth knowing is the trade you are making. GOV.UK states its position plainly: "Photos from a booth or shop are more likely to be approved than a photo taken using your own device."2 That sentence is on the government page, not in a vendor's marketing. Whatever you think of it, it is the clearest signal HMPO gives about which path carries less risk.
The other path: upload the file yourself
The code is optional. You can apply online with a photo you took, and GOV.UK publishes exactly what that file has to be.2
- At least 600 pixels wide and 750 pixels tall. That is a floor, not a target. Any recent phone clears it several times over.
- At least 50 KB and no more than 10 MB. Note the minimum. People aim at the ceiling and forget there is a floor, and an over-compressed file can fail from below. We went through the full set of portal caps, including the ones that are far tighter than this, in file size limits on passport and visa upload portals.
- In colour, clear and in focus, and "unaltered by computer software."
The first two are arithmetic. Your phone either produces the pixels or it does not, and it does. The third is where applications actually die, and it deserves its own section.
So when is a file enough?
Here is the honest decision, stripped of vendor framing.
Take the code route if you want the path GOV.UK itself describes as more likely to be approved, you are near a booth or a photo counter anyway, and you would rather pay a few pounds than carry any risk of a second attempt. Also take it if you are helping someone who finds the online form stressful. Entering one short URL is simpler than judging whether a photo you took is compliant.
Upload your own file if you are confident about the framing, you have checked the photo against the actual rules rather than eyeballing it, and you would rather not make a trip. The file route costs nothing beyond the application, and for a photo you have genuinely validated it is not a worse photo. It is a photo without a second opinion attached.
The number that should shape this choice is not the price of the photo. Renewing an adult passport online costs £102, against £115.50 on a paper form.4 A rejected photo does not cost you £102 again, but it does cost you the wait, and the wait is the expensive part when a trip is booked. Set against that, the gap between a free self-taken file and a paid booth session is small. Choose on confidence, not on cost.
If your photo has already been turned down once, start with why was my passport photo rejected before you decide anything else. Repeating the same mistake through a different route does not help.
What "unaltered by computer software" actually rules out
This phrase does more damage than any pixel spec, because people read it as banning all editing and then either give up or ignore it entirely.
Read it as banning changes to your face and to the scene. Retouching skin, slimming a jaw, brightening eyes, removing a blemish, dropping in a synthetic background, or generating any part of the image is what the rule exists to catch. A biometric photo is a measurement, and editing the subject corrupts the measurement.
Cropping to the required frame is not that. Neither is exporting at a size and quality that fits the portal's limits. The distinction is between changing what you look like and changing how the file is packaged. We wrote up the full version of this line, including how the 2026 rules landed across markets, in digital-only vs printed passport photo services.
The practical failure is nearly always geometry, not editing. Head too small in the frame, head too large, eye line off, a shadow behind the head from a wall you stood too close to. Those are capture problems and they are fixable in the room you are standing in. Passport photo head size covers the ratios each authority actually uses, and lighting requirements for a clean ID photo indoors covers the shadow.
Where SpecSnap fits, and where it does not
Start with the part that most articles get wrong, including ones written about our own category.
SpecSnap does not issue a GOV.UK photo code. It cannot. Codes are short URLs served by the provider that took your photo, and SpecSnap never receives your photo in the first place. Every check runs on the phone in your hand, nothing is uploaded, and there is no server holding an image for a code to point at.3 The privacy design and the code path are mutually exclusive by construction, and we would rather say so than imply otherwise. If a code is your load-bearing requirement, we lay out which UK tools genuinely operate that workflow in top tools for UK passport renewal photos.
What SpecSnap does is the other half of the problem. On the upload path, the missing piece is not the file. It is the second opinion the booth was selling you. SpecSnap runs the spec check on device before you export: framing, head size, eye line, background, focus, and the byte budget for the destination portal.3 For a UK renewal that means confirming the export clears 600 by 750 pixels and lands between 50 KB and 10 MB before you go anywhere near the form.
The economics are unremarkable in a useful way. A single export is $0.99 and unlimited exports for a year are $4.99.5 You can run every spec check first and see the result on a watermarked preview before paying anything, which matters here because the thing you actually want to buy is the verdict, not the file.3 More on how that validation works in on-device passport photo validation.
The trade is real and it points both ways. You get privacy, no account, and a check before you submit. You do not get a photo code, and you do not get a human reviewer signing off. You are the last approver, working from a checklist the app has already run.
Ireland runs the same idea with one real difference
Ireland's Passport Online uses the same mechanism under a different name. The Department of Foreign Affairs runs an ID Photo Code system, and you receive a unique code from a participating photo provider that the online application uses to fetch your photo.6
The difference is in the alternative path. Ireland also lets you submit a photo taken on a phone, tablet or computer, but it is explicit that "you cannot take a selfie" and that you need someone to help you take it.6 The framing rule is different too. The photo must capture you from head to mid torso, and it gets cropped to passport dimensions during the application rather than before it.6 The photo must have been taken in the last six months, and if it fails the guidelines the Passport Service contacts you.6
That is a meaningfully different design from the UK's. Ireland asks for a wider frame and does the cropping itself. The UK asks you to arrive with the crop already correct. If you hold both passports, do not assume one photo serves both applications.
FAQ
Can any app give me a GOV.UK digital photo code?
Only an app operated by a provider that runs the code infrastructure. The code is a short URL pointing at your photo on the provider's server,1 so issuing one requires hosting the image. Apps that process everything on your device, SpecSnap included, cannot issue a code.3 They produce a compliant file for the upload route instead.
Is the code better than uploading my own photo?
GOV.UK says photos from a booth or shop "are more likely to be approved than a photo taken using your own device."2 It does not say a self-uploaded photo is unacceptable, and the published file requirements exist precisely because that route is supported.2 Treat the code as the lower-variance option rather than the only valid one.
How many characters is a photo code?
It is not a fixed character count, which is why the numbers you find online disagree. HMPO's provider specification describes a short URL with a sub-domain of 1 to 6 characters, a top-level domain of 2 to 3, and a path of 6 to 8, for example photo.co/yh8Y6K2s.1 Type it exactly as printed.
What do I do if my code does not work?
Go back to the provider that issued it. The photo sits on their infrastructure and the code resolves to their server,1 so they are the only party who can reissue or troubleshoot it. HMPO's guidance requires providers to publish contact details for exactly this situation.1
Do I need a code for a paper application?
No. The code exists to attach a digital photo to an online application.2 A paper application takes printed photos.
Does a photo code cost more than uploading a file?
Yes, because a code always involves a paid session at a booth or a shop, and uploading a file you took yourself costs nothing. Weigh that against the application fee of £102 online,4 and against the cost of waiting if a photo comes back rejected.
The short version
A UK digital photo code is a short URL that points at a photo held by the booth or shop that took it.1 You cannot make one yourself, and no on-device app can make one for you. The alternative is a file you upload, at 600 by 750 pixels or more and 50 KB to 10 MB, in colour, in focus and unaltered.2 GOV.UK considers the booth route more likely to be approved,2 so the question is really how confident you are in your own photo.
That is the gap SpecSnap is built for: it will not hand you a code, but it will tell you, on your phone and before you pay, whether the file you are about to upload actually meets the spec.3 Available on the App Store and Google Play.
Sources
Footnotes
-
passport.service.gov.uk: HMPO guidance for photo providers. "Photo booths and shops can give customers a photo code with their printed photos. When customers apply for a UK passport online, they enter the code to retrieve their digital photo. The photo is added directly to the passport application." The code is a short URL "in the format of sub-domain (1-6 characters), top-level-domain (2-3 characters), and path (6-8 characters)", example
photo.co/yh8Y6K2s. Providers must publish contact details for photo problems. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 -
gov.uk: "Get a digital passport photo from a photo booth or shop. Choose the option to get a code with your photos." Digital photos you upload yourself must be at least 600 pixels wide and 750 pixels tall, at least 50 KB and no more than 10 MB, in colour, clear and in focus, and unaltered by computer software. "Photos from a booth or shop are more likely to be approved than a photo taken using your own device." ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
-
specsnap.app: SpecSnap runs spec validation on the device, including framing, head size, eye line, background and the per-spec byte cap, with a free watermarked preview before export. Photos are not uploaded to a server. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
-
gov.uk: renewing or replacing an adult passport costs £102 online and £115.50 by paper form. ↩ ↩2
-
SpecSnap on the App Store: in-app purchases listed as Single Photo Export $0.99 and Annual Unlimited $4.99. ↩
-
ireland.ie: Irish Passport Online photo guidelines. A unique ID Photo Code from a participating photo provider is used to access your photo during the online application; alternatively a digital photo from a smartphone, tablet or computer is accepted, but "you cannot take a selfie" and you need someone to help take it. The photo must capture head to mid torso, is cropped during the application, and must have been taken in the last six months. The Passport Service contacts you if the photo does not meet the guidelines. ↩ ↩2 ↩3 ↩4