MRZ checker

Paste the two or three lines from the bottom of a passport or ID card. Every check digit is recalculated in your browser; nothing is sent anywhere.

Passport (TD3): 2 lines of 44 characters. ID card (TD1): 3 lines of 30. TD2 card: 2 lines of 36. Use < for filler.

What this checks

An MRZ carries check digits so that a reading error can be caught. Each one is computed from the characters it protects: digits keep their value, letters count from A = 10 to Z = 35, the filler < counts as 0, and the values are multiplied by the repeating weights 7, 3, 1 and summed modulo 10. The checker recalculates every digit the document's format defines: document number, date of birth, expiry date, the personal number on passports, and the composite digit that covers all of them together. It also handles ID-card document numbers longer than nine characters, which continue in the optional field.

A failed digit almost always means a reading error, most often the letter O read as the digit 0 or I read as 1. Passing all digits shows the text is internally consistent; it doesn't prove the document is genuine. That takes the chip, as explained inOCR vs NFC chip reading.

Learn more

Privacy: the check runs entirely in this page's JavaScript. The MRZ you paste isn't stored or sent; this site has no analytics. The samples are ICAO's published specimen documents, not real people.