Uruguay RUT Generator
Generate 12-digit DGI RUT numbers with the mod-11 check digit — synthetic test data only
For Development & Testing Purposes Only - Synthetic Mock Data
Settings
1 valueGenerates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.
Generated value
No value yet
Set options, then press Generate.
Generated values are valid in shape but randomized (Test Data).
Examples
Generated RUT
RUT · Generate21-100342-001-7Prefix 21, serial 100342, the 001 block and check digit 7.
UY prefix accepted
UY 21 140634 001 1Valid — check digit 1 matches 21140634001Spaces and a leading country prefix are ignored, matching how invoices print the number.
Wrong check digit
21-100342-001-8Invalid — check digit is 8 but the first 11 digits require 7The validator names the correct digit for the body.
About this tool
The Uruguay RUT Generator produces Registro Único Tributario numbers in the 12-digit form DGI uses, shown as 21-100342-001-7. The layout is a two-digit prefix from 01 to 22, a six-digit number that cannot be all zeros, the fixed block 001, and a check digit.
The check digit uses weights 4, 3, 2, 9, 8, 7, 6, 5, 4, 3 and 2 over the first 11 digits and takes minus the sum mod 11. A result of 10 means no valid RUT exists for that body, so the generator retries until it finds one that works. Validation accepts spaces, hyphens and an optional UY prefix.
These are synthetic values for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.
What this tool does not do
- Validation checks structure and the check digit; it does not confirm DGI registration.
- A body whose first 11 digits produce 10 is never emitted, so such values only appear as invalid samples.
- The generator always writes the 001 block; other establishment blocks are not modeled.
- No DGI service is queried; computation is local.
How to use this tool
Generate one RUT
Click Generate to create a 12-digit RUT with a 01–22 prefix and the fixed 001 block.
Copy the value
Copy the formatted result or download it as a .txt file.
Validate a pasted RUT
Switch to Validate to check the prefix, the serial, the 001 block and the mod-11 check digit.
Use cases
Uruguayan invoice fields
Populate RUT inputs with values that pass the DGI check before generating test invoices.
Prefix range tests
Check that your parser rejects prefixes outside 01–22 and accepts every value inside the range.
Block and serial rules
Exercise the 001 block and the all-zero serial guards with targeted samples.
RUT structure
| Part | Rule |
|---|---|
| Length | 12 digits |
| Prefix | 01–22 in the first two digits |
| Serial | Six digits, not all zeros |
| Fixed block | 001 in positions 9–11 |
| Check weights | 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 |
| Check formula | −sum mod 11; a result of 10 means never issued |
An optional UY prefix is stripped before validation.
Common mistakes
Mistake:Expecting a check digit of 10
Fix:A result of 10 means the body has no valid RUT; the generator retries instead of emitting one.
Mistake:Treating 001 as a serial
Fix:Positions 9–11 are a fixed block, not part of the six-digit serial.
Mistake:Rejecting spaced input
Fix:Spaces and hyphens are separators, and an optional UY prefix is stripped.
Frequently asked questions
Are these real RUTs, and can I use them in production?
No. They are synthetic test values for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used.
What are the parts of a Uruguayan RUT?
A prefix from 01 to 22, a six-digit serial that cannot be all zeros, the fixed block 001, and a check digit, shown as 21-100342-001-7.
How is the DGI check digit calculated?
Weights 4, 3, 2, 9, 8, 7, 6, 5, 4, 3 and 2 are applied to the first 11 digits, and the check is minus the sum mod 11.
Why does the generator sometimes retry?
A check value of 10 means no valid RUT exists for that body, so the generator draws another body instead of emitting an impossible number.
Is the UY prefix accepted?
Yes. An optional leading UY is stripped, along with spaces and hyphens, before the digits are validated.
References & standards
Related tools
Uruguay Cédula (CI) Generator
Generate synthetic Uruguayan cédula de identidad numbers with the DNIC check digit in 1.234.567-2 form, and validate pasted values.
VAT Number Generator
Generate VAT numbers for EU, UK, Switzerland, Norway and global tax integration testing.
Tax Number Generator
Generate valid tax identification numbers for testing (TR, US, SG, etc.)
National Identity Generator
Generate and validate national ID numbers for testing (TR, US, DE, UK, SA, AE, QA, KW, CA, ES, BR, FR, IT, NL, SE, NO, EG, SG)
Tax ID Validator
Auto-detect and validate VAT, EIN, TIN and GST identifiers with batch checksum reporting.