Spanish DNI/NIE Check Letter
Enter the 8 digits of a Spanish DNI and get the corresponding letter from the TRWAGMYFPDXBNJZSQVHLCKE table. Or enter a full NIE (X/Y/Z + 7 digits) and check whether its letter is valid.
DNI or NIE number
The letter is calculated by dividing the number by 23 and using the remainder against the official table (TRWAGMYFPDXBNJZSQVHLCKE). If you enter a DNI/NIE that already includes a letter, it's checked for correctness.
Letter result
Enter a DNI or NIE to calculate its letter.
Related tools
Frequently asked questions
How does the letter table work?+
The number is divided by 23 and the remainder is used to pick the letter from the official table: TRWAGMYFPDXBNJZSQVHLCKE.

