How to verify the validity of a Spanish passport online ?
Many business or personal processes require presenting proof of identity: recruitment, rentals, KYC processes, etc.
Nowadays, documents are usually scanned or photographed before being sent by email; therefore, it becomes complex to ensure these documents are authentic and have not been modified with image editing software like Photoshop. Our product addresses this issue and allows you to:
- extract information from the MRZ (Machine Readable Zone) of identity documents directly online, analyze them, and verify the security keys to ensure their authenticity
- validate the format of the document number
All of this in just a few seconds!
How does the Spanish passport validity verification work ?
After your purchase is validated, you will receive an email with credentials to log into our identity web application (please check your spam folder a few minutes after purchase if you do not receive the activation email).

Identity web application dashboard
-
Access to the platform
-
You log into the web application using the credentials sent by email after your purchase or registration.
-
-
Selection of verification mode
-
From your dashboard, you choose the option “Verify an identity document.”
-
-
Document upload
-
You upload one or more scans (front/back) of the identity document, as images (.jpg, .png) or PDFs.
-
No further manipulation (cropping, rotation, etc.) is required: the system automatically detects the orientation and the MRZ zone.
-
-
Automatic analysis
-
The service reads the MRZ (Machine Readable Zone) and verifies the security keys.
-
It checks essential information (card number, date of birth, expiration date, etc.) as well as the document’s integrity via check digits.
-
-
Instant result
-
The analysis results appear immediately in the interface as a status (pass/fail) and a detailed report (PDF, JSON, or XML).
-
The report specifies the recognized fields and the validity of each element (control keys, date consistency, etc.).
-
-
Download and archiving of reports
-
You can download or view the PDF report directly.
-
Data remains available in the history for later consultation, but you have the option to delete it at any time (confidentiality guarantee).
-
- Optional integration (API)
-
If you have a CRM or ERP, you can use the API to automate the verification: the document is sent to the service, and the report (or simply the status) is returned to your internal software.
- You can find all details on these links:
-
-
Account and credits management
-
Your analyses are only charged when the MRZ detection is successful (i.e., when information has been properly extracted).
-
You can check your credit balance at any time and, if needed, subscribe to a plan suited to your needs.
-
-
Support and assistance
-
In case of difficulty or questions, you can contact support via email or through the integrated help interface.
-
Additional resources (guides, FAQs, API documentation) are also available online.
-
You can find all the details on the product page Identity web suite.
Which elements are validated during Spanish passport validity verification?
Spanish passport document number
The document number follows an official pattern from the ministry (3 letters followed by 6 digits): we verify it to validate the number.

MRZ information
We verify and validate all MRZ information as well as the security keys.
Use cases
-
Recruitment and onboarding
When you need to validate a candidate’s identity before signing a work contract, online verification of an identity document guarantees document compliance and limits fraud risks. You save time on administrative tasks and provide a smoother experience for your future employees. -
Real estate rental
When signing a lease, you can require verification of identity documents to validate the tenant’s reliability. This step ensures that the provided document is authentic and that information (name, birth date, etc.) has not been modified or forged. -
KYC Process (Know Your Customer)
In the banking, financial sector, or for service providers subject to anti-money laundering and fraud prevention obligations, identity validation is essential. MRZ reading and security key verification allow compliance with current regulations while simplifying checks. -
Registration for an online service
Whether for access to a gambling platform, online trading, or any other service requiring proof of majority or strong authentication, automatic identity document control quickly verifies that the user meets the legal requirements. -
B2B relationships or partnerships
In certain partnerships or commercial contracts, an identity document may be required to confirm the identity of a partner or legal representative. Automated identity document verification helps secure transactions and builds trust between parties.
Professionals, automate identity document verification within your CRM / ERP / Business application!
We offer subscriptions that may better fit your needs! You will find all the details on the pricing page.
We also offer a service to perform verification of all identity or resource documents via API, in addition to our web application, allowing smooth integration with your CRM / ERP / Business application! You can find all details on these links :
How are the results of the Spanish passport validity verification presented?
Besides the web application, analysis results are available for download in PDF / JSON / XML formats:

