DNI letter calculator

Spanish ID numbers

Find the letter of any DNI

Type the 8 digits of a DNI, or a NIE for foreign residents, to get its check letter. Add the letter at the end to check that a complete ID is right.

Letter ?

Type a number to start.

How the letter works

The number is divided by 23 and the remainder picks the letter from this table. For a NIE, the X, Y or Z at the start counts as 0, 1 or 2.

12345678 mod 23 = 14 → Z

    Examples