How to verify the authenticity of a Spanish passport online?
Many business or personal processes require the presentation of an identity document: 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 such as Photoshop.
Our product addresses this issue and allows:
- extracting information from the MRZ band of identity documents directly online, analyzing it, and verifying the security keys that ensure their authenticity
- validating the format of the document number
All this in just a few seconds!
Which elements are validated during the Spanish passport validity check at the “Standard” level?
Full MRZ reading and validation
We automatically perform OCR reading of the MRZ zone, then verify and validate all extracted information along with the associated security check digits.
This makes it possible to confirm data consistency (document number, dates, identity) and quickly detect errors or attempted tampering.

Which elements are validated during the Spanish passport validity check at the “Plus” level?
The document number of the Spanish passport
The document number corresponds to an official ministry pattern: we verify that this is indeed the case in order to validate it.

Enriched data with the “Id Plus” section
With the Plus analysis level, your identity verification is enriched with additional information grouped in a dedicated “Id Plus” section, available both in the web application and in PDF / JSON / XML reports.
This advanced analysis cross-checks MRZ data with the document’s personal information, providing a more complete view of the verified identity and strengthening the detection of inconsistencies.
Web app “Id Plus” section
PDF report “Id Plus” section
Advanced Forensic Analysis with the “Pro” level
With the Pro analysis level, verification goes beyond MRZ data: the system also analyzes the uploaded file itself to detect manipulations invisible to the naked eye.
This forensic analysis includes in particular:
– extraction and analysis of file metadata
– document integrity verification
– detection of modified documents or files generated from templates (Photoshop, recomposed scans, etc.)
Even if the MRZ is valid, altered or artificially created documents are identified thanks to these advanced checks.
Forensic analysis runs in parallel with MRZ reading, and results are available within seconds in the web application as well as in the detailed report.
All common formats are supported: images (JPG, PNG, WebP…) and PDF documents.
Results are grouped in a dedicated “Forensic” tab, with detection scenarios and integrity indicators, helping you quickly identify document fraud attempts.
The “Forensics” tab of the detailed Pro-level report

Video demonstration of the Forensic analysis for the “Pro” level
How does the Spanish passport validity verification work?
After your purchase is confirmed or after you sign up, you will receive an email with your login details to access our identity verification web app (please check your spam folder if needed).
In just a few simple steps, you can verify an ID card or any other official document directly online.
1. Access the web app
Log in to your secure workspace using the credentials you received by email.
From your dashboard, select “Verify an identity document”.
2. Upload your document
Upload the scan or photo of the identity document (front/back), in an image format (JPG, PNG, WebP…) or PDF.
No preparation is required: the system automatically detects the document orientation as well as the MRZ area.
3. Automatic document analysis
The platform instantly performs:
– OCR reading of the MRZ
– validation of security check digits
– data consistency checks (document number, dates, identity…)
– forensic file analysis (Pro level)
This step quickly detects inconsistencies, input errors, and potential document fraud attempts.
4. Instant results and detailed report
Results are displayed immediately as a status (passed / failed), along with a complete report available in PDF, JSON, or XML.
Each field is detailed: recognized data, check digits, information consistency, and integrity indicators.
Reports remain available in your history and can be deleted at any time (privacy-friendly).
5. Credits and account management
Credits are deducted only when the MRZ is successfully detected.
You can check your balance at any time and subscribe to a plan that matches your analysis volume.
Example: verifying an identity document
The front and back of the ID card are shown in the video example below, but please note that only the back (with the MRZ) is required to analyze a document.
Support and guidance
Have a question or a specific need? Our support team is available by email or via the built-in help interface.
Additional resources (guides, FAQ, documentation) are also available to help you.
For professionals
Do you want to integrate identity document verification into your business workflows (KYC, onboarding, recruitment, compliance)?
We offer subscription plans tailored to professional needs, as well as a complete solution to analyze identity documents and PDF files through our web app.
Common use cases
Recruitment & onboarding
Quickly validate a candidate’s identity before signing a contract and reduce fraud risks.
Real estate rental
Verify the authenticity of documents provided by a tenant and secure your application files.
KYC & compliance
Automate identity verification to meet regulatory requirements while speeding up your checks.
Signing up for an online service
Check users’ age and identity for sensitive platforms.
B2B relationships & partnerships
Secure your collaborations by validating the identity of legal representatives.
How are the results of the Spanish passport validity verification analysis presented?
Besides the web application, the analysis results are available for download in PDF / JSON / XML formats:

What document formats are accepted?
You can send your documents as jpg / jpeg / png images or as PDFs.
Scans/photos do not need to be cropped or edited: they are detected automatically during the Spanish passport validity verification.
It is possible to send the front and back of the document in the same scan and in any order (front first and back below, or vice versa): they will be sorted and recognition will be done without any problem.
Am I charged if the information is not correctly extracted during the Spanish passport validity verification?
No. You are never charged as long as the MRZ of the Romanian ID card has not been correctly detected and analyzed.
Billing applies only to successfully recognized documents — meaning when the data can be automatically extracted, validated, and verified.
If the photo quality is low or some characters are not properly detected, you can manually correct the fields to obtain a reliable analysis — with no credit loss.
👉 Result: zero risk of unnecessary charges, and a verification process you can always rely on.
Discover the full workflow in the video below:
How does Spanish passport validity verification work?
A machine-readable zone (MRZ) is an area on an official document reserved for reading, identification, and validation of that document.
Thus, documents such as passports, national identity cards, residence permits, and driver’s licenses may or must contain, depending on the country and document version, a machine-readable zone.
It is located at the bottom part of identity documents: it contains all the information present on the document with security keys that allow verifying their authenticity and that they have not been altered.
The information found varies depending on the type of document.
How is the Spanish passport MRZ line constituted?
Passports have two lines of text, each containing alphanumeric characters that allow verifying the Spanish passport validity directly online.
Why use this method to detect fraud?
The data found there are passport data protected by multiple validation keys, making their modification difficult. It is therefore one of the verification tools used by airport security to ensure that identity documents have not been forged.
What data is extracted from a Spanish passport MRZ band?
The data extracted from the MRZ band are as follows:
- First line:

- Document Type: A code indicating the document type, represented by the letter “P.”
- Type: one character for countries that distinguish between passport types.
- Country Code: 3 characters of the issuing country.
- Name and Given Names: Name and first names of the person separated by two “<“, then completed by “<“.
- Second line:

- Document Number: 9 alphanumeric characters.
- Check Digit: 1 numeric character, check digit of 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 of 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 of the expiration date.
- Personal Number: 11 alphanumeric characters, used by some countries.
- Check Digit: 1 numeric character, check digit of the personal number (or “<” if only chevrons).
- Check Digit: 1 numeric character, overall check digit.
Personal data & privacy
Protecting your data is a top priority.
After downloading the report, you can immediately delete the analysis from your secure account history. This gives you full control over your documents and personal information.
By default, all data is automatically deleted after 3 months, in line with GDPR best practices.
Our platform is designed to ensure the confidentiality of uploaded documents and the security of all processing — whether for occasional or professional use.
👉 Find all details about personal data management on our dedicated page: Privacy Policy.
Terms and Conditions
Service usage terms, billing information, and your rights are detailed in our Terms and Conditions.
👉 View the full Terms and Conditions here: TrustDocHub T&C.








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.