Online calculator to get the letter of the Spanish National Identity Card (DNI / NIF) or NIE for foreigners living in Spain.

The DNI or NIE is:  

Write the number of DNI: 12345678, or if it's a NIE: X1234567 or Y1234567

TOOLS

The calculator can be installed in your browser or on your smartphone ...

APPS FOR SMARTPHONE

Install on your smartphone.

Próximamente
Próximamente

BROWSER ADDONS

Add browser addons

API for your applications

01

Send url http://letradni.appspot.com/api/11111111

02

Return: {"dninie": "11111111H", "numero": "11111111", "letra": "H"} in case of number incorrect, return: {"letra": "Error: Numero invalido", "numero": "11111"}

03

or add into your web <iframe src="http://letradni.appspot.com/calculadora" width="600px" style="border:0px" height="300px"> </iframe>

HAVE YOU FOUND USEFUL THESE TOOLS?

Invite us to a cafe

... or share us

HOW TO CALCULATE

... Try to calculate the letter manually. It's very simple!

DNI

The process for calculating the letter of DNI is very simple and can be done manually. You just have to extract the number and divide by 23. Depending on the rest of this division, the letter is chosen as follows:

Rest Letter Rest Letter Rest Letter Rest Letter
0 T 6 Y 12 N 18 H
1 R 7 F 13 J 19 L
2 W 8 P 14 Z 20 C
3 A 9 D 15 S 21 K
4 G 10 X 16 Q 22 E
5 M 11 B 17 V

Example: 12345678 divided by 23 gives resto 14 so that the letter of DNI is Z. The DNI is 12345678Z

NIE

The NIE is a code used for identify to foreign. It consists of an initial letter, seven digits and letter final. The first letter is an X for NIE allocated before July 2008, a Y for NIE assigned from that date. Z will be used when series X and Y finish.

To calculate the final letter of this number: you replace the first letter by the following values X = 0, Y = 1 and Z = 2 and then follow the same process to calculate the letter of the DNI for nationals.

Example: For the next NIE: Z1234567, Z is replaced by 2: 21234567 divided by 23 gives rest 1, so the letter of DNI is A. The NIE is Z1234567R.

¿Do you want be sponsor?

More of 900 visits/day
Contact with us:
contacto@blancasimatria.com