Switzerland UID Validator

Validate Swiss company identification number (UID / CHE)

Ad placeholder (leaderboard)

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:

  1. Strip the CHE prefix, any dots/dashes, and any VAT suffix (MWST / TVA / IVA), leaving nine digits.
  2. Multiply the first eight digits by the fixed weight vector 5, 4, 3, 2, 7, 6, 5, 4.
  3. Sum the eight products.
  4. Compute check = 11 - (sum mod 11).
  5. If check is 11, the check digit is 0. If check is 10, no valid check digit exists, so the UID is invalid. Otherwise the ninth digit must equal check.

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.

Ad placeholder (rectangle)