Greece AFM Tax Number Validator

Paste Greek AFM numbers to check the length and the check digit, and get each valid number in the EL VAT format used for EU invoices.

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

…

How to do it

  1. 1
    Paste the numbers

    One AFM per line, with or without EL.

  2. 2
    Read the results

    Every AFM is marked as passing or failing.

  3. 3
    Fix errors

    Use the expected check digit for failing numbers.

  4. 4
    Copy VAT numbers

    Each valid AFM shows its EL VAT form.

  5. 5
    Export

    Download the table as CSV.

About this tool

The AFM (Αριθμός Φορολογικού Μητρώου) is the Greek tax registration number, issued by the Independent Authority for Public Revenue (AADE) to every individual and business with tax obligations in Greece. It has nine digits, and the last one is a check digit. Businesses use the same number as their VAT number with the prefix EL, not GR, in EU trade. Invoices, myDATA submissions, contracts and bank accounts all require it, and a wrong digit can make an invoice invalid for the buyer's VAT deduction. This validator checks lists of AFM numbers with the official method, shows the expected check digit for errors and gives the EL VAT form.

Who this is for

Accountants, e-shops issuing invoices to Greek businesses, payroll staff and developers of invoicing software.

The check digit

Each of the first eight digits is multiplied by a power of two: 256, 128, 64, 32, 16, 8, 4 and 2, from left to right. The products are added, the sum is divided by 11 and the remainder is taken modulo 10. The result must equal the ninth digit. For 090000045, the first eight digits are 0, 9, 0, 0, 0, 0, 0 and 4, so the sum is 9 × 128 + 4 × 2 = 1,160, which leaves 5 when divided by 11, matching the last digit 5.

Who has an AFM

Every Greek tax resident, foreign residents with income or property in Greece, companies, sole traders and other legal entities. Foreigners usually get one at a tax office (ΔΟΥ) or online through a representative, before opening a bank account or signing a lease.

The EL VAT number

For intra-EU trade, the Greek VAT number is EL followed by the AFM. Greece uses EL, from Ellas, instead of the ISO code GR. Before applying reverse charge on a sale to a Greek business, check the VAT number in the European Commission's VIES system.

Invoices and myDATA

Since the introduction of myDATA, invoices are transmitted to AADE electronically, and the buyer's AFM is a key field. A wrong AFM means the invoice is not matched to the buyer, who may lose the expense or VAT deduction. Validating at data entry prevents this.

Batch use

Paste a column of numbers, with or without the EL prefix. Each line shows the result and, for errors, the expected check digit. Export the table as CSV.

Test numbers

The sample button creates numbers with valid check digits for software tests. They may belong to real taxpayers, so never use them on real invoices.

Limits

A valid check digit does not prove that a number was issued or is active. Use AADE's registry services or VIES for confirmation.

Worked example

090000045 is valid: 9 × 128 + 4 × 2 = 1,160, which leaves 5 when divided by 11, matching the last digit.

Quick facts

Frequently asked questions

How many digits does a Greek AFM have?

Nine digits, the last of which is a check digit.

How is the AFM check digit calculated?

The first eight digits are weighted by 256 down to 2, summed, and the sum modulo 11 and then modulo 10 must equal the last digit.

Why does the Greek VAT number start with EL?

The EU uses EL, from Ellas, for Greece in VAT numbers instead of GR.

Do foreigners need an AFM?

Yes, to open a bank account, rent, work or buy property in Greece.

Can the tool confirm the holder's name?

No. It only checks the format and the check digit.

Are the numbers uploaded?

No. They are checked in your browser.

Guides for this tool

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