Swiss UID Company Number Validator (CHE, mod 11 Check)

Paste Swiss company identification numbers to check the CHE format and check digit, read the VAT suffix and copy each number in the standard style.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste the numbers

    Put one UID per line, with or without CHE and dots.

  2. 2
    Read the results

    Each line shows valid or invalid and the reason.

  3. 3
    Check the VAT suffix

    See whether MWST, TVA or IVA marks a VAT registration.

  4. 4
    Fix errors

    Use the expected check digit to find the typo.

  5. 5
    Export

    Download the results as CSV or copy the valid numbers.

About this tool

Every company, association and sole trader registered in Switzerland has a business identification number, the UID (Unternehmens-Identifikationsnummer, IDE in French, IDI in Italian). It looks like CHE-123.456.789: the letters CHE, eight digits that are chosen at random, and a ninth digit that is a check digit. The same number is used for the commercial register, for VAT and for statistics. For VAT the number is followed by MWST in German, TVA in French or IVA in Italian. Invoices, supplier databases and customs forms all need the right UID, and a single wrong digit makes an invoice non-compliant or blocks a payment. This validator checks a whole list at once with the official weighting, explains every error and returns the clean format.

Who this is for

Accountants checking supplier master data, online shops collecting business customers' numbers, and anyone who prepares invoices that must show the VAT number of a Swiss company.

How the check digit works

The first eight digits are multiplied by the weights 5, 4, 3, 2, 7, 6, 5 and 4, and the products are added. The remainder of the sum divided by 11 is subtracted from 11. If the result is 11, the check digit is 0. If the result is 10, the number is never issued, so a UID whose first eight digits give 10 is always invalid. For CHE-116.281.710 the weighted sum is 132, the remainder is 0, and the check digit is therefore 0.

The suffixes

A UID followed by MWST, TVA or IVA shows that the company is registered for value added tax. HR, RC or RI refer to the commercial register. Since 2014 the old six-digit VAT numbers are no longer valid, and invoices must show the UID with the VAT suffix if the supplier charges VAT. The validator reads the suffix and tells you whether it is a VAT number.

What the tool does not check

A correct check digit only means the number is well formed. To see whether a company exists, is active and is registered for VAT, search the public UID register of the Federal Statistical Office, which also shows the name and address. The tool does not connect to the register, so your list stays private.

Batch use

Paste a column from a spreadsheet. Spaces, dots and dashes are ignored. Each line shows the result, the clean format and, for a failing number, the check digit that the first eight digits would need, which helps find a swapped pair. Export the table as a CSV file for your records.

Test numbers

The sample button creates random numbers with a correct check digit for testing forms and software. They may belong to a real company by chance, so never print them on invoices.

Worked example

CHE-116.281.710 MWST passes: the weighted sum of the first eight digits is 132, so the check digit is 0, and the suffix shows a VAT registration. CHE-116.281.711 fails because the last digit should be 0.

Limits

This is a format check and not an official confirmation of a company or its VAT status.

Worked example

CHE-116.281.710 MWST is valid: the weighted sum 132 leaves remainder 0, so the check digit is 0, and MWST marks a VAT number.

Quick facts

Frequently asked questions

What does a Swiss UID look like?

CHE followed by nine digits in groups of three, for example CHE-123.456.789, with MWST, TVA or IVA added for VAT.

How is the check digit calculated?

With weights 5, 4, 3, 2, 7, 6, 5 and 4 on the first eight digits and modulo 11; a result of 11 becomes 0 and 10 is never used.

Is the UID the same as the VAT number?

Yes, the VAT number is the UID followed by MWST, TVA or IVA.

Can I check if the company exists?

Not here. Use the public UID register, which shows the company name, address and status.

Does the tool accept numbers without dots?

Yes. Dots, spaces and dashes are ignored, and the result is shown in the standard format.

Are my lists uploaded?

No. The check runs on your device only.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages