Skip

Spanish DNI / NIE Letter Calculator

Spanish DNI / NIE Letter Calculator: free, instant and precise. Enter your values and the results update live.

Formula shown and computed in your browser. Updated November 2026.

Full calculator on Kalqo

Formula

Letter = "TRWAGMYFPDXBNJZSQVHLCKE"[number mod 23] (NIE: X=0, Y=1, Z=2)

Worked example

With these values

DNI or NIE number
12345678

The calculator gives

Letter
Z
Full ID
12345678Z

These values are only an illustration. Replace them with yours in the form above.

Questions

How is the result calculated?

The calculator applies this rule: Letter = "TRWAGMYFPDXBNJZSQVHLCKE"[number mod 23] (NIE: X=0, Y=1, Z=2)

Is it free?

Yes. It is free, needs no account, and works on phone and desktop.

Are my numbers stored?

Everything runs in your browser. Nothing you type is sent to a server.