Coverage · Mexico
Mexican RFC detection and redaction
OpenAnonymizer finds the Mexican RFC in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.
At a glance
- Country
- Mexico MX
- Format
- RFCRegistro Federal de Contribuyentes
- Placeholder
- Each distinct value gets its own number: MX_RFC_1, MX_RFC_2, and so on.
- How it is confirmed
- Official label and checksum
- Used for
- Identifying taxpayers to Mexico's tax authority (SAT); it appears on every electronic invoice (CFDI).
About the RFC
For a person the RFC is 13 characters: four letters from the name, the date of birth as YYMMDD, and a three-character homoclave whose last character is a check digit. Companies have 12.
XEXX010101000 is the generic RFC the SAT publishes for foreign customers.
- In
- RFC: XEXX010101000
- Out
- RFC:
How OpenAnonymizer handles it
Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.
- It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
- Every package ships every detector, so this format is covered in each of them.
- It covers 34 languages.
Related formats
The same country, or the same kind of number elsewhere.