Josep Portella

Magia DNI

An Android application.

Magia DNI is an Android application that uses the device’s camera to read the OCR data on Spanish identity cards, calculates its check digit and displays it.

It is mostly of interest to Spanish people; its purpose is to debunk an urban legend that says that the check digit present on the OCR data represents the number of people who are named exactly as the card’s holder.

Available on F-Droid and Google Play.

Technical information

Source code under GPL license

How does Magia DNI work

Demystifying the DNI numbers

Privacy policy

Magia DNI uses the camera of the device where it runs to read the OCR data of the Spanish identity card and calculates its check digit. The obtained data is not stored nor transmitted anywhere.