DevTools Logo

Uruguay RUT Generator

Uruguay RUT Generator

Generate 12-digit DGI RUT numbers with the mod-11 check digit — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates 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).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Generated RUT

    Input
    RUT · Generate
    Output
    21-100342-001-7

    Prefix 21, serial 100342, the 001 block and check digit 7.

    UY prefix accepted

    Input
    UY 21 140634 001 1
    Output
    Valid — check digit 1 matches 21140634001

    Spaces and a leading country prefix are ignored, matching how invoices print the number.

    Wrong check digit

    Input
    21-100342-001-8
    Output
    Invalid — check digit is 8 but the first 11 digits require 7

    The 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

    1. Generate one RUT

      Click Generate to create a 12-digit RUT with a 01–22 prefix and the fixed 001 block.

    2. Copy the value

      Copy the formatted result or download it as a .txt file.

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

    PartRule
    Length12 digits
    Prefix01–22 in the first two digits
    SerialSix digits, not all zeros
    Fixed block001 in positions 9–11
    Check weights4, 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