tool utilidades

Valid DNI / NIE / CIF

Generates Spanish identifiers with valid check digits.

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.

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.

When this is useful

  • Check that a form correctly validates DNI, NIE or CIF format and check characters.
  • Check a test case before incorporating it into a workflow.
  • Repeat the process with different settings and compare both results.

Checks before sharing

  • Label the record as fictional, keep it out of real databases and test invalid cases separately.
  • Check that the input contains no sensitive information and that the selected units or format are correct.
  • Keep the input alongside the result whenever the calculation needs to be reproducible or auditable.

Limitations to understand

  • Formal validity does not prove that a value is unassigned or reserve it; it must not be used to identify, verify, register or impersonate anyone.
  • The result depends entirely on the quality and context of the entered data; interpret it only for its stated purpose.
  • The tool automates one specific operation; review the result whenever it will support a decision, publication or delivery.

Frequently asked questions

What should I prepare before starting?

Check that the input contains no sensitive information and that the selected units or format are correct.

How do I know whether the result is correct?

Label the record as fictional, keep it out of real databases and test invalid cases separately.

What does this tool not solve?

Formal validity does not prove that a value is unassigned or reserve it; it must not be used to identify, verify, register or impersonate anyone.

Editorial review: MyWorkingArea team

Checked against the options and output of the current tool.

Content reviewed on 11 August 2026.

Keep working

See the entire catalog →
UTILIDADES

Fake data generator

Generates dummy data in multiple formats for testing.

Open
UTILIDADES

IBAN Generator

Generates fictional IBANs by country with valid format and checksum for testing.

Open
UTILIDADES

Card generator

Creates dummy card data for validation testing.

Open
UTILIDADES

Giveaways

Choose one or more random winners from a list.

Open