Generate valid Spanish DNI (Documento Nacional de Identidad) numbers for testing purposes. Includes the letter calculated using modulus 23.
international.disclaimer
The Documento Nacional de Identidad (DNI) is Spain's official identification document, issued by the Dirección General de la Policía. It consists of 8 numeric digits followed by a control letter, in XXXXXXXX-L format.
The control letter is obtained by dividing the 8-digit number by 23 and using the remainder as an index in the table: T, R, W, A, G, M, Y, F, P, D, X, B, N, J, Z, S, Q, V, H, L, C, K, E.
Systems targeting the Spanish market — e-commerce, banks, and government platforms — require DNI as mandatory identification. Numbers generated by Help4Dev pass control letter validation and are safe for testing.