Switzerland UID / IDE Generator
Swiss Business Identification Number (UID / IDE / IDI) generator for fiscal and invoicing software testing.
Waiting for generation...
About Swiss Business Identification Number (UID / IDE)
The UID is the single corporate identifier for all registered business entities in Switzerland.
Administered by the Federal Statistical Office (BFS), it replaced the older cantonal commercial registry numbers.
Anatomy & Structure of Swiss UID / IDE
Formatted as CHE-NNN.NNN.NNC (with optional VAT suffix):
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 4 | Country Prefix | 4 chars | "CHE-" prefix representing the Swiss Confederation | CHE- |
| 5 to 12 | Sequential Number | 8 digits | Unique sequential number allocated by BFS (FSO) | 100.123.45 |
| 13 | Check Digit | 1 digit | Calculated using BFS Weighted Modulo 11 | 6 |
| Suffix | Optional VAT Suffix | Variable | MWST, TVA, or IVA appended for VAT-registered entities | MWST |
Official Checksum Algorithm (Weighted Modulo 11 — BFS)
Official calculation formula of the Swiss Federal Statistical Office (BFS):
S = Σ (d[i] * W[i]) [W = 5, 4, 3, 2, 7, 6, 5, 4]; Remainder = S mod 11; Check = (11 - Remainder) mod 11.
- 1. Extract the first 8 numeric digits.
- 2. Multiply each digit by official weights [5, 4, 3, 2, 7, 6, 5, 4].
- 3. Sum the products and compute remainder modulo 11.
- 4. Check digit is (11 - Remainder) mod 11.
- 5. If the calculated check digit is 10, the sequence is illegal and rejected by BFS.