No. The RG is issued by state agencies and there is no single national algorithm comparable to the CPF's. Each Public Security Secretariat uses its own format and rule, so a number valid in one state may make no sense in another.
Generate synthetic Brazilian RG numbers in SSP/SP style with a check digit for software tests and form validation.
Unlike the CPF, the Registro Geral (RG) has no national algorithm: it is issued by state agencies (the Public Security Secretariats), and each state uses its own format, length and digit rule. That means there is no "universally valid" RG number. So this tool takes an explicit, honest scope: generate a synthetic RG in SSP/SP (São Paulo) style, with the check digit computed by the modulo-11 rule used in São Paulo validations. The result is ideal for fixtures and forms that expect that pattern, in development and QA. It does not represent a real person or an official registry lookup, it is a coherent placeholder for testing, generated locally in your browser.
The CPF has a national check-digit rule, so a valid CPF is valid across the country. The RG does not: each Public Security Secretariat issues in its own format, some use a check digit, others have historic formats, different lengths and masks. There is no single algorithm that validates "any Brazilian RG."
For reliable testing, the best practice is to declare exactly which pattern is supported, rather than generating a generic number pretending to be universal. This tool does that: it assumes the SSP/SP pattern and makes the issuer clear, avoiding the false impression of national validity.
In the São Paulo pattern, an RG is a sequential numeric base followed by a check digit, usually shown with the mask 00.000.000-0. The tool separates these components in the result (base, check digit and issuer) so you understand what each part means.
The check digit is computed by modulo 11 over the base, the same family of calculation as the CPF, but with the São Paulo RG parameter, where the last character can even be an X to represent the value 10. That is why the generated number passes validators expecting this format.
The legitimate use is filling RG fields in registrations, checkouts and screens that validate the São Paulo format, without depending on a real person's document. Combined with the CPF generator, it helps build complete test datasets for staging.
Like any identity data, an RG deserves care: generation happens 100% in the browser, and the number never enters analytics, URL or storage. It must never be used for real registrations, identity simulation, anti-fraud, or any legally binding process, for that, only a real, verifiable document works.
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframe
src="https://jkit.tools/embed/en-US/rg-generator"
width="100%"
height="600"
style="border:0"
loading="lazy"
title="Brazilian RG Generator"
></iframe>These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
No. The RG is issued by state agencies and there is no single national algorithm comparable to the CPF's. Each Public Security Secretariat uses its own format and rule, so a number valid in one state may make no sense in another.
Generation happens locally in the browser. Analytics receives only action, status, type and format, never the generated RG.