What document formats are accepted?
You can submit your documents as jpg / jpeg / png images or PDFs.
Scans/photos do not need to be cropped or edited: they are automatically detected during Spanish passport validity verification.
You can upload front and back of the document on the same scan in any order (front first and back below, or vice versa): they will be sorted and recognized without issue.
Am I charged if information is not correctly extracted during Spanish passport validity verification?
The answer is no! Only a correctly recognized Spanish passport is chargeable!
If characters are not properly detected (which can happen with poor-quality photos, for example), you can correct them to ensure a reliable analysis.
Details are shown in this video:
What is the Spanish passport MRZ?
An automatic reading zone, or optical reading zone, is an area on an official document reserved for reading, identification, and validation of that document.
Documents such as passports, national identity cards, residence permits, and driver’s licenses may or must include, depending on the country and document version, an optical reading zone.
It is located in the lower part of identity documents: it contains all information present on the document with security keys to verify their authenticity and that they have not been altered.
The information varies depending on the document type.
How is it composed?
Passports have two lines of text, each containing alphanumeric characters that allow Spanish passport validity verification directly online.
What data is extracted during Spanish passport validity verification?
Data extracted from the MRZ are as follows:
- First line:

- Document Type: A code indicating the document type, represented by the letter “P.”
- Type: a character for countries distinguishing passport types.
- Country Code: 3-character issuing country code.
- Name and Given Names: Last name and first name separated by two “<“, then completed by “<“.
- Second line:

- Document Number: 9 alphanumeric characters.
- Check Digit: 1 numeric character, check digit for the document number.
- Nationality: 3 characters indicating nationality according to the ISO 3166-1 alpha-3 standard.
- Date of Birth: 6 numeric characters (year in two digits, month and day in YYMMDD format).
- Check Digit: 1 numeric character, check digit for the date of birth.
- Sex: 1 character, “M” for male, “F” for female.
- Expiration Date: 6 numeric characters (year in two digits, month and day in YYMMDD format).
- Check Digit: 1 numeric character, check digit for the expiration date.
- Personal Number: 11 alphanumeric characters, used by some countries.
- Check Digit: 1 numeric character, check digit for the personal number (or “<” if only chevrons).
- Check Digit: 1 numeric character, overall check digit.
Personal data
You can delete all data once the report is downloaded: simply delete the analysis from the web interface history! The data are also automatically deleted after 3 months.
You can find details about personal data on our dedicated page : Privacy Policy.
Terms and conditions
You can find the details of our terms and conditions at the following address : TrustDocHub Terms and Conditions.
Laura V. (verified owner) –
Very efficient tool for verifying the MRZ of Spanish passports.
Miguel Y. (verified owner) –
Accurate results, but the website design could be improved.
Isabel B. (verified owner) –
Fast results, but the instructions could be more detailed.
Santiago J. (verified owner) –
Affordable and met all my expectations.
Elena S. (verified owner) –
Fast and precise results. Excellent tool!
Alicia H. (verified owner) –
The service was accurate and reliable, no issues at all.
Diego Z. (verified owner) –
Straightforward and easy-to-use service! Highly recommended.
Carlos R. (verified owner) –
The MRZ verification service for Spanish passports was fast and reliable.
Sara G. (verified owner) –
The service was good, but it took slightly longer than I anticipated.
José C. (verified owner) –
Accurate results, but the website design could be improved.
Manuel L. (verified owner) –
Affordable and met all my expectations.
Lucía M. (verified owner) –
Very efficient tool for verifying the MRZ of Spanish passports.
Antonio K. (verified owner) –
The MRZ verification service for Spanish passports was fast and reliable.
María T. (verified owner) –
The service was accurate and reliable, no issues at all.
Adriana W. (verified owner) –
Fast results, but the instructions could be more detailed.
David N. (verified owner) –
Ideal for professionals needing quick MRZ verifications.
Alejandro P. (verified owner) –
Straightforward and easy-to-use service! Highly recommended.
Javier F. (verified owner) –
Good service, but the payment process was slightly confusing.
Carmen D. (verified owner) –
A useful tool, but it could support additional languages.