Skip to main content
Skip to main content

AFM / ΑΦΜ Generator (Greece Tax ID)

Generate and format valid Greek AFM / ΑΦΜ tax numbers for software development and QA testing.

Waiting for generation...

About Greek AFM / ΑΦΜ (Tax Identification Number)

The AFM (Arithmos Forologikou Mitroou - Αριθμός Φορολογικού Μητρώου) is the single taxpayer identification number for individuals and corporations in Greece, administered by the Independent Authority for Public Revenue (AADE / IAPR).

It contains exactly 9 decimal digits. The first 8 digits form the base sequential number, and the 9th digit is a check digit calculated using a Module 11 algorithm weighted by decreasing powers of 2.

Check Digit Calculation Algorithm

  1. Multiply the first 8 digits by decreasing powers of 2: d1×256, d2×128, d3×64, d4×32, d5×16, d6×8, d7×4, d8×2.
  2. Sum all 8 weighted multiplication products.
  3. Calculate the remainder of the sum divided by 11 (Sum % 11).
  4. The check digit is the remainder modulo 10 (Remainder % 10). If remainder is 10, check digit is 0.

Frequently Asked Questions & Technical Guidelines

How does AFM integrate into Greece's myDATA platform?
In Greece's myDATA e-invoicing ecosystem, the supplier's and customer's AFMs are the primary keys identifying economic parties in tax transactions.
How to convert an AFM to the European VAT (VIES) format?
For intra-EU transactions, the country prefix 'EL' is prepended to the 9-digit AFM (e.g. EL123456784).
Are the generated numbers official or real?
All identifiers generated by this tool are strictly synthetic and mathematically computed for software development and QA testing. Using fictitious data in official filings is illegal.