--- title: "Spanish National Identity Document (DNI)" slug: "spanish-national-identity-document-dni" tags: ["Reference", "DLP 11.10.x", "DLPD 11.10.x", "DLPE 11.10.x", "DLPMac 11.10.x", "DLPNM 11.10.x", "DLPNP 11.10.x", "DLP 11.11.x", "DLPE 11.11.x", "DLPExtn 11.11.x", "DLPNM 11.11.x", "DLPNP 11.11.x"] updated: 2026-09-02T05:56:11Z published: 2026-09-02T05:56:11Z canonical: "docs.trellix.com/spanish-national-identity-document-dni" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Spanish National Identity Document (DNI) All Spanish nationals are obliged to have an identity card Documento Nacional de Identidad (DNI) from the age of 14. To apply for a DNI, it is necessary to be a Spanish national. ### Validator **Spanish National Identity Document** — Validates the position weighted Mod 23 checksum. ### Matched expressions | Regex expressions | Description | Score | | --- | --- | --- | | `(?i:\b[0-9]{8}[A-HJ-NP-TV-Z]\b)` | Matches an 8-digit number of the format NNNNNNNNC followed by a character, where the character *can't* be I, O, or U. | 1 | ### Ignored expressions **None**