Reviewed practical guide
How to use Generate fictional Spanish identifiers and verify the result
Builds DNI, NIE or CIF-shaped strings and calculates the corresponding check character locally in the browser.
Builds DNI, NIE or CIF-shaped strings and calculates the corresponding check character locally in the browser. Choose the format required by the test and use the result only as synthetic data in non-production environments.
Practical example: Check that a form correctly validates DNI, NIE or CIF format and check characters. Post-process verification is part of the workflow: a successful download alone does not prove that the content is correct.
What result to expect
An identifier with a formally valid structure and check character that does not establish a person or organisation.