1001Ferramentas
Validators

RG Validator

Validate Brazilian RG numbers in the SP format (9 digits + check digit). Browser-side verification, no data sent to servers.

How does SP RG validation work?

The São Paulo RG has 8 base digits and 1 check digit. The check digit is calculated by the weighted sum of the 8 digits with weights [2,3,4,5,6,7,8,9] and modulo 11. If the remainder is 0 the check digit is 0; if it is 1, it is X; otherwise it is 11 minus the remainder.

The check runs entirely in your browser.

Related Tools