UK Passport Photo Code: Troubleshooting Errors & Uploads
A technical guide to resolving common hurdles when submitting a UK passport photo online. It covers 'Photo Code Not Recognised' errors, file format conflicts like Apple’s HEIC, and the specific reasons why the GOV.UK automated checker might reject a DIY upload.
If you are staring at a red error message on the GOV.UK website after trying to submit your UK passport photo code, you aren’t alone. It is one of the most technical stages of the application. Usually, the problem isn't the person in the photo; it's a digital mismatch between your file and what the HM Passport Office (HMPO) system expects. Whether you have a code that isn't working or a digital file flagged as "too dark," this guide provides the technical fixes to get your online UK passport application photo accepted.
Immediate Fixes for Common Photo Submission Errors
Before digging into the technical specs, try these three immediate solutions to bypass common blocks:
The 15-Minute Rule and Typing Pitfalls
If you have just obtained your code from a high-street photo booth, the most common reason it isn't working is a synchronization delay. These booths upload files to a central database over a mobile connection; you should wait 15 minutes for the server to sync before entering the code on GOV.UK.
Additionally, check for visual ambiguity in the alphanumeric string. These receipts are often printed on thermal paper that smudges easily. Common transcription errors include mistaking a '0' (zero) for an 'O' (letter), or an 'I' (capital i) for a '1' (one). Generally, you do not need to type the hyphens included on the receipt.
File Format: The iPhone .HEIC Conflict
By default, modern iPhones save photos using the HEIF/HEIC format. While efficient for storage, the GOV.UK system requires files in .JPG or .JPEG format. If you are attempting a manual upload and the site rejects the file entirely without even checking the photo quality, check your file extension. You must convert the file to a standard JPEG before it will be processed.
Photo Code vs. Digital Upload: Which Method Wins?
When starting your application, you must decide between a retrieval code or a manual file upload. This choice often determines how smoothly your application progresses.
| Feature | Photo Code (Service/Booth) | Direct Digital Upload (DIY) |
|---|---|---|
| Technical Effort | Low (Type 12 characters) | High (Resize, crop, convert) |
| Failure Risk | Low (Pre-validated) | High (Manual errors) |
| Success Rate | High (Retrieved from secure server) | Variable (Subject to uploader timeout) |
| Convenience | Fast (Generated in seconds) | Manual (Multiple attempts often needed) |
When a Photo Code is the Best Choice
A UK passport photo code is a retrieval tool. When you use a specialist online service like Passport Photo Code, the service has already verified the dimensions, lighting, and background to meet official GOV.UK digital photo standards. When you enter the code, the HMPO system pulls a pre-validated file directly from a secure server, bypassing the upload errors associated with your local device's browser or connection.
When to Risk a Direct Digital Upload
This is the DIY route. You take a photo on your smartphone and upload the raw file. You act as the quality control officer. If your lighting is uneven or the file size is outside the 50KB–10MB range, the automated checker will flag it. According to consumer guides like Which? on passport renewals, DIY photos are the most common cause of application delays.
Decoding 'UK Passport Photo Code Not Recognised'
If the system tells you a code doesn't exist, it is usually a matter of database retention or formatting.
Mistyped Characters and Format Logic
Look closely at '5' and 'S' or '2' and 'Z'. If your code is 12 characters, ensure you haven't added an extra space at the end if you are copying and pasting from an email. Most systems are case-insensitive, but it is best to use capital letters as shown on your receipt.
Why Codes Expire or Fail to Activate
Most codes provided by supermarkets or high-street booths expire after 30 days. If you took your photo weeks ago, the code may have been purged from the provider's database. Specialist online services often have shorter retention periods for security; for instance, we retain photos for no longer than 48 hours to protect your privacy. You must enter these codes promptly after they are generated to ensure they are still active on the retrieval server.
Technical Barriers: Pixels, Ratios, and Backgrounds
If you have chosen to get a passport photo code online by uploading your own photo to a checker, or if you are uploading directly to GOV.UK, you must meet the biometric requirements set by the International Civil Aviation Organization (ICAO).
The 600x750 Rule and File Size Limits
Your photo must be at least 600 pixels wide and 750 pixels high.
- The Compression Issue: Photos sent via WhatsApp or Messenger are often compressed to under 40KB. The GOV.UK uploader requires a file between 50KB and 10MB.
- The High-Res Issue: Professional DSLR photos can exceed 15MB. You must downsize these files, or the government gateway may time out during the upload process.
Lighting and the 'Edge Detection' Problem
The background must be a light grey or cream. Many people use a white wall, but if the lighting is too bright, it creates a 'washout' effect. The AI software uses 'edge detection' to find the outline of your head. If your hair blends into a bright white background, the system will reject the photo for 'poor contrast'.
The Shadow Fix: To remove background shadows, stand about 50cm (20 inches) away from the wall. This allows the light to wrap around you, ensuring no dark shapes appear behind your head, which is a leading cause of rejection by the HM Passport Office: Photo Standards Guide for Examiners.
The Expat Conflict: Applying from Abroad
If you are a British national in the USA or Australia, local photo standards will likely cause a passport photo code not working error if you try to use local booth services.
US 2x2 Square vs. UK 35x45 Rectangle
In the United States, passport photos are 2x2 inch squares. The UK requires a 3:4 aspect ratio. If you upload a square US photo, the UK system will reject it for having the wrong 'head size' or incorrect proportions. To fix this, do not use the physical print from a local pharmacy. Instead, use a digital service to convert your photo into a UK-compliant file. For guidance on capturing the right image, see our guide on how to take a UK passport photo at home.
Understanding the GOV.UK 'Traffic Light' System
When you upload a photo, the automated checker provides instant feedback:
- Green: The photo meets basic technical criteria. However, this is not a guarantee of acceptance.
- Amber: Potential issues detected (e.g., shadows). You can submit, but a human may reject it later.
- Red: The photo is unusable and will block the application.
It is important to note that the AI only checks the technical data. A human examiner at HMPO will perform the final check, looking for details like hair across the eyes or a slight smile, which the AI might miss.
Frequently Asked Questions
How do I use a passport photo code?
Once you reach the 'How do you want to give us your photo?' screen in the online application, select 'I have a code'. Enter the 12-character alphanumeric string from your receipt. The system will then retrieve your validated photo automatically.
Why is my passport photo code not recognized?
This is usually due to a typo (confusing '0' with 'O'), an activation delay (wait 15 minutes after visiting a booth), or because the code has expired (most expire after 30 days).
Can I get a passport photo code from my own photo?
Yes. You can use an online service like Passport Photo Code to upload a photo taken on your smartphone. The service will check the photo and generate a code for you to use in your application.
Data Privacy and Final Submission Checklist
Before you finish, remember that a UK passport photo code is a temporary retrieval method. At Passport Photo Code, we purge uploaded photos within 48 hours to ensure your biometric data is secure.
Final Checklist:
- Format: Ensure it is a .JPG (not .HEIC).
- Expression: Neutral with no teeth showing.
- Glasses: Remove them to avoid reflections and frame shadows.
- Lighting: Ensure light is even on both sides of the face.
If technical errors persist with a manual upload, the most reliable solution is to get a passport photo code online. It removes the guesswork of pixels and file types, ensuring your online UK passport application photo passes both the automated and human checks without delay.

