RG Generator
Generate random RG identity numbers in the São Paulo layout, with the modulus 11 check digit that may be an X.
- Local calculation
- The result is calculated in your browser.
- Private by default
- Nothing you enter leaves your browser.
How it works
Eight random digits are weighted from 2 to 9 and the check digit is 11 minus the remainder of the sum divided by 11, written as X when it would be 10. This is the rule used in São Paulo; other states differ.
Questions
Can I use the generated numbers for real registrations?
No. They are random numbers that happen to pass the format and check-digit rules. Use them only to test software, never to impersonate a person or company.
Related tools
RG Validator
Check an RG identity number: a plausible length for any state, plus the check digit for São Paulo numbers that have one.
CPF Generator
Generate random CPF numbers with valid check digits for testing Brazilian forms and systems, with or without formatting.