The Swiss UID (Unternehmens-Identifikationsnummer) is the single business identifier used across the Swiss commercial registry, VAT (MwSt), and federal statistics. Before relying on a supplier’s UID, you can confirm it is internally well-formed using the official modulo-11 check. This validator runs that check entirely in your browser.
How it works
A UID is CHE plus nine digits. The ninth digit is a check digit computed from the first eight:
- Strip the
CHEprefix, any dots/dashes, and any VAT suffix (MWST / TVA / IVA), leaving nine digits. - Multiply the first eight digits by the fixed weight vector
5, 4, 3, 2, 7, 6, 5, 4. - Sum the eight products.
- Compute
check = 11 - (sum mod 11). - If
checkis 11, the check digit is 0. Ifcheckis 10, no valid check digit exists, so the UID is invalid. Otherwise the ninth digit must equalcheck.
Example
Validate CHE-116.281.710. The first eight digits are 1 1 6 2 8 1 7 1.
Weighted sum: (1x5)+(1x4)+(6x3)+(2x2)+(8x7)+(1x6)+(7x5)+(1x4) = 5+4+18+4+56+6+35+4 = 132. 132 mod 11 = 0, so check = 11 - 0 = 11, which maps to check digit 0. The stated ninth digit is 0, so the UID is valid.
Notes
A valid check digit confirms structure, not VAT registration. For legal certainty, look the UID up in the official register. All processing here is local — nothing is transmitted.