VAT number check
Check the structure and check digit of a VAT number from any EU member state, Northern Ireland, Great Britain, Switzerland or Norway.
- Version 1
- Checked against 1 published value
- Free, no sign-up
Result: A German number
| Valid Whether the VAT number passes every check. |
yes |
|---|---|
| Normalized The number as it was checked: separators removed, letters in upper case. |
DE136695976 |
| Message The result in a sentence, naming the rule that failed. |
A well-formed VAT number from Germany. |
| Country The prefix: the ISO 3166 code, except EL for Greece, XI for Northern Ireland and CHE for Switzerland. |
DE |
| Country name The country's name. |
Germany |
| National number The number after the prefix. |
136695976 |
Calculator check/vat-number@1.
How it is calculated
the country's structure, then its check digit rule (for example ISO 7064 MOD 11,10 for Germany, modulus 97 for Belgium, Luhn for Italy and Sweden)Checks a VAT identification number against its country's structure and check digit rule: all 27 EU member states, Northern Ireland (XI), Great Britain, Switzerland and Norway. This is the test to run before sending a number to VIES or putting it on an invoice: it catches typing mistakes at once and works when VIES is down. It does not say whether the number is registered.
- The number is checked by arithmetic alone. Nothing is looked up, so a valid result means the number is well formed, not that the account, company or security exists.
- Whether a number is registered for VAT is answered by the EU's VIES service or the national tax office, which are not consulted.
- In Bulgaria, Czechia, Latvia and Spain a person's VAT number is their personal number; its date part is checked where it has one.
- The EU prefix (non-Union One Stop Shop numbers) is not covered.
References
- European Commission: VIES, VAT identification number structure by member state
- Swiss Federal Statistical Office: the business identification number (UID)
- Brønnøysund Register Centre: the organisation number's check digit
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/check/vat-number \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "DE 136 695 976"
}'
The same call in Python
import os
import requests
payload = {
"number": "DE 136 695 976",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/check/vat-number",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"number": "DE 136 695 976",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/check/vat-number", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_check_vat_number at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="check/vat-number" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
- Australian Business Number (ABN) check
- BIC (SWIFT code) check
- CUSIP check
- GSTIN check (India)
- IBAN check
- ISIN check
- LEI check
- PAN check (India)
- US bank routing number check
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.