Generate well-formed RG numbers with the SSP-SP algorithm and validate any RG check digit in your browser.
The RG (Registro Geral) is the number printed on the Brazilian identity card and, unlike the CPF, it has no national standard. Each state issues its own numbers with its own length, its own formatting and its own check-digit rule — and several use no check digit at all. This tool implements the algorithm of the SSP-SP, São Paulo's public security department, which is the most widely referenced format: eight digits plus one check character computed with modulo 11, where that character may be the letter X.
Because there is no national rule, an RG issued in Bahia, Paraná or Rio Grande do Sul will very often fail the validation shown here — and that does not mean the document is fake. Plenty of real, perfectly valid RGs simply do not follow the SSP-SP math. Treat the validator as a check for the São Paulo format only, never as proof that a document exists or belongs to someone. If your system has to accept RGs from anywhere in Brazil, the honest approach is to store the number as free text alongside the issuing body, not to enforce a check digit.
What the generator is genuinely good for is filling test forms. Registration screens, CRMs, hospital systems and school records routinely ask for an RG, and typing the same number over and over hides bugs. Every number here is drawn from your browser's cryptographic random source, assembled into a well-formed SSP-SP number, and never sent anywhere — generation and validation run entirely in JavaScript on your device.
Check character (SSP-SP): multiply the 8 digits by weights 2, 3, 4, 5, 6, 7, 8 and 9, add the results and take the remainder of the division by 11. The check character is 11 minus that remainder; when the result is 10 it is written as X, and when it is 11 it is written as 0.
No. The number is random and only satisfies the SSP-SP check-digit math. It is not registered with any state agency and does not belong to any person.
No. The RG has no national standard: each state defines its own format, length and validation rule, and several issue numbers with no check digit at all. This tool implements the SSP-SP (São Paulo) algorithm.
Most likely because it was issued outside São Paulo. Numbers from other states follow different rules and legitimately fail the SSP-SP check — that is expected, not a bug.
It is the check character used when the modulo 11 calculation returns 10. The Roman numeral for ten is borrowed because a single position cannot hold two digits — the same trick the ISBN uses.
No. Generated documents are for software testing only. Using them on real services may constitute fraud, which is a crime in Brazil.
No. Generation and validation run 100% in JavaScript on your device. Nothing is uploaded, logged or stored.
Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.
Vai.la is not responsible for how the tools are used or for decisions made based on their results.