A DNI is eight digits plus a control letter; a NIE starts with X, Y, or Z followed by seven digits and a letter. This tool picks the digits at random and then calculates the letter the same way the official rule does, so the result passes any correctly implemented check.
A generated number is not registered, not issued, and belongs to nobody. This tool has no access to any government database, so it cannot say whether a document exists, who holds it, or whether it is still valid.
Use the DNI/NIE validator. It calculates the control letter when you only have the digits, and tells you which letter was expected when a complete number does not add up.
Common questions and answers about this topic.
Only for software testing, sample forms, or learning. The numbers do not correspond to real people and must not be used for impersonation or any unlawful purpose.
It passes checks that verify the control letter, because the letter is calculated by the official rule. It will not pass anything that looks the number up in an official registry, because the number was never issued.
A DNI is issued to Spanish nationals and is eight digits plus a letter. A NIE identifies foreign residents and starts with X, Y, or Z followed by seven digits and a letter; the leading letter maps to 0, 1, or 2 before the control letter is calculated.
No. Generation happens in your browser, and nothing you type is uploaded, stored, or placed in the page address.