Chilean RUT generator and validator

Generate and validate a Chilean RUT for tests, with the check digit algorithm shown with a worked example.

loading Chilean RUT generator and validator
About this tool

Chilean RUT: what it is and how to test it

The RUT (Rol Único Tributario) is the identification number of people and companies in Chile, issued by the Servicio de Impuestos Internos and the Registro Civil. It is the number written on the identity card and asked in every online form, with a check digit that can be a digit or the letter K.

For tests only. These numbers have a correct format and check digit but belong to no real person or account. Never use them to deceive, to open accounts or to bypass a check. The numbers on this page come from the same generator as the tool, with a fixed seed so that the examples do not change; the tool creates new ones at every click.

Structure of the number

A body of 7 or 8 digits (roughly 1 million to 99 million), a hyphen and a check character, written 12.345.678-5. Companies and foundations use bodies from 50 million up.

The check digit, step by step

The digits of the body are taken from right to left and multiplied by the weights 2, 3, 4, 5, 6, 7, repeating the series if needed. The products are summed and the check character is 11 minus the remainder of the sum by 11: if the result is 11 it is 0, and if it is 10 it is written K.

Worked example with 7.566.228-9:

The digits are taken from right to left with the weights 2, 3, 4, 5, 6, 7 repeating:

PositionCharacterValueWeightProduct
188216
22236
32248
466530
566636
655735
777214

Sum = 145; 145 mod 11 = 2; 11 - 2 = 9: the check digit is 9 (10 is written K and 11 is 0).

Valid examples

Five numbers generated by the tool with a fixed seed, each one accepted by its validator:

Example (formatted)Without maskValidator
7.566.228-975662289valid
5.836.075-958360759valid
24.617.454-7246174547valid
21.664.336-4216643364valid
25.242.417-2252424172valid

How the validator answers

The same first example, one with a changed ending and one truncated, checked by the validator:

ValueResultReason
7.566.228-9valid-
75662280invalidthe check digit should be 9
756622invalidthe check digit should be 8

Common mistakes

  • The weights go from the right end of the body, not from the left: starting from the left gives the right result only by coincidence.
  • A lowercase "k" is the same check character as "K": normalise the case before comparing, and remove the dots and the hyphen before computing.

Frequently asked questions

When is the check digit of a RUT a K?

When 11 minus the remainder of the weighted sum is 10. Two digits are not enough to write it, so Chile uses the letter K. A form that only accepts digits rejects roughly 1 in 11 valid RUT.

Is 12.345.678-5 a valid RUT?

By the check digit, yes: it is the common documentation example. It does not belong to a person we know of, but it is not reserved either, so keep it to tests.

Can I use a Chilean RUT number generated here in a real system?

No. A number such as 7.566.228-9 has a correct format and check, but nobody was issued it, and it may coincide with a real holder by chance. Use it in test environments, demos and automated tests that never leave your control.

Report a problem