June 1, 2026/8 min read
    Requirements

    The GOV.UK Passport Photo Code Explained: What It Is and How It Works

    AP

    Alistair Parsons

    Biometric Software Lead & Founder

    What a UK passport photo code actually is, how it works behind the scenes, where to get one, and what to do if your code does not work.

    A passport photo code, also called an IDPC, is what you enter during a GOV.UK online passport application instead of uploading a photo yourself. You get one from a photo booth, a photo shop, or an online service, and entering it during your application retrieves your photo automatically and attaches it to your form.

    Most guides describe this as "a unique reference that links your photo" and leave it there. That is technically true but does not actually explain what is happening, where you can get a code, or the most useful thing to know: a photo code is not compulsory. You can apply for a UK passport online without ever touching the code system, simply by uploading a digital photo file directly.

    What a passport photo code actually is

    GOV.UK's own technical documentation, written for photo suppliers rather than applicants, explains the mechanism clearly. A digital passport photo code is not an arbitrary string generated at random. It is a shortened, cryptographically signed web address that points directly to your photo, which the provider has hosted securely on their own servers.

    When you enter the code during your GOV.UK application, the system sends a request to that address along with a signed authorisation token. The provider's system checks the signature against HMPO's published public key before releasing the image. This is why a code only works for the application it was generated for, why providers cannot retroactively swap the linked photo, and why HMPO — not the photo provider — controls when and how the image is actually retrieved.

    In plain terms: the photo code is a secure pointer to a photo, not the photo itself, and not a random reference number. It works because the photo provider has built (or licensed) a system that meets HMPO's technical specification for hosting, signing, and serving the image only to the passport application service.

    You do not have to use a photo code at all

    This is the single most useful thing to know and the thing most guides bury or skip entirely. GOV.UK gives you two routes for adding a photo to an online passport application, and a photo code is only one of them.

    Route one: get a photo code. Visit a photo booth, photo shop, or online service, get your photo taken or upload one, and receive a digital photo code. Enter the code during your application and your photo is retrieved and attached automatically.

    Route two: upload your own photo directly. Take a photo on your own phone or camera, following the standard requirements, and upload the image file yourself during the application. GOV.UK crops it to the correct dimensions for you. No code involved at any point.

    Both routes are equally valid and HMPO checks the photo against the same requirements either way. The code exists purely for convenience: it lets businesses offer a complete service (take the photo, generate the code, you walk away with nothing further to do) and avoids you having to manage an image file yourself. If you already have a verified digital photo, uploading it directly is just as acceptable as using a code, and is one fewer step.

    GOV.UK guidance does note that photos from a booth or shop are statistically more likely to be approved than a photo taken on your own device and uploaded directly. This is generally because professional setups produce fewer technical errors like shadows or incorrect head size, not because the upload route is treated differently by the system.

    Where to get a UK passport photo code

    Photo codes are issued by a range of providers, from self-service booths to staffed shops to online services. Where you get one affects price, convenience, and whether you also receive printed photos.

    ProviderHow it works
    iSnaps (Timpson kiosks)Self-service kiosk inside Timpson stores. Code printed on receipt alongside prints.
    Boots photo codeAvailable at Boots stores with a Photo-Me booth (not all branches). The Photo-Me machine generates the code, not Boots staff.
    Max Spielmann passport photo codeSelf-service booths inside Tesco, Asda, and Morrisons, plus staffed Max Spielmann shops, all produce a digital code alongside prints.
    Photo-Me boothsFound in many supermarkets, railway stations, and Post Offices. Code-capable on newer machines; check before relying on an older unit.
    Timpson (staffed)In-store staff take the photo and issue a code with prints. Free retake if something is wrong before you pay.
    Snappy SnapsStaffed service, code included as standard with passport photo prints.
    Online services (e.g. PassportApp)Verified digital photo and code generated from a photo taken on your phone. No travel required.

    Availability and pricing vary by location and provider. Confirm before a dedicated trip.

    How to use an iSnaps photo code online

    iSnaps is the self-service kiosk technology used inside Timpson stores for instant passport and ID photo printing. After taking your photo at an iSnaps kiosk, you receive printed photos and a digital photo code on your receipt.

    To use the iSnaps photo code online, start your passport application at gov.uk and choose the option to apply online. When the application reaches the photo section, select the option to use a photo code rather than upload a file. Enter the code exactly as printed on your receipt, including any letters and numbers in the correct case. The system retrieves your photo from the iSnaps hosting service and attaches it to your application automatically.

    If the code does not work the first time, double-check for easily confused characters (the letter O versus the number 0, the letter I versus the number 1) before assuming there is a fault. iSnaps codes are typically valid for around 30 days from issue.

    Boots photo code and Max Spielmann passport photo code

    Boots photo code

    Boots itself does not operate a staffed passport photo service or its own code system. Some Boots stores host a Photo-Me self-service booth, and it is this booth — not Boots as a retailer — that generates the digital photo code. Not every Boots branch has one. Use the Photo-Me finder at photo-me.co.uk to check whether your nearest Boots has a code-capable machine before visiting specifically for this.

    Max Spielmann passport photo code

    Max Spielmann operates both self-service booths and staffed shops inside Tesco, Asda, and Morrisons stores across the UK. Both formats produce a digital photo code alongside your printed photos. At the self-service booth, the code prints on your receipt after payment. At a staffed Max Spielmann shop, a member of staff hands you the code along with your prints after checking the photo for compliance.

    A photo code confirms a check happened, not that your photo will be accepted

    Getting a digital passport photo code means the provider's system checked your photo against HMPO's requirements at the moment the code was generated. It is not a guarantee that HMPO will accept the photo when your application is reviewed.

    HMPO periodically tightens the automated checking built into the GOV.UK online application. A photo that met requirements when a code was issued a few months ago can, in some cases, be flagged when it is finally reviewed if the standards have moved on in the meantime, or if the original check was less rigorous than the current one. This is uncommon, but it is the reason some providers offer a free retake or refund guarantee if HMPO ultimately rejects a photo their system passed.

    Two practical takeaways: get your photo code close to when you actually plan to submit your application rather than holding onto an old one, and check whether your provider offers a retake or refund guarantee in case of a late rejection.

    Digital photo codes are not just for passports

    The same underlying digital photo code system supports other applications. In Northern Ireland, the Driver and Vehicle Agency (DVA) accepts a digital photo code for online driving licence renewals and replacements, using the same principle as the HMPO passport system.

    For driving licences in England, Scotland, and Wales, DVLA operates its own separate digital photo process, which is similar in concept but is a distinct system from the HMPO passport code. If you need a photo code for a driving licence application, confirm with your photo provider which specific government service their code is built to support, since not every provider's code works across every system.

    What to do if your photo code does not work

    A small number of codes fail to work when entered. Before assuming something is seriously wrong, work through these steps in order:

    1. Check the code for typing errors. Codes are case-sensitive and often mix letters and numbers that look similar. Re-enter it carefully, character by character, comparing against the original receipt or email.
    2. Check it has not expired. Most providers keep a code valid for around 30 days from issue, though this varies. If your photo session was longer ago than that, the code has likely lapsed.
    3. Check you are using it on the correct application. A passport photo code only works for the GOV.UK passport application. It will not work on a driving licence application or any other government service unless the provider has explicitly confirmed cross-compatibility.
    4. Contact the provider who issued it. If the code looks correct and is within the validity window but still fails, the provider's photo hosting may be temporarily unavailable. Contact them directly.
    5. Use the upload route instead. If the code genuinely cannot be fixed, you do not need a replacement code at all. Upload a compliant digital photo file directly during the application instead. This bypasses the code system entirely.

    If you are close to a deadline and your code will not work, switching to the direct upload route is usually faster than chasing a replacement code from a provider. You only need a compliant digital image file, which you can get from a verified online service in minutes.

    Frequently asked questions

    What is an IDPC passport photo code?

    An IDPC, or photo code, is a short reference you enter during a GOV.UK online passport application instead of uploading a photo yourself. It is generated by a photo provider, such as a supermarket booth, Boots, Timpson, or an online service, and points to your digital photo, which HMPO retrieves automatically and adds to your application.

    Do I need a photo code to apply for a UK passport online?

    No. A photo code is one of two ways to add a photo to an online passport application, but it is not mandatory. You can instead upload a compliant digital photo directly from your own device during the application, and GOV.UK will crop it automatically. The code exists for convenience, not as a requirement.

    How long is a passport photo code valid for?

    Most providers keep a photo code valid for around 30 days from when it is issued, though this varies by provider. Check the receipt or confirmation from whoever issued your code for the specific expiry. If your code has expired, you will need a new photo and a new code, or you can upload a digital photo directly instead.

    Can I use a passport photo code for a driving licence?

    Yes, in some cases. The same digital photo code system supports Northern Ireland driving licence applications through the Driver and Vehicle Agency (DVA) for online renewals and replacements. For driving licences in England, Scotland, and Wales, DVLA uses a similar but separate digital photo system, so check with your photo provider which applications their code supports.

    What happens if my passport photo code does not work?

    First check you have entered the code exactly as given, since codes are case-sensitive and easy to mistype. If it still does not work, the code may have expired or the provider's photo hosting may be temporarily unavailable. Contact the provider who issued the code. If they cannot resolve it, you can upload a compliant digital photo directly instead of using a code, or get a new photo and a new code from a different provider.

    Where can I get a passport photo code near me?

    Supermarket booths (Tesco, Asda, Morrisons, all via Max Spielmann or Photo-Me), Boots locations with a Photo-Me machine, Timpson and Snappy Snaps staffed shops, and online services such as PassportApp all produce a digital photo code. Use each provider's store finder to check the nearest location, or use an online service to get a code without travelling at all.

    Sources: GOV.UK photo code guidance for photo suppliers; GOV.UK Get a passport photo, digital photos (gov.uk/photos-for-passports). All information correct as of June 2026.

    Compliance Verified: This guide has been technically reviewed and aligned with the 2026 ICAO (International Civil Aviation Organization) document 9303 standards used by international biometric border systems.

    Ready to create your passport photo?

    Get a compliant UK passport photo in minutes with our AI-powered service.

    Keep reading