J-Kit
Português

Brazilian RG Generator

Generate synthetic Brazilian RG numbers in SSP/SP style with a check digit for software tests and form validation.

Details below
About RG in tests

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.

How to use

Use it as a state-scoped fixture, not as a real identity.

  1. Generate a synthetic RG and inspect the base, check digit and issuer.
  2. Copy the punctuated form for UI tests or the raw value for payloads and automated tests.
  3. Document that the value follows the SSP/SP style and is not an official registry lookup.
Validity

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.
References

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.

FAQ

Frequently asked questions

No. RG is issued by state agencies and has no single national algorithm comparable to CPF.

Test Documents & IDs