Sample Data

RG Generator

Generate RG sample data for forms, demos, testing, and validation.

Issuing State
Format
Formatted

00.000.000-0

Ready
Advertisement

What is an RG generator by state?

The Registro Geral (RG) directly affects databases across Brazil. One of the biggest issues for developers is that RG math validation changes significantly from one state to another. For example, an RG from Rio de Janeiro can look very similar to one from Sao Paulo, while the validation logic changes in the details.

States such as Minas Gerais often attach the state code to a 7 or 8 digit number (for example MG-12.345.678), while states from the south or northeast may show 10 digits. The most common standard used nationally in forms is Sao Paulo's SSP Modulo 11 validation.

RG structure and the "X" digit

It is common to run into registrations that break when the RG ends with the letter X. Your database needs to handle alphabetic endings. When Modulo 11 returns a value of 10, the final digit becomes X. For many other states, length validation is often enough.

Important Legal Notice

These documents follow realistic validation logic but do not represent real citizens or official records. They are meant exclusively for web testing and experimentation.

Frequently Asked Questions

Yes, for testing purposes. Our generation flow is based on Sao Paulo's public security logic, which applies the Modulo 11 calculation to find the final check digit.

Unlike CPF and CNPJ, which are federal documents covered by a single algorithm across the country, civil RG numbers vary by state. Each state has distinct rules and issuing agencies, so an RG that is mathematically valid in Sao Paulo can fail under Rio de Janeiro's rules, for example.

When the algorithm multiplies the first 8 digits and the division by 11 results in a value of 10, the final digit becomes the Roman numeral 'X'.

No. All values generated by this hub are random and purely logical. The goal is to test filters and functions in administrative systems during development without exposing confidential real data.

More ChatFake Tools

Popular Searches

RG sample data for forms, testing, and validation

Use this tool to generate RG sample data for forms, demos, testing, and internal validation.

rg generatorrg sample datarg generator by staterg test data

Sample RG data for forms and validation

Generate sample data for forms, testing, and validation without relying on real document details.

Clear sample-data context

The page explains that these RG details are meant for teams that test forms, systems, and internal workflows.

Connected to CPF, CNPJ, and WhatsApp

You can continue to CPF, CNPJ, or WhatsApp tools through the related links when you need other formats.

Correct use of the generator

Generated RG data is meant for testing, validation, and internal demos, not real documents.

Use generated data only for testing, validation, and internal demos. Do not use it as a real document or for fraud.