Search for a tool
French ID Card

Tool to understand and calculate the digits and information present on French identity cards (the lines of characters at the bottom of the card)

Results

French ID Card -

Tag(s) : Fun/Miscellaneous

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'French ID Card' tool for free! Thank you!

French ID Card

Card Code Generator (2 or 3 lines)





//



//

ID Card Checker (3 rows)




Checksum Calculator


Answers to Questions (FAQ)

What is the French ID card code? (Definition)

The French identity card contains an optical reading strip written in black on a white background at the bottom of the card. It contains all card information in a structured format.

What does the French ID card code mean? (2021 version)

The French identity card (European version 2021) contains 90 characters on 3 lines (of 30 characters each). The first line begins with the letters ID followed by the country code of France: FRA, explanations:

PositionMeaning of content
1-2Always the 2 letters ID (for IDentity)
3-5Always the 3 letters FRA, ISO3166 country code on 3 characters
6-14Official document number (Card number composed of 9 alphanumeric characters)
15Checksum for Card number
16-30Empty/Not used (filled with ‹)

Example: ID FRA 123456789 X ‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹

The second line begins with the date of birth followed by the sex and the expiry date, explanations:

PositionMeaning of content
1-2Year (on 2 digits) of birth
3-4Month (on 2 digits) of birth
5-6Day (on 2 digits) of birth
7Birthdate checksum
8Sex (M or F)
9-10Year (on 2 digits) of expiry of the card
11-12Month (on 2 digits) of expiry of the card
13-14Day (on 2 digits) of expiry of the card
15Expiry date checksum
16-18Always the 3 letters FRA, for the nationality of the holder
19-29Empty/Not used (filled with ‹)
30Checksum for document number control key concatenated with date of birth and date of expiry

Example: 990130 X M 490101 X FRA ‹‹‹‹‹‹‹‹‹‹ X

The third line contains the name of the cardholder:

PositionMeaning of content
1-30Family name and first name(s) formatted in uppercase without accent with the character ‹ replacing any non-alphabetic character with a double chevron ‹‹ to mark the end of the name and therefore the beginning of the first name.

Example: DUPONT‹‹MICHEL‹JEAN‹‹‹‹‹‹‹‹‹‹‹

What does the French ID card code mean? (1995 version)

The French identity ID card (1995 version) contains 72 characters on 2 lines (36 characters each). The first line starts with the letters ID followed by the country code of France: FRA, explanations:

PositionMeaning of content
1-2ID
Always the 2 letters ID (for IDentity)3-5
FRAAlways the 3 letters FRA, ISO3166 country code on 3 characters
6-30DCODE‹FR‹‹‹‹‹‹br>‹‹‹‹‹‹‹‹‹‹‹‹
Lastname on 25-character, formatted in uppercase without accent, with the character ‹ replacing any non-alphabetical character.31-33
Department number on 3 digits (before 2017 the department was on 2 digits followed by the number of the sub-prefecture)34-36
ID of the agent having registered the card

Example: ID FRA DCODE ‹FR ‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹ 001 123

The second line begins with the date of issue of the card followed by additional information including checksum codes, explanations:

PositionMeaning of content
1-2Year (on 2 digits) of creation of the card
3-4Month (on 2 digits) of creation of the card
5-73-digit department number (same as characters 31-33 of line 1)
8-12Numeric code assigned by the card management system (chronologically incremented code)
13Control key of the preceding 1-12 characters
14-27SITE‹‹‹‹‹‹‹‹‹‹
first name on 14-character, formatted in uppercase without accent, with the character ‹replacing any non-alphabetic character and a double chevron ‹‹ for to separate the possible second and third given names.28-33
Birth date in the format YYMMDD34
Date of birth control key (characters 28-33)35
Sex (M or F)36
Control key of all previous characters (first line of 36 characters + second line of 35 characters)

Example: 19 06 001 12345 6 SITE ‹‹‹‹‹‹‹‹‹‹ 090101 5 M 1

What is the number of the French ID card?

In the 2021 version, the identity card number consists of characters 6 to 14 of the first line (the number consists of 9 alphanumeric characters)

Example: DOCUMENT NUMBER XXXXXXXXXX

In the 1995 version, the number consists of the first 12 digits of the second line.

Example: CARTE NATIONALE D'IDENTITÉ NºXXXXXXXXXXXX

How to calculate checksums?

The checksum is a number (from 0 to 9) it is calculated by associating with each character a value: 0 for the character , 1,2,3,4,5,6,7,8,9 for numbers and 10 for A, 11 for B, etc. up to 35 for Z.

For each character, multiply it by one factor (among 3), the first will be multiplied by 7, the second by 3, the third by 1, then again the fourth by 7, the fifth by 3, etc.

Sum all the numbers obtained, and record the last (unit) digit of the total number.

This digit is the control/checksum key.

Example: Calculate the sum and the control key for DCODE1‹, the sum is 91+36+24+91+42+1+0=285 and so the key is 5 :

D13*7=91Σ=91
C12*3=36Σ=127
O24*1=24Σ=151
D13*7=91Σ=242
E14*3=42Σ=284
11*1=1Σ=285
0*7=0Σ=285

How to generate a fake ID card?

The dCode generator is limited to public data, the numbers and internal codes provided by the administration are private. Reminder: using a fake document/identity card/paper is punishable by 5 years' imprisonment and a minimum fine of €75000.

Source code

dCode retains ownership of the "French ID Card" source code. Any algorithm for the "French ID Card" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "French ID Card" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "French ID Card" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "French ID Card" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/french-id-card
In a scientific article or book, the recommended bibliographic citation is: French ID Card on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/french-id-card

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'French ID Card' tool for free! Thank you!


https://www.dcode.fr/french-id-card
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback