RFC checker
Enter a Mexican RFC (tax ID) and we'll tell you whether its format is correct: its length, whether it's a persona física's or a persona moral's, its date and its check digit.
It checks the format, not whether the RFC is active with the SAT: a well-formed RFC may not exist or may belong to someone else.
Result
Enter an RFC to see here what we check.
What it checks
- The length: 12 characters for a persona moral and 13 for a persona física.
- The leading letters: 3 for a persona moral and 4 for a persona física (A to Z, Ñ or &).
- The date: a year, month and day (YYMMDD) that exist.
- The homoclave: two letters or digits, then the check digit at the end, which is computed from the rest of the RFC.
- The SAT's generic RFCs: the general public's (XAXX010101000) and the one for residents abroad (XEXX010101000).
What it doesn't check
- Whether the RFC is registered with the SAT, or active.
- Who it belongs to, or their name or company name.
- Its tax regime, or whether it can receive invoices.
- Whether it appears on the SAT's lists, such as the one under article 69-B of the Código Fiscal de la Federación.
To check those, use the SAT's services at sat.gob.mx. This tool doesn't query the SAT.
How we check it
We use the RFC pattern the SAT defines for CFDI 4.0, and check that the date exists.
The check digit is the last character. It's computed from the 12 before it (a persona moral's RFC, which has 11, gets a leading space): each character has a value, multiplied by a weight from 13 down to 2, and the products are added up. The digit is 11 minus the remainder of dividing the sum by 11; a remainder of 0 gives 0, and a result of 10 gives the letter A.
Upper or lower case, hyphens and spaces don't matter: “ana-010101-ab1” is the same as “ANA010101AB1”.
Frequently asked questions
How many characters does an RFC have?
13 for a persona física (4 letters, the date of birth and a 3-character homoclave) and 12 for a persona moral (3 letters, the date of incorporation and a 3-character homoclave).
What is an RFC's check digit?
It's the last character of the homoclave. It's computed from the rest of the RFC, so it helps catch typing mistakes, though not all of them: some changes to a letter or a digit give the same check digit.
If the format is correct, is the RFC valid?
Not necessarily. A well-formed RFC may not be registered, may be suspended, or may belong to someone else. To check that, use the SAT's services.
What is RFC XAXX010101000?
It's the generic RFC for sales to the general public: it goes, for example, on the factura global or when a customer doesn't give you their RFC. For residents abroad, the generic RFC is XEXX010101000.
Do you store the RFC I enter?
No. The RFC is checked in your browser. If your browser doesn't run JavaScript, our server checks it on the spot and doesn't store it.
For information only; it doesn't replace your accountant's advice.