Digital Photo Code for UK Passport Application: Full Guide

By ExactFile Editorial Team · Published September 1, 2026 · Fact-checked September 1, 2026

Reviewed and republished from the drafts queue after fact-checking spec tables and tool links.

Digital Photo Code for UK Passport Application: Everything You Need to Know

If you're renewing your UK passport online, you've probably been asked for a digital photo code. It's one of the most common sticking points in the application process, and it trips up thousands of applicants every month. The good news: once you understand what the code is and how it works, it's one of the easiest parts of the whole renewal.

UK Passport Photo Tool — 35x45 mm (HMPO Compliant)

Free UK passport photo tool meeting HMPO rules: 35x45 mm print, correct head size, plain light-grey background, 600 DPI print + digital copy.

Open tool →

HEIC to JPG Converter

Convert iPhone HEIC photos to JPG that open anywhere — email, forms, Windows, Android.

Open tool →

This guide explains what a digital photo code actually is, how to get one, the rules your photo must follow, and what to do if you don't have a code at all.

What Is a Digital Photo Code for a UK Passport Application?

A digital photo code is a short alphanumeric code (usually a mix of letters and numbers) that links your online passport application to a photo stored by a photo provider. Instead of uploading the photo file yourself, you simply type the code into the application form, and HM Passport Office retrieves your photo directly.

Photo booths, pharmacies, and high-street photo shops across the UK can generate these codes. When you have your passport photo taken at a participating booth or shop, the photo is uploaded to a secure system, and you're given a printed receipt or slip containing the code. That code is usually valid for one month from the date the photo was taken.

The key benefit is quality control. Because the photo comes straight from a professional booth or shop, it's far more likely to meet HM Passport Office's technical requirements — correct size, lighting, background, and resolution — than a selfie taken at home.

How to Get a Digital Photo Code

There are a few straightforward ways to get one:

1. Photo booths

Many photo booths in supermarkets, train stations, and shopping centres now offer digital codes as well as printed photos. Look for booths advertising "ID photo" or "passport photo with digital code" services. You'll pay a small fee, take your photo following the on-screen guidance, and receive a code on your receipt.

2. Pharmacies and photo shops

High-street pharmacies and photo printing shops often provide passport photo services with a digital code option. A staff member takes the photo against a plain background and gives you the code, usually within minutes.

3. Taking your own photo (no code needed)

Here's the part many people don't realise: you don't actually need a digital photo code to apply online. The online application lets you upload a digital photo directly instead. The code is simply one option — a convenient one if you're using a booth or shop — but a compliant photo taken on your phone works just as well.

If you go down the DIY route, the important thing is meeting the official photo rules, which we'll cover next. Tools like our UK passport photo tool can crop and size your photo correctly so it's ready to upload.

UK Passport Photo Rules You Must Follow

Whether you use a photo code or upload your own image, HM Passport Office checks every photo against strict standards. Photos that fail are one of the most common reasons applications get delayed.

Your photo must:

For digital uploads, the photo must be a clear, in-focus colour image. If your phone saves photos in HEIC format (common on iPhones), you may need to convert the file before uploading — our HEIC to JPG converter handles this in seconds.

If your photo file is the right composition but the wrong dimensions, the passport photo resizer can adjust it to the correct proportions without distorting your face.

How to Use the Code in Your Online Application

Using the code is simple:

  1. Start your passport renewal or application at the official government online service.
  2. When you reach the photo section, choose the option to enter a photo code rather than uploading a file.
  3. Type the code exactly as it appears on your receipt — codes are case-sensitive in some systems, so copy carefully.
  4. The system retrieves your photo and shows you a preview. Confirm it looks correct.
  5. Continue with the rest of your application.

If the code doesn't work, check the expiry date first — codes typically expire after one month. Also double-check for mistyped characters (it's easy to confuse 0 and O, or 1 and I). If the code has expired, you'll need a new photo.

Common Mistakes That Get Passport Photos Rejected

Even with a digital code, photos can be rejected. The most frequent problems include:

If you're taking your own photo at home, have someone else take it rather than using a selfie. Stand about 1.5 metres from a plain wall, use natural daylight from a window in front of you, and take several shots so you can pick the best one. Then check the dimensions with our image resizer before uploading.

Digital Photo Code vs Uploading Your Own Photo

Which route should you choose? Here's a quick comparison:

Photo code advantages: - Professional lighting and setup reduce rejection risk - No need to worry about file formats or sizes - Quick if there's a booth nearby

Uploading your own advantages: - Free if you already have a suitable photo - No trip to a booth or shop required - You control retakes until you're happy - Works well if you prepare the image properly with a dedicated tool

Neither option is "better" — both go through the same automated and human checks at HM Passport Office. Choose whichever is more convenient for you.

FAQ

Is a digital photo code mandatory for a UK passport renewal?

No. The code is optional. When you apply online, you can either enter a photo code from a booth or shop, or upload a digital photo directly from your device. Both methods are fully accepted.

How long is a digital photo code valid for?

Most codes are valid for one month from the date the photo was taken. If your code expires before you submit your application, you'll need to have a new photo taken.

How much does a digital photo code cost?

Prices vary by provider, but booths and shops typically charge a modest fee for a passport photo with a digital code. Taking your own compliant photo at home and uploading it yourself costs nothing.

Can I use the same photo code for more than one application?

No. Each code is linked to a single photo and is intended for one application. If you're applying for passports for multiple family members, each person needs their own photo and code.

What happens if my photo is rejected after I apply?

HM Passport Office will contact you, usually by email or text, asking for a replacement photo. You can then upload a new one or provide a new code. This delays your application, so it's worth getting the photo right the first time.

Can I take my own passport photo on my phone?

Yes, as long as it meets all the rules: plain light background, neutral expression, no shadows, and no filters. Have someone else take it, check it carefully against the requirements, and use a resizing tool to get the dimensions right before uploading.

Final Thoughts

The digital photo code sounds more complicated than it is. It's simply a shortcut that connects a professionally taken photo to your online application — useful, but not essential. If you'd rather skip the trip to a booth, a well-lit photo taken at home and properly prepared will do the job just as well.

Whichever route you take, the rules are the same: plain background, neutral expression, no glare, and a recent, unedited image. Get those right, and your photo — and your application — should sail through.

About the author

ExactFile Editorial Team — The ExactFile Editorial Team writes and maintains every guide on this site. Each article is checked against the tool it describes, and official photo/PDF specifications are re-verified against the issuing authority's published requirements before we mark a guide as up to date.

Read more about how we research, test, and verify every guide.