Josep Portella

Magia DNI

A web application.

Magia DNI is a web 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.

Technical information

Old version

The old version was an Android application, and is still available on F-Droid. Its source code is available under the GPL license.

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.