MRZlabDEMO

MRZ testing, made simple.

Check a machine-readable zone or create test data in seconds.

TD1 · TD2 · TD3 · FR LICENCE

01 / INPUT

Check an MRZ

Text input

Paste the lines from a document, keeping each on its own row.

Auto-detect identifies the layout and issuing country.

No text entered

02 / RESULTS

Validation results

Ready

Your results will appear here

See what passes, what needs attention,
and how every check digit is calculated.

StructureCheck digitsCountry rules
Supported documents & rules15 document profiles · IDs, residence permits, passports & driving licences

Profiles describe encoded MRZ rules, not every visual edition. National checks apply only to fields available in the MRZ.

DOCUMENTEDITIONS / LAYOUTCOUNTRY CHECKSSOURCES
France · Identity card2021 card3 lines × 30 charactersDocument code, issuing country, number shape and nationality.
Spain · DNI2006 / 2015 / 20213 lines × 30 charactersSupport-number shape; NIF mod-23 letter; optional-field padding.
Spain · Permiso de residencia2020 residence card (TIE)3 lines × 30 charactersResidence card support number; NIE mod-23 letter; holder nationality.
Portugal · Citizen Card2007–2024 optical Citizen Cards3 lines × 30 charactersExtended document number; national number checksum.Early non-optically-readable 2007 card revisions excluded.
Netherlands · ID (2014)2014–July 2021 · BSN in MRZ3 lines × 30 charactersDocument-number shape; BSN 11-test when encoded.
Netherlands · ID2021 / 2024 cards3 lines × 30 charactersDocument code, issuing country, number shape and nationality.BSN is not encoded in the supported modern MRZ.
Poland · Identity card2015 / 2019 / 20213 lines × 30 charactersDocument-number checksum; PESEL checksum and birth/sex consistency.
Romania · Legacy IDLegacy large card · TD22 lines × 36 charactersCNP reconstruction, checksum and sex consistency.
Romania · Electronic ID (2021)2021 electronic card3 lines × 30 charactersFull CNP checksum and birth/sex consistency; 2021 optional-field placement.
Romania · Electronic ID2025 electronic card3 lines × 30 charactersFull CNP checksum and birth/sex consistency.
France · Driving licence2013 / 2015 card-format licence1 line × 30 charactersDocument code, issuing country, number shape and nationality.
France · PassportOrdinary machine-readable passport2 lines × 44 charactersDocument code, issuing country, number shape and nationality.Optional data receives ICAO checks, without a national identifier interpretation.
Spain · PassportOrdinary machine-readable passport2 lines × 44 charactersDocument code, issuing country, number shape and nationality.Optional data receives ICAO checks, without a national identifier interpretation.
Italy · PassportOrdinary machine-readable passport2 lines × 44 charactersDocument code, issuing country, number shape and nationality.Optional data receives ICAO checks, without a national identifier interpretation.
United Kingdom · PassportOrdinary machine-readable passport2 lines × 44 charactersDocument code, issuing country, number shape and nationality.Optional data receives ICAO checks, without a national identifier interpretation.

No OCR, chip reading, registry lookup or physical security checks. Government specimens may deliberately use non-production numbers.

A check digit is a calculation, not a certificate.

We check text structure and consistency. Passing results do not prove a document is authentic or belongs to its presenter.

Read the standard ↗
MRZ lab / A workspace for better document testsOn-device processing · Nothing uploaded or saved.