RFC and CURP generator: Mexican fiscal identity documents
RFC (Federal Taxpayer Registry) and CURP (Unique Population Registry Code) are the two most important fiscal and personal identity documents in Mexico. Both are generated from biographical data following official SAT and INEGI algorithms.
RFC structure
RFC has 13 characters for individuals: 4 letters from the name (first letter of paternal surname + first internal vowel + first letter of maternal surname + first of first name), date of birth (6 digits: YYMMDD) and 3 digits for homonymy and verification.
CURP structure
CURP has 18 characters: 4 name letters (same as RFC), birth date, sex letter (H/M), 2-letter code of birth state, 3 internal consonants from the name, 2 alphanumeric verification characters.
Uses of RFC and CURP
- RFC: electronic invoices, tax returns, employment contracts.
- CURP: educational and social security procedures (IMSS, ISSSTE, INFONAVIT).
- Both: opening bank accounts, official identification.
- Software development: data validation in Mexican forms.