Calculate tax identifier control letters.
Initialising algorithm engine for Spanish NIF Check Letter Calculator...
How Spanish NIF Check Letter Calculator Works?
The Spanish NIF Check Letter Calculator divides the 8-digit DNI number by 23. It uses the remainder as a position in the letter table TRWAGMYFPDXBNJZSQVHLCKE.
- 1Enter the 8 digits of the Documento Nacional de Identidad (DNI) number.
- 2Compute the remainder modulo 23.
- 3Take the letter at that position (0-based) in TRWAGMYFPDXBNJZSQVHLCKE.
- 4Append the letter to the 8 digits.
Spanish NIF Check Letter Calculator Formula
The NIF formula is Letter = TRWAGMYFPDXBNJZSQVHLCKE[N mod 23].
r = N mod 23 Letter = "TRWAGMYFPDXBNJZSQVHLCKE"[r]
Nis the 8-digit DNI number.- The table omits I, Ñ, O, and U.
12345678 mod 23 = 14 Letter at position 14 = Z NIF = 12345678Z
Spanish NIF Check Letter Calculator Conversion Table
The NIF conversion table maps all 23 remainders to their control letter.
| Remainder | Letter | Remainder | Letter | Remainder | Letter |
|---|---|---|---|---|---|
| 0 | T | 8 | P | 16 | Q |
| 1 | R | 9 | D | 17 | V |
| 2 | W | 10 | X | 18 | H |
| 3 | A | 11 | B | 19 | L |
| 4 | G | 12 | N | 20 | C |
| 5 | M | 13 | J | 21 | K |
| 6 | Y | 14 | Z | 22 | E |
| 7 | F | 15 | S |
What is Spanish NIF Check Letter Calculator?
A Spanish NIF Check Letter Calculator is a tool that computes the control letter of a Spanish Número de Identificación Fiscal (NIF) for individuals. For Spanish nationals, the NIF equals the DNI number plus its letter.
The modulus 23 letter detects all single-digit errors and all adjacent transpositions in the 8 digits.
What are the uses of Spanish NIF Check Letter Calculator?
There are 3 main uses of the Spanish NIF Check Letter Calculator, including invoices, tax forms, and online registration.
- Invoices: Spanish invoices must show a valid NIF for both parties.
- Tax forms: Accountants check NIFs on Agencia Tributaria forms.
- Online registration: Websites validate DNI letters at sign-up.