Calculate foreign-resident identifier control letters.
Initialising algorithm engine for Spanish NIE Check Letter Calculator...
How Spanish NIE Check Letter Calculator Works?
The Spanish NIE Check Letter Calculator replaces the initial X, Y or Z with 0, 1 or 2. It divides the resulting 8-digit number by 23. The remainder maps to the control letter for this foreigner identity number.
- 1Enter the NIE: initial letter X, Y, or Z plus 7 digits.
- 2Replace X with 0, Y with 1, or Z with 2.
- 3Compute the 8-digit number modulo 23.
- 4Map the remainder through TRWAGMYFPDXBNJZSQVHLCKE.
- 5Append the letter.
Spanish NIE Check Letter Calculator Formula
The NIE formula is Letter = TRWAGMYFPDXBNJZSQVHLCKE[(prefix value ‖ 7 digits) mod 23].
X → 0, Y → 1, Z → 2 r = int(prefix ‖ digits) mod 23 Letter = "TRWAGMYFPDXBNJZSQVHLCKE"[r]
prefixis the initial letter.
X → 0 → 01234567 01234567 mod 23 = 19 Letter = L NIE = X1234567L
Spanish NIE Check Letter Calculator Conversion Table
The NIE conversion table shows prefix values and sample NIEs with their letter.
| Prefix | Value | Sample digits | Remainder | Letter | NIE |
|---|---|---|---|---|---|
| X | 0 | 1234567 | 19 | L | X1234567L |
| X | 0 | 0000000 | 0 | T | X0000000T |
| Y | 1 | 1234567 | 10 | X | Y1234567X |
| Y | 1 | 7654321 | 4 | G | Y7654321G |
| Z | 2 | 1234567 | 1 | R | Z1234567R |
| Z | 2 | 9999999 | 18 | H | Z9999999H |
What is Spanish NIE Check Letter Calculator?
A Spanish NIE Check Letter Calculator is a tool that computes the control letter of a Número de Identidad de Extranjero (NIE). The Spanish police assign NIEs to foreign residents and to foreigners with economic ties to Spain.
The NIE serves as the tax number (NIF) for foreigners, so the same modulus 23 letter appears on tax forms.
What are the uses of Spanish NIE Check Letter Calculator?
There are 3 main uses of the Spanish NIE Check Letter Calculator, including property purchases, employment contracts, and bank accounts.
- Property purchases: Notaries check NIEs on deeds.
- Employment contracts: Employers validate NIEs for Social Security registration.
- Bank accounts: Banks verify NIEs when foreigners open accounts.