What is the FEC?
The FEC is a standardized copy of the company’s books: one file per fiscal year, in the same format whatever the accounting software. It is not filed every year: it is handed over in a tax audit, an obligation that applies to audits announced since January 1, 2014.
Each entry takes one line per account, all with the same entry number. Each line gives the journal, the date, the account, the debit or credit amount and the supporting document.
The file runs from the opening entries on day one (the balance sheet balances carried forward from the previous year) to the year-end adjusting entries (depreciation, change in inventory, provisions).
The SME in our example is fictional: distribution and services, €4.2M in revenue and €122,000 in net income in 2025. Its FEC has 353 lines for 100 entries. Here is its January sales entry.
Debits equal credits: that is double-entry bookkeeping, which any check of the file verifies. Account names stay in French, as in any French FEC: 411 Clients (customers), 707 Ventes de marchandises (sales of goods), 706 Prestations de services (services).
The tax inspector uses it to sort, classify and recalculate the entries, and destroys their copies before the additional taxes are assessed.
FEC, general ledger and trial balance: three views of the same entries
| Document | What it shows | Order | Format |
|---|---|---|---|
| FEC | Every entry line, with 18 pieces of information | Chronological, by validation date | Set by article A. 47 A-1 |
| General ledger | The same lines, grouped account by account | By account, then by date | Free-form, specific to the software |
| Trial balance | Total debits and credits for each account | By account | Free-form |
The general ledger can be rebuilt from the FEC, not the other way around: its printouts do not always carry the validation date (the day the entry becomes final), which the FEC requires.
Who must produce an FEC, when, and what are the penalties?
Any company in France that keeps its books with software and is subject to corporate income tax or to an actual-profit regime must hand over its FEC. This applies to industrial and commercial profits (BIC), non-commercial profits (BNC) and agricultural profits (BA) alike.
Who is covered
Three conditions must all be met: keeping the books with software, having to present accounting records under the French General Tax Code, and being audited. A French branch of a foreign company is covered too. French tax guidance provides for two exemptions:
- micro-entrepreneurs (sole proprietors under France’s simplified micro-business regime), even if they keep their books with software;
- real estate partnerships (SCI) taxed only on rental income and whose partners are all individuals.
An SCI subject to business taxes, or with a company among its partners, is still required to produce one.
When it must be handed over
Only on request: the FEC is not sent with the tax return. In an on-site audit (vérification de comptabilité), it is handed over at the inspector’s first visit, one file per audited year. In a remote audit (examen de comptabilité), the company has fifteen days from receipt of the notice.
Fifteen days is enough if the file already exists: ask your accountant to produce the FEC at every year-end, check it and archive it with the annual financial statements. The medium (USB drive, secure platform) is agreed with the inspector.
Penalties and official deadlines
The key rules set by French law, as checked on November 10, 2026 (LPF: Tax Procedure Code; CGI: General Tax Code; BOI: BOFiP, the official French tax guidance):
| Rule | What it provides | Source |
|---|---|---|
| Handover, on-site audit | At the start of the audit | LPF, art. L. 47 A, I; BOI-CF-IOR-60-40-10, § 170 |
| Handover, remote audit | 15 clear days (excluding the day of receipt and the deadline day) from receipt of the notice | LPF, art. L. 47 AA; BOI-CF-DG-40-20, § 310 |
| Fine, on-site audit | €5,000, or 10% of the reassessed tax (the additional tax claimed at the end of the audit) if that is higher | CGI, art. 1729 D, I |
| Fine, remote audit | €5,000 | CGI, art. 1729 D, II; BOI-CF-DG-40-20, § 380 |
| Number of fines | One per audit, however many years are audited | BOI-CF-IOR-60-40-10, § 290; BOI-CF-DG-40-20, § 390 |
| Length of the on-site audit | The 3- or 6-month time limits only start once compliant FEC files are handed over | BOI-CF-IOR-60-40-10, § 210 to 240 |
| Response after a remote audit | The tax authority responds at most 6 months after receiving compliant FEC files | LPF, art. L. 47 AA; BOI-CF-DG-40-20, § 320 |
The catch is in the “or”: in an on-site audit, the fine is €5,000 up to €50,000 of reassessed tax, then 10% of the reassessment.
The fine also applies to a badly formed file: accurate books are no protection against a non-compliant FEC. On top of that, the tax authority can set the taxable amount itself (ex officio assessment).
What is the structure of an FEC file?
An FEC is a text file whose first line names the 18 fields, in a set order, from JournalCode to Idevise. Each following line is an entry line, its fields separated by a tab or a vertical bar “|”. Field names are in French, exactly as the regulation writes them.
The Example column shows the first line of the January sales entry.
| Field | Information | Type | Can be blank | Example |
|---|---|---|---|---|
| 01 JournalCode | Journal code | Alphanumeric | No | VE |
| 02 JournalLib | Journal name | Alphanumeric | No | Ventes |
| 03 EcritureNum | Entry number, in a continuous sequence | Alphanumeric | No | VE0002 |
| 04 EcritureDate | Posting date | Date | No | 20250131 |
| 05 CompteNum | Account number, first three characters numeric | Alphanumeric | No | 411 |
| 06 CompteLib | Account name | Alphanumeric | No | Clients |
| 07 CompAuxNum | Subsidiary account number (customer, supplier) | Alphanumeric | Yes, if not used | (blank) |
| 08 CompAuxLib | Subsidiary account name | Alphanumeric | Yes, if not used | (blank) |
| 09 PieceRef | Supporting document reference | Alphanumeric | No | 2025-VE0002 |
| 10 PieceDate | Document date | Date | No | 20250131 |
| 11 EcritureLib | Entry description | Alphanumeric | No | Ventes 01/2025 |
| 12 Debit | Debit amount | Numeric | No | 294000,00 |
| 13 Credit | Credit amount | Numeric | No | 0,00 |
| 14 EcritureLet | Matching code: links an invoice to its payment | Alphanumeric | Yes, if not used | (blank) |
| 15 DateLet | Matching date | Date | Yes, if not used | (blank) |
| 16 ValidDate | Validation date | Date | No | 20250131 |
| 17 Montantdevise | Foreign currency amount | Numeric | Yes, if not used | (blank) |
| 18 Idevise | Currency code | Alphanumeric | Yes, if not used | (blank) |
“Can be blank” does not mean “optional”: the column is always there, only the value can be missing.
Five fields that raise questions
- EcritureNum. An increasing sequence with no gaps, which can be specific to each journal: two journals can then share a number.
- EcritureDate. The date the transaction takes effect in the books, not the data entry date.
- PieceRef and PieceDate. Mandatory even without a document (opening entries): use a placeholder value, explained in the accompanying description.
- Debit and Credit. Always a numeric value in both, zero on the side that does not apply. Amounts can be negative.
- ValidDate. The date the entry moves from draft (entered but not yet validated) to final; without drafts, the posting date. If it is empty, the entry was not validated.
Separator, encoding, dates, file name
| Rule | What article A. 47 A-1 says | Paragraph |
|---|---|---|
| File type | Flat file, one line per record; an XML file matching the published schema is also accepted | VI |
| Separator | Tab or “|”. The commas or semicolons of a CSV file are not accepted | VI, 1°, c |
| First line | The field names, spelled as in the regulation | VII, 4° |
| Encoding | ASCII, ISO 8859-15 or UTF-8 | XII, 1° |
| Amounts | Decimal comma, no thousands separator; the sign as first or last character | XII, 2° |
| Dates | YYYYMMDD, no separator: 20251231 | XII, 4° |
| File name | SirenFECYYYYMMDD, with the year-end date (SIREN is the company’s 9-digit French ID number): 123456789FEC20251231 | IX |
| Order and content | Chronological order of validation, opening entries first; all entries after year-end adjustments, with no summarized entries (lines grouped into a total) and no closing entry that zeroes out the income and expense accounts | VII, 1° and 3° |
| Accompanying description | A document explaining the fields, codes, character set and structure | XI |
Variants allowed by the regulation
- Montant and Sens (amount and direction) replace Debit and Credit if the software does not store both; Sens is D or C, or +1 or -1.
- BNC and BA. Under accrual accounting (transactions recorded at the invoice date), the same 18 fields, with journal and account allowed to be blank. Under cash-basis accounting (recorded on receipt and payment), three fields are added for BA (DateRglt, ModeRglt, NatOp: 21 fields), and a fourth for BNC (IdClient: 22).
- Several establishments: a 19th column holds the establishment code.
- Extra fields are accepted after the first 18, since the file must contain “all the accounting data.”
- A file split by period, with the inspector’s agreement (
123456789FEC); each part repeats the header.20251231_01
What does an FEC file look like?
An FEC looks like a plain-text table: a header line, then one line per account posted in each entry. Here is an excerpt from the SME’s file, with the “|” separator; each line is wrapped at the bars for display.
JournalCode|JournalLib|EcritureNum|
EcritureDate|CompteNum|CompteLib|
CompAuxNum|CompAuxLib|PieceRef|
PieceDate|EcritureLib|Debit|
Credit|EcritureLet|DateLet|
ValidDate|Montantdevise|Idevise
AN|À-nouveaux|AN0001|20250101|370|
Stocks de marchandises|||
2025-AN0001|20250101|À-nouveaux|
400000,00|0,00|||20250101||
AN|À-nouveaux|AN0001|20250101|101|
Capital|||2025-AN0001|20250101|
À-nouveaux|0,00|300000,00|||
20250101||
…
VE|Ventes|VE0002|20250131|411|
Clients|||2025-VE0002|20250131|
Ventes 01/2025|294000,00|0,00|||
20250131||
VE|Ventes|VE0002|20250131|707|
Ventes de marchandises|||
2025-VE0002|20250131|
Ventes 01/2025|0,00|203000,00|||
20250131||
VE|Ventes|VE0002|20250131|706|
Prestations de services|||
2025-VE0002|20250131|
Ventes 01/2025|0,00|91000,00|||
20250131||The opening entries (“À-nouveaux”) start the file, on January 1, in their own journal: entry AN0001 has 11 lines, 2 of them shown here, for €1,812,924 on each side. Two bars in a row mark a blank field.
The example is simplified: no VAT, one sale per month. A real file has longer account numbers (70600000 in the BOFiP examples) and subsidiary accounts. The full file can be downloaded from the checking tool.
How do you check that an FEC is compliant?
An FEC is checked in two stages: the form, against article A. 47 A-1 (separator, 18 fields, dates, amounts, file name), then accounting consistency (balanced entries). The official tool is Test Compta Demat, from the DGFiP (the French tax authority); our checking tool gives a first diagnosis in the browser.
Test Compta Demat, the DGFiP’s tool
Test Compta Demat is free Windows software, downloadable from economie.gouv.fr, whose source code the DGFiP publishes. It shows the same screen that tax officials see when they receive a file.
- It reads flat and XML files, including BA and BNC files.
- It refuses to run if the file is not named SirenFECYYYYMMDD or if the separator is not accepted.
- It produces a PDF report and a log of issues, with their line numbers.
- Its user guide says so plainly: the report “does not constitute a certificate of compliance and cannot bind the tax authorities” (our translation).
Checking your FEC in the browser
Our tool runs twelve checks, each tied to its rule. On the SME’s FEC:
The tool also checks the balance, because a well-formed file can be unbalanced, for example if it was truncated during export.
Our tool flags the decimal point, which Test Compta Demat rejects, but checks neither the continuity of entry numbering nor the XML format. Use ours for a quick look at the file, and the DGFiP’s before any handover. Neither judges the substance of the entries: that is the accountant’s job.
Mistakes that make an FEC non-compliant
Almost all of them are about form, and are fixed in the software, not in the file.
- Renaming the file. “FEC 2025 final.txt” is not accepted.
- Editing the file in Excel, even just saving it.
- A decimal point or a thousands separator: “1,234.50” makes both mistakes.
- Handing over unvalidated entries, with an empty validation date.
- Filling unused fields with zeros or spaces.
- Leaving the document reference and date blank on opening entries and miscellaneous entries.
- A separator inside a description: a bar or a tab shifts the whole line.
- Summarized entries, one total per journal and per month, instead of the detail.
- Forgetting the opening entries: without them, none of the balance sheet balances is correct.
- Changing software without keeping the FEC files: after a mid-year switch, both files are handed over.
- Waiting for the audit notice to generate the file.
How do you get the FEC from your accounting software?
Every French accounting package produces the FEC, each from its own menu, and most only deliver the version meant for the tax authority after the year-end close. Menu names are given below as they appear in the French versions.
| Software | Where to generate the FEC | Good to know | Checked on |
|---|---|---|---|
| Sage 100 Comptabilité | Traitement, Fin d’exercice, Générateur fichier écritures DGFiP | The “Sauvegarde fiscale des données et clôture” (tax backup and close) also produces an FEC, but irreversibly | November 10, 2026 |
| Sage 50 | Current year: Échanges, Exporter des écritures, FEC format. Closed year: Dossier, Exercices clôturés, open the year, then Traitements, Vérification comptable DGFIP, Export des écritures FEC | With draft or simulation checked, the file is called “Export FEC provisoire” (provisional): uncheck them for an audit | November 10, 2026 |
| Sage Génération Experts | Last month of the year, then Exercice, Génération du fichier des écritures comptables pour l’Administration Fiscale | SIREN required in the company file’s contacts. Fichier, Exporter, FEC format produces an exchange file, not the one for the tax authority | November 10, 2026 |
| Pennylane | Comptabilité, Saisie, Exports, “Exporter le FEC” | Tab-delimited text in UTF-8, inside a ZIP. Provisional until the year is closed: ValidDate empty. A VAT rate digit is appended to the account number | November 10, 2026 |
| Tiime Expert | Production comptable, Docs & Éditions, Éditions & Exports | “FEC - Contrôle fiscal” only on a closed year | November 10, 2026 |
| EBP Comptabilité | Déclaratif, Fichier des écritures comptables | Path checked for EBP Comptabilité and Hubbix | November 3, 2026 |
If anything differs, your version’s documentation prevails. Cegid, ACD and MyUnisoft are covered in our Power BI for accounting guide. If an accounting firm keeps your books, ask them for the FEC.
Exporting the FEC from Sage 100
- During the year, run the FEC pre-check (État, Analyse et contrôles) and correct the flagged entries.
- At year-end, back up the database, then close the journals, open the new year and post the opening entries.
- Generate the file via Traitement, Fin d’exercice, Générateur fichier écritures DGFiP.
- Check it, then archive it with the annual financial statements.
Do not run the tax backup as a test: Sage describes it as “an irreversible process” (our translation). The other ways to read a Sage database are in our Power BI and Sage guide.
How do you open an FEC in Excel or Power BI?
Open an FEC in Excel via Data, From Text/CSV, rather than File, Open, and always work on a copy: the file handed over must remain the one produced by the software. Power BI uses the Text/CSV connector.
In Excel
Via File, Open, the import wizard offers the General type for every column: Excel guesses, and gets it wrong. Via Data, the import goes through Power Query (the import tool built into Excel), where you choose each type. The same line, read both ways:
Three wrong values, with no error message. Four settings fix this:
- Codes as text: JournalCode, EcritureNum, CompteNum, CompAuxNum, PieceRef, EcritureLet, otherwise “01”, “000123” or “0001” become 1, 123 and 1.
- Dates converted from YYYYMMDD text, for all four date columns.
- Amounts: “294000,00” is only a number for Excel set to a decimal-comma locale such as French; elsewhere, right-click the column heading, then Change type, Using locale, and choose Decimal Number with the French (France) locale, then check a column total.
- Accents: if they display badly, change the File Origin; Power Query only detects UTF-8 on its own if the file starts with a byte order mark (BOM, an invisible code at the start of the file).
An Excel worksheet stops at 1,048,576 rows: beyond that, use Excel’s Data Model or Power BI.
In Power Query and Power BI
The Text/CSV connector detects tabs on its own; for “|”, choose a custom delimiter. Turn off automatic type detection, which only looks at the first 200 rows, and set column types yourself.
For several fiscal years, the Folder connector reads all the FEC files in a folder. The general method is in our Power Query guide.
In other accounting software
The FEC is also used to switch accounting software: Sage 50 and Pennylane document an import. Before importing, check the mapping of journals and accounts, the opening entries (so the opening balance sheet is not carried over twice) and that the totals match.
What can a business owner read in the FEC?
Beyond audits, the FEC is the most complete copy of the books, readable by any tool. From it you can get:
- The trial balance, at any date in the year.
- The income statement month by month: account classes 6 (expenses) and 7 (income) grouped by posting month.
- The French intermediate management balances (soldes intermédiaires de gestion): gross margin on goods sold, value added, EBE (gross operating surplus, close to EBITDA); the EBITDA calculator and the intermediate management balances page detail the accounts behind each one.
- Customer payment times, if matching is kept up to date: the gap between invoice and payment shows how long each customer really takes to pay. The DSO calculator (days sales outstanding) turns it into an average, the working capital requirement calculator into the cash tied up.
Grouped by month, the SME’s sales accounts (those starting with 70) give a curve the tax return does not show.
August is €168,000 below the best month: seasonality to plan for in the cash flow forecast.
When the FEC is not enough
- Cost accounting: none of the 18 fields carries a cost center (the business line, site or project the line belongs to), unless the software adds a column.
- The budget, often kept in Excel.
- Quantities, items, detailed payroll: the FEC only knows amounts by account.
- Due dates: it says whether an invoice is matched, not when it was due.
- Freshness: one file per year; during the year, it is provisional and has no year-end adjustments.
To pass an audit, Test Compta Demat and your accountant are enough. A dashboard built on the FEC is for tracking these numbers every month, across several years or companies. The method is in our Power BI for accounting guide, the KPIs in the financial dashboard guide.
Frequently asked questions
How long must a company keep its FEC files?
In France, accounting books and records must be kept for ten years after the end of the fiscal year (Commercial Code, art. L. 123-22). Documents relevant to a tax audit must be kept for six years (Tax Procedure Code, art. L. 102 B). Keeping each FEC for ten years along with the annual financial statements covers both.
What are the 3 mandatory accounting documents in France?
The French Commercial Code requires three books: the general journal records entries in chronological order; the general ledger sorts them by account; the inventory book lists assets and liabilities and includes the annual financial statements. The question can also refer to the three annual financial statements: balance sheet, income statement and notes. The FEC is neither: it is the standardized copy of the entries.
Does a furnished rental landlord (LMNP) have to produce an FEC?
Yes, if taxed under the actual-profit (“réel”) regime and keeping the books with software: furnished rentals are taxed as industrial and commercial profits (BIC), so the landlord must be able to hand over an FEC in a tax audit. Under the micro-BIC regime, the landlord keeps no accounts in the tax sense, so there is no FEC to produce. French tax guidance sets no rule specific to LMNP.
Check your FEC online
The tool reads your FEC on your device, without sending it to any server, runs the twelve checks and shows key figures, monthly revenue and journals. The sample FEC can be downloaded from it.
Choose the text file exported by your accounting software, or drop it on this box. Your browser reads it and it never leaves your device: nothing is sent to a server, nothing is stored, and no analytics run on its content. Once the page has loaded, the check works even offline.
Or paste an excerpt
Results for the sample FEC 123456789FEC20251231.txt
The 2025 fiscal year of a fictional French trading and services SME: 353 lines, tab-separated, in UTF-8. The button above downloads this same file.
No structural issues across 12 checks. Separator: tab. Amounts: Debit / Credit.
| Check | Verdict | Finding |
|---|---|---|
| EncodingA. 47 A-1, XII, 1° | Compliant | File read as UTF-8. |
| Field separatorA. 47 A-1, VI, 1°, c | Compliant | Separator detected: tab. |
| The 18 fields, their names and orderA. 47 A-1, VII, 1° and 2° | Compliant | All 18 fields are present, in the order set by the regulation. |
| Same number of fields on every lineA. 47 A-1, VI and VII; Test Compta Demat rule | Compliant | All 353 lines have 18 fields, like the header. |
| Mandatory fields filled inA. 47 A-1, VII, 1°; BOFiP § 70, 180 and 190 | Compliant | No missing values in the fields the regulation requires to be filled in. |
| Dates in YYYYMMDD formatA. 47 A-1, XII, 4° | Compliant | All dates filled in are in YYYYMMDD format and are real calendar dates. |
| Numeric amounts, decimal commaA. 47 A-1, XII, 2°; BOFiP § 210 | Compliant | All amounts are numeric, with a decimal comma and no thousands separator. |
| Account numbersA. 47 A-1, VII, 1° (item 5) | Compliant | All 30 accounts start with three digits. |
| Balanced entriesDouble entry: French GAAP (PCG), art. 921-1, cited in BOFiP § 100 | Compliant | All 100 entries are balanced (debit = credit, by journal and entry number). |
| Total debits = total creditsDouble entry: French GAAP (PCG), art. 921-1 | Compliant | Debits and credits both total €18,311,448.00. |
| Dates within the fiscal yearA. 47 A-1, VII, 1° and IX | Compliant | Entries from 01/01/2025 to 12/31/2025, none after the 12/31/2025 year-end in the file name. The FEC does not give the fiscal year’s start date: compare this period with your fiscal year. |
| File nameA. 47 A-1, IX; BOFiP § 370 | Compliant | SIREN 123456789, fiscal year ended 12/31/2025. |
What the file contains
Revenue by month (accounts 70)
Expenses by category (class 6, debit − credit)
| Purchases and inventory changes (60) | €2,165,000 |
|---|---|
| External services (61 and 62) | €285,000 |
| Taxes other than income tax (63) | €40,000 |
| Personnel costs (64) | €1,450,000 |
| Financial expenses (66) | €18,000 |
| Depreciation, impairment and provisions (68) | €85,000 |
| Employee profit-sharing and income tax (69) | €35,000 |
| Total expenses | €4,078,000 |
| Total income (class 7) | €4,200,000 |
| Net income | €122,000 |
Journals
| Journal | Lines | Debit = credit |
|---|---|---|
| BQ · Banque | 132 | €8,198,524 |
| AC · Achats | 120 | €2,490,000 |
| OD · Opérations diverses | 54 | €1,610,000 |
| VE · Ventes | 36 | €4,200,000 |
| AN · À-nouveaux | 11 | €1,812,924 |
This reading assumes the French chart of accounts: revenue is the sum of accounts 70 (net of discounts in 709) and net income is the difference between classes 7 and 6. For a fiscal year not yet closed, the year-end adjusting entries are missing: net income is provisional.
This check is not a certificate of compliance. It checks the structure of the flat file and that entries balance, not the substance of the accounts, the continuity of entry numbering or the XML format. The reference tool is Test Compta Demat, from the DGFiP (French public finances directorate).
