CyanframeTOOLS · PHOTO LAB · GUIDES

Cyanframe › Guides

The ePhoto code for French documents: a guide for Moroccans abroad

Last updated: November 6, 2026 · By Rachid Amesrouy

Quick answer

An ePhoto code is a 22-character code issued with an approved digital photo, required by the French administration for residence permit (ANEF), driving licence (ANTS), DCEM and titre de voyage applications. It is single-use, valid for 6 months and cannot be swapped between ANTS and ANEF. The photo is 35×45 mm on a light, non-white background.

Every summer, Moroccans living in France come into our shop in Tiznit with the same question: “I need a photo with a code to renew my residence permit — can it be done here?” For many online applications the French administration no longer accepts a paper photo alone; it asks for a digital photo with an ePhoto code. This guide explains what the code is, which documents need it, and how to use it without wasting it.

What is an ePhoto code?

An ePhoto code, in French code photo-signature numérique, is a 22-character alphanumeric code issued with your photo. It links your digital photo and signature to your online application, so you don’t need to scan or post the photo. When you enter the code in the application, the administration retrieves your photo directly from the system.

You get the code from a photographer, photo booth or app approved for the service, usually printed on the photo sheet and sent by email right after the photo is taken.

Which documents need it?

DocumentPlatform
Residence permit (titre de séjour) and renewalsANEF
French driving licence (first licence, renewal, loss…)ANTS
Travel document for foreign minors (DCEM)ANEF
Titre de voyage (travel document for refugees and some other cases)ANEF

Always choose the correct document type when ordering the code, because ANTS and ANEF do not allow codes to be exchanged: a code taken for a driving licence won’t work for a residence permit.

Rules you need to know

These rules are printed on the receipt that comes with every code, and explained in guides such as Legalstart’s guide to the digital photo-signature.

The photo itself

The photo follows French document photo standards:

Examples of a correct ID photo and rejected ones: smiling, glasses, shadow
A correct photo and three common mistakes. Illustrations edited with AI from a photo of Rachid Amesrouy.

These are the same tips the ePhoto app shows before every photo: a well-lit face, mouth closed with no smile, glasses off, and hair behind the ears. The app also has an option for medical situations that make the photo difficult (disability, strabismus, facial paralysis…).

Photos of babies and children under 3

Young children have a dedicated option in the app, and the photo is taken by an adult. The rules:

Examples of a correct baby photo and rejected ones: toy, dummy, hat
The child alone, with no toy, dummy or hat. AI-generated illustrations, not a real child.

From our experience at the shop: baby photos work best when the child is fed and calm, and when we shoot quickly during a quiet moment rather than making many tiring attempts.

Getting a code while you are in Morocco

You don’t have to wait until you are back in France. At Photo Labo El Mechouar in Tiznit we do ePhoto photos through the ePhoto app:

  1. Tell us the document: residence permit, driving licence, DCEM or titre de voyage.
  2. We take the photo to the French standards, on a suitable light background.
  3. You get your ePhoto code immediately, plus printed photos if you need them.
  4. You enter the code in your ANEF or ANTS application from your phone or computer.

Mistakes that waste a code

Frequently asked questions

Do I need an ePhoto code for a Moroccan passport or ID card?

No. The ePhoto code is for French documents. Moroccan documents have their own standards: see visa and document photo sizes.

Does the code work for a French (Schengen) visa?

No. French visas are applied for through the visa centre with a printed photo. See Schengen visa photo.

I lost my code — what now?

Search your email first. If you can’t find it, the simplest option is a new photo with a new code, especially if the old one was close to expiring.

How long does it take to get the code?

A few minutes: you receive the code right after the photo is taken.

Sources

We review this information regularly, but requirements can change: always check with the official authority before you apply.

Try the free passport photo tool

Tools

Related guides