Get Personal $1.00 / 1,000 calls

NIF by DNI (ES)

What this tool does

This tool calculates the full Spanish tax identification number (NIF) by using a Spanish identity card number (DNI).

Note that the NIF letter is generated using a standard mathematical formula. This means the result is an approximation based on the number provided and does not verify if the person or entity actually exists in official government registers.

Common uses

  • Completing forms that require a full NIF when only the DNI is known.
  • Validating the format of a Spanish tax identifier before submission.

Input data

Parameter Required Example Description
dni Yes 44016116 Enter the 8-digit Spanish identity card number (for example, '44016116'). This field is required. If the number is missing, has fewer than 8 digits, or contains letters, the tool will not return a result.

Output data

Field Description
result Returns the full NIF as a text string combining the DNI and the calculated letter (for example, '44016116T'). Returns empty text if the input DNI is invalid or incomplete.