No. RG is issued by state agencies and has no single national algorithm comparable to CPF.
Brazilian RG Generator
Generate synthetic Brazilian RG numbers in SSP/SP style with a check digit for software tests and form validation.
Brazilian RG has no single nationwide validation rule.
Registro Geral is issued by state authorities and formats vary. This tool therefore has an explicit scope: generate a synthetic SSP/SP-style RG with a calculated check digit, useful for fixtures and forms expecting that pattern.
Use it as a state-scoped fixture, not as a real identity.
- Generate a synthetic RG and inspect the base, check digit and issuer.
- Copy the punctuated form for UI tests or the raw value for payloads and automated tests.
- Document that the value follows the SSP/SP style and is not an official registry lookup.
Why RG differs from CPF
CPF has a national check-digit rule. RG is state-issued: some agencies use check digits, historical formats and different punctuation.
For reliable tests, it is better to declare the supported pattern than to generate a number that looks universal.
- v1 scope: SSP/SP with modulo 11.
- No real person lookup.
- No storage of generated values.
Sources and references for this tool
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.
- Lei nº 14.534/2023 — CPF como número único de identificaçãoPresidência da República — Context for Brazil moving CPF into the role of a single national identifier.
- Decreto nº 10.977/2022 — Carteira de IdentidadePresidência da República — Official procedures and requirements for the Brazilian identity card/CIN.
- LGPDPresidência da República — Personal data protection context for identity documents.