Guide

Digital passport photo code: how it works and what to do if your photo is rejected

A photo code is a short web address that adds your digital photo to an online UK passport application. HM Passport Office (HMPO) sets no validity period for it: what counts is that the photo was taken in the last month. The application checks the photo automatically, and an HMPO examiner still makes the final decision.

Updated 28 October 2026

What it is
A short web address that adds your digital photo to an online passport application
Format
Sub-domain (1–6 characters), top-level domain (2–3) and path (6–8), for example photo.co/yh8Y6K2s
How long it lasts
No period set by HMPO: the photo must have been taken in the last month
Online check
Automatic, with the reason shown if there are errors; you can retake or override
Final decision
An HMPO examiner, who must reject a photo that does not meet the standards
On this page

What a passport photo code is

A photo code is a short web address (URL) that leads to your digital photo. HMPO's instructions to photo suppliers say: “Photo booths and shops can give customers a photo code with their printed photos.”

When you apply online, you enter the code and the application retrieves your photo. GOV.UK advises you to get your photo before you start, and to choose the option to get a code with your photos. You'll be asked for the code during the application, and your digital photo is then added to it.

Online services, such as Photonet, also deliver photo codes. Whatever the source, HMPO checks that all photos meet the rules for UK passports.

What a photo code looks like

HMPO asks suppliers to shorten the full HTTPS address of the photo, and to give it to customers as a photo code. The short address has three parts:

  • a sub-domain of 1 to 6 characters
  • a top-level domain of 2 to 3 characters
  • a path of 6 to 8 characters

HMPO's example is photo.co/yh8Y6K2s. Behind the code, the supplier hosts your photo as a JPEG file of 50KB to 10MB, and the passport service retrieves it when you enter the code.

How long a photo code lasts

HMPO sets no validity period for photo codes. Its instructions to suppliers list technical requirements, and none of them sets a retention or expiry period.

The rule that counts is about the photo: it must have been taken in the last month. HMPO caseworker guidance tells examiners to reject a photo that has clearly not been taken in the last month.

How long the link keeps working depends on the provider. Apply within a month of taking your photo. For each new passport, you need a new photo, even if your appearance has not changed.

How the online photo check works

The online application checks your photo when you add it. HMPO caseworker guidance describes the process:

  1. 1

    Automated check

    The system runs an automated technical check of your photo.

  2. 2

    Your review

    It then shows you the photo, so you can review it.

  3. 3

    The reason for a problem

    If there are errors, the check shows you the reason for the result.

  4. 4

    New photo or override

    You can take another photo, or override the warning. If you override it, you must explain why in the free-text field.

  5. 5

    The examiner's decision

    An examiner still looks at the photo, and must reject it if it does not meet HMPO's standards.

According to the same guidance, HMPO's back-office system also checks digital and paper photos automatically, for example your eye position and any head tilt.

If your photo is flagged or rejected

During the application. Read the reason the check gives. If your photo breaks a rule, replace it with a new photo that meets the rules. Override the warning only if you are sure the photo meets the rules, and say why.

After you apply. GOV.UK says your application will be delayed if your photos do not meet the rules. HMPO caseworker guidance adds:

  • the examiner must ask you for a new photo
  • if more than 2 photos have failed, HMPO must phone you to explain the problem before asking for another
  • if you refuse to send another photo, HMPO will not issue a passport
  • if you need to travel urgently, HMPO may issue a Restricted Validity Passport, even if your photos do not meet the standards

Photo code or a photo taken on your own device?

GOV.UK lists two ways to get a digital photo for an online application:

  • a photo code: you get your photo before you apply, then enter the code
  • your own device: you take the photo during the application, with someone to help you

GOV.UK says photos from a booth or shop are more likely to be approved than a photo taken using your own device. HMPO caseworker guidance also says examiners can accept selfies if they meet the other photo standards.

The same digital photo rules apply either way. See UK passport photo rules for the full list, with fees and processing times.

If you apply from outside the UK, the fees and processing times are different: see applying from outside the UK.

How Photonet delivers a photo code

Photonet sends your photo code by email, as a short link to enter in your online passport application. Half of all orders are delivered in under 15 minutes, and the vast majority within 24 hours.

Get your passport photo code

Take or upload your photo, and receive a photo code for your online UK passport application.

Frequently asked questions

How long is a passport photo code valid?

HMPO sets no validity period for photo codes. Your photo must have been taken in the last month, so apply within a month of taking it. How long the link keeps working depends on the provider.

Is there an official UK passport photo checker?

The online passport application has its own check. HMPO caseworker guidance says it runs an automated technical check when you add your photo, then shows you the photo and the reason for any errors. An HMPO examiner still makes the final decision.

What should I do if my photo code does not work?

Check that you entered it exactly, character by character. If it still fails, contact the provider that gave you the code: HMPO asks suppliers to tell customers how to contact them if there's a problem with their digital photo. For a Photonet code, use our contact page.

Can I override a photo warning?

Yes. HMPO caseworker guidance says you can override a photo warning, but you must give the reason in the free-text field. An examiner still checks the photo and must reject it if it does not meet the standards.

Will a rejected photo delay my passport?

Yes. GOV.UK says your application will be delayed if your photos do not meet the rules. HMPO caseworker guidance says the examiner must then ask you for a new photo.

Official sources

The rules on this page come from these official pages, which take precedence.

Photonet is a private photo service, independent of HM Passport Office and the UK government. You apply on the official website (gov.uk, passport.service.gov.uk); Photonet provides the compliant photo and, where needed, its digital photo code.

Written by the Photonet team from the official sources cited; every version is reviewed before publication.