RG Generator

Try our RG generator! You can create various valid numbers, with the issuing authority being SSP-SP, Brazil. Customize your experience using the automatic rotation to generate new RGs based on the selected time. Additionally, you can choose whether or not to include the mask between the digits.

Also, be sure to check out our RG validator which ensures the authenticity of the generated numbers. It’s quick and easy!

This tool generates fictitious data intended exclusively for software testing and development purposes. The data does not correspond to real people or entities and must not be used for illegal, fraudulent purposes, or in ways that violate the privacy of others. Compliant with LGPD (Brazilian Data Protection Law).

Understanding RG and the Generator Algorithm

What is RG?

The Registro Geral (RG) is Brazil's civil identity card, issued by state Public Security Secretariats. Each state has its own format and numbering sequence, with the most common being the São Paulo (SSP-SP) model with 8 digits and 1 check digit in the format XX.XXX.XXX-D. RG is one of the most widely used identification documents in Brazil for opening accounts, contracts, registrations, and accessing services.

How does the generation algorithm work?

The Help4Dev generator creates RGs in the SSP-SP standard. The 8 base digits are randomly generated and the check digit is calculated by multiplying each digit by weights from 2 to 9 (right to left), summing the products, and calculating the remainder of division by 11. If the remainder is 0, the verifier is 0; if 1, the verifier is X (letter); otherwise, it is 11 minus the remainder.

Why use fictional RGs in development?

Individual registration systems, health platforms, legal systems, ERPs, and government applications frequently require RG as a mandatory field. Form tests, validations, and API integrations in these applications need valid RG numbers. Using real third-party RGs would be a serious privacy violation and breach of LGPD. RGs generated by Help4Dev are fictitious and safe for exclusive use in development.