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
CPF Validator
Validate Brazilian CPF numbers instantly using the official algorithm. Useful for testing document validation in applications. No data sent to servers.
CNPJ Validator
Validate Brazilian CNPJ numbers instantly using the official algorithm. Useful for testing fiscal document validation. No data sent to servers.
PIS/PASEP Validator
Validate Brazilian PIS/PASEP numbers using the official check-digit algorithm. No data sent to servers. Free and no sign-up.