Skip to content

Free tool · No sign-up

Check a Tunisian tax ID (format)

Paste a tax ID to check its format and understand each part: identifier, key, VAT code, category and establishment number.

With or without slashes, spaces or dashes. Short format accepted: 1234567A.

Examples to try

Format only. This tool does not confirm that the company exists or that the tax ID belongs to it.

Check result

Valid format

Normalised form
1234567A/A/M/000
TEJ identifier
1234567A
  • Identifier7 digits1234567
  • Check keyOne letter (not recomputed by this tool)A
  • VAT codeMandatorily subject to VATA
  • Category codeLegal entity (company)M
  • Establishment no.000: main establishment000

Same decoding as FactiPro's TEJ export. The key letter is not recomputed. To confirm a company's identity, ask for its tax identification card or contact your tax office.

Structure of a Tunisian tax ID

The tax ID is printed on the tax identification card. Its full form chains five parts, often separated by slashes.

  1. Identifier: 7 digits.
  2. Check key: one letter, attached to the identifier.
  3. VAT code: A (mandatorily subject), B (by option), P (partial), D (suspension regime) or N (not subject).
  4. Category code: M (legal entity), C (individual trader), P (liberal profession), N (non-resident) or E (secondary establishment).
  5. Establishment number: 3 digits, 000 for the main establishment.

The short format keeps only the identifier and the key. It is the form expected in the XML file of withholding certificates uploaded to TEJ.

This check covers the format. It does not query any official register and does not prove that the company exists. To confirm the identity of a supplier or customer, ask for their tax identification card or contact your tax office.

Decoded example

1234567A/A/M/000

Fictitious tax ID
Identifier1234567
Check keyA
VAT code: mandatorily subjectA
Category code: legal entityM
Main establishment000
TEJ identifier1234567A

Example tax ID: it does not match any real company known to FactiPro.

The customer's tax ID must appear on your invoices: invoicing software in Tunisia.

This tool is for information only and does not replace advice from a chartered accountant or the official texts.

Frequently asked questions

Tax ID: your questions

How is a Tunisian tax ID made up?

It has a 7-digit identifier followed by a key letter, then a VAT code (one letter), a category code (one letter) and a 3-digit establishment number, for example 1234567A/A/M/000. The number 000 means the main establishment.

Does this tool confirm that the company exists?

No. It only checks that the tax ID follows the expected format. A well-formed tax ID may match no company, or a different one. To confirm the identity of a supplier or customer, ask them for their tax identification card or contact your tax office.

What do the letters A, B, P, D and N of the VAT code mean?

A: mandatorily subject to VAT. B: subject by option. P: partially subject. D: suspension regime. N: not subject.

Which identifier does the TEJ XML file need?

The TEJ XML file expects the 7-digit identifier followed by the key, for example 1234567A. An 8-digit identifier is usually a national ID card (CIN) number: this tool does not accept it as a tax ID.

0 DT · no credit card

Customer and supplier records without tax ID errors

FactiPro prints the tax ID on every invoice, checks it before the TEJ export and prepares your withholding certificates.