What is a tax ID?

A tax ID, or tax identification number (TIN), is the number a tax office uses to tell people and businesses apart, and every country has its own kind. US businesses get an Employer Identification Number (EIN), written NN-NNNNNNN. Italy uses the 16-character codice fiscale, and in Sweden, Denmark, Poland and many other countries the personal identity number doubles as the tax number.

You meet tax IDs on payslips, tax returns, invoices and bank forms, and payroll staff, accountants and developers check them to catch typos before a form goes out.

Tool description

Type or paste a number into the Tax ID field, and the result shows as you type: "Tax ID is valid" or "Tax ID is not valid". Spaces and line breaks around the number are ignored.

The Country menu sets whose rules apply. It starts on the country that goes with the language you're reading the page in, where the list has it, and on the United States otherwise. The list covers every EU country and others such as the United Kingdom, Canada, Brazil and Ukraine.

Each country has its own format

  • United States: an EIN, as NN-NNNNNNN, NN NNNNNNN or nine digits in a row, starting with a prefix the IRS hands out (00, for example, fails)
  • United Kingdom: a ten-digit Unique Taxpayer Reference, or a National Insurance number (two letters, six digits and a letter from A to D) without spaces
  • Germany: eleven digits, not starting with 0, without spaces
  • Spain: a DNI of eight digits and a check letter, or an NIE starting with X, Y or Z
  • Brazil: a CPF, as NNN.NNN.NNN-NN or eleven digits, or a CNPJ of 14 characters without its dots and slash

Check digits and birth dates

Most countries add check digits or letters, worked out from the rest, so one mistyped digit usually makes the number fail. Personal numbers in Sweden, Denmark, Poland, Italy and other countries contain the birth date, and the tool checks that it exists, so a number that says 31 April fails.

The United States, the United Kingdom, Malta and the ten-digit numbers of Slovakia get a format check only, plus the prefix test for the US.

Good to know

  • A number can pass and still belong to nobody: the check can't look anything up.
  • With United States picked, a Social Security number with its hyphens, NNN-NN-NNNN, fails, but the same nine digits without hyphens pass when they start with a valid EIN prefix.
  • For the VAT numbers of businesses, use the VAT Validator.

Features

  • Tax ID rules of every EU country, the US, the UK and more
  • Tests check digits and birth dates where a country's numbers have them
  • Starts on your country when the list has it
  • Results as you type, with no button to press
  • Runs in your browser, so nothing you type is sent anywhere