Free · No sign-up · Your data stays with you
A form 347 letter for every customer and supplier, from your spreadsheet
1. Your transactions for the year
CSV, TXT or .xlsx exported from your invoicing software.
Upload the year's invoice list exported from your software (CSV or Excel) or paste it. The tool groups by tax ID, splits purchases (key A) and sales (key B), works out the VAT-inclusive total and the four quarters, flags who goes over €3,005.06 and gives you a PDF confirmation letter for each one, one by one or in a ZIP.
Everything is calculated in your browser: the file is not uploaded anywhere and the letters are created on your computer.
How it works
From your invoice list to the letters, in four steps
- 101
Export the year's invoices
From your invoicing or accounting software, export issued and received invoices with date, tax ID, name, total and type (purchase or sale). A CSV, an Excel file (.xlsx) or copied cells all work.
- 202
Check the columns
The tool recognises the usual headers (date, NIF/CIF, company name, total, type), in Spanish or English. If there is no total but there are base and VAT columns, it adds them up: form 347 includes VAT. If there is no type column, you choose whether everything is sales or purchases.
- 303
Review the summary
You will see each third party with their quarters, annual total and whether they go over the threshold. Tax IDs are checked with the same logic as our validators, and rows that could not be read are listed separately with their number.
- 404
Create the letters
Add your company details and the reply deadline, tweak the text if you like and download the letters: one by one, all in a ZIP or all in a single PDF to print. You can also download a CSV summary to reconcile with the return.
| Column | Accepted | Example |
|---|---|---|
| Date | dd/mm/yyyy, d-m-yy, yyyy-mm-dd or Excel date | 15/01/2026 |
| Tax ID | NIF, CIF, DNI, NIE or EU VAT number (with or without «ES») | B12345674 |
| Name | Company or person name | Talleres Ejemplo, S.L. |
| Total | VAT included; comma or point decimals; negatives for credit notes | 1,815.00 |
| Base + VAT | Instead of the total: they are added up | 1,500.00 and 315.00 |
| Type | Sale, purchase, customer, supplier, issued, received, A or B | Sale |
Form 347
What Spanish form 347 is and what goes in it
It is Spain's annual return of transactions with third parties: it tells the Tax Agency (AEAT) who you bought from or sold to above a set amount during the year. Nothing is paid; it lets the AEAT cross-check your figures with those of your customers and suppliers. It is governed by articles 31 to 35 of Royal Decree 1065/2007 and Order EHA/3012/2008.
| Rule | What it says | Source |
|---|---|---|
| Threshold | Every person or entity with whom transactions exceeded €3,005.06 in the calendar year is reported. | RD 1065/2007, art. 33.1 |
| Purchases and sales | Counted separately: €2,000 of purchases and €2,000 of sales with the same party do not reach the threshold. | Art. 33.1, para. 2 |
| VAT | The total amount is reported including VAT and surcharges. | Art. 34.2.a) |
| Quarters | Figures are broken down by quarter (except cash-basis VAT and owners' associations, which report annually). | Art. 33.1 |
| Credit notes | Amounts are net of returns, discounts and rebates in the same year. | Art. 34.4 |
| Date | What counts is the period in which the invoice is entered in the VAT books. | Art. 35.1 |
| Deadline | Filed during February of the following year. | Order EHA/3012/2008, art. 10 |
Transaction keys (official AEAT record layout): A, purchases of goods and services; B, supplies of goods and services (your sales). The rest (C collections on behalf of others, D non-business purchases by public bodies and owners' associations, E public grants, F and G travel agencies) are for specific cases. Form 347 record layout.
Who does not file (art. 32): businesses without a seat, permanent establishment or tax domicile in Spain; self-employed people under the flat-rate schemes, except for invoiced transactions; anyone who does not exceed €3,005.06 with anyone; and those keeping their VAT books through the SII (art. 62.6 of the VAT Regulation; confirmed in the AEAT FAQ).
Transactions left out (art. 33.2): those that did not require an invoice, those outside the business, imports and exports, shipments between mainland Spain or the Balearics and the Canaries, Ceuta or Melilla, and, in general, those already reported in another periodic information return with the same content.
The tool adds up what you give it. If your list includes excluded transactions (exports, intra-EU, invoices already reported in another form), remove them first or check those parties with your accountant.
The letter
The form 347 letter, explained
No rule requires it. It does not appear in articles 31 to 35 of RD 1065/2007, in Order EHA/3012/2008 or in the AEAT help pages. It is a widespread habit because the AEAT cross-checks what you report against what each customer and supplier reports: if the figures differ, it may ask questions. Sending the letter before February gives time to fix it.
- Who sends it: your company, to every party above the threshold, in January or early February.
- What it includes: your details, theirs, the year, the VAT-inclusive total with the quarterly breakdown, whether they are purchases or sales, a reply deadline and how to get in touch.
- What it does not need: a signature or registered post; an email with the PDF is enough.
- If there is no reply: the usual approach is to treat it as agreement (the template says so) and file with your figures.
Dear Sir or Madam,
We are preparing the annual return of transactions with third parties (Spanish form 347) for {ejercicio}. According to our books, the total amount of {operaciones} with {tercero} (tax ID {nif_tercero}) during that year, VAT included, is as follows:
[TABLA]
Please check these amounts against your own records. If they do not match, let us know before {fecha_limite} at {contacto}, so we can review them before filing. If we do not hear from you, we will assume you agree.
Yours faithfully,[TABLA] is replaced by the table with the four quarters and the total. The placeholders in braces are filled in automatically: {ejercicio} (year), {tercero}, {nif_tercero}, {operaciones}, {total}, {empresa}, {nif_empresa}, {fecha_limite} and {contacto}.
If the other party says the figures differ, the usual causes are: an invoice booked in another quarter or year (the booking date counts, art. 35.1), a credit note one side deducted and the other did not, comparing the net base with the VAT-inclusive total, or an invoice with withholding that one side includes and the other does not.
Excel
If you would rather do it in Excel
With an «Operations» sheet (date in A, tax ID in B, name in C, total in D and type in E) and another sheet with one tax ID per row, these formulas give the annual total, each quarter and whether to report it. Swap «Sale» for «Purchase» for key A.
' Annual total for the third party in row 2 (tax ID in column B, total in D, type in E)
=SUMIFS(Operations!$D:$D, Operations!$B:$B, B2, Operations!$E:$E, "Sale")
' First quarter (dates in column A of the Operations sheet)
=SUMIFS(Operations!$D:$D, Operations!$B:$B, B2, Operations!$E:$E, "Sale",
Operations!$A:$A, ">="&DATE(2026,1,1), Operations!$A:$A, "<="&DATE(2026,3,31))
' Above the threshold in art. 33.1 of Royal Decree 1065/2007? (strictly greater)
=IF(ABS(C2)>3005.06, "Declare", "No")The formula does not check tax IDs, merge a party written two ways or set aside badly written rows: that is what the tool above does.
FAQ
Frequently asked questions about the letter and form 347
Is the form 347 amount with or without VAT?
With VAT. Art. 34.2.a) of RD 1065/2007 says the return shows «the total amount of the consideration, including the VAT charged or borne and surcharges». The €3,005.06 threshold is also checked against that total.
From what amount must a customer or supplier be reported?
When transactions with them exceed €3,005.06 in the calendar year (art. 33.1 of RD 1065/2007). Exactly €3,005.06 is not reported. Purchases and sales with the same party are counted separately.
Is the form 347 letter mandatory?
No. No rule requires it: it is common practice to reconcile amounts before filing, because the AEAT cross-checks your return with each party's.
What if my figures do not match a customer's or supplier's?
Go through the invoices together: it is usually an invoice booked in another quarter or year, a credit note or comparing net with gross. If different figures are filed, the AEAT may ask either side to explain. That is why the letter sets a reply deadline.
What are keys A and B?
A is your purchases (from suppliers) and B your supplies of goods and services (sales to customers), as defined in the official record layout. The tool separates them and creates a letter for each.
When is form 347 filed?
During February of the year after the transactions (art. 10 of Order EHA/3012/2008). Send the letters in January to leave time for corrections.
If I use the SII, do I have to file form 347?
No. Those keeping their VAT books through the AEAT e-office (SII) are excluded: art. 32.e) of RD 1065/2007 (referring to art. 62.6 of the VAT Regulation), confirmed in the AEAT FAQ.
Are invoices with income tax withholding or rents included?
In general, transactions already reported in another periodic information return with the same content are left out (art. 33.2.i), as happens with many invoices with withholding. Business premises rentals that are reported go separately, with the cadastral reference (art. 34.1.d). Check your own case with your accountant: the tool adds up what you give it.
How are quarters assigned?
Each invoice counts in the quarter it is booked in the VAT books (art. 35.1). The tool uses the date in your list: export the booking date if it differs from the invoice date.
Does it create the file to submit form 347 to the AEAT?
No. The AEAT publishes its record layout, but filing is done by your software or accountant (procedure GI27). This tool prepares the letters and a CSV summary to reconcile first.
Is my data uploaded anywhere?
No. The file is read and processed in your browser; the letters and the ZIP are created on your computer. There is no server receiving anything.
About
Who builds it and why
It is built by Black Wings, a software studio in Valencia (Spain). Searching for a form 347 letter in January turns up a Word template for a single letter, behind a sign-up, or the manual of a paid accounting package. This mini-app creates every letter at once from the list you already have, free and without asking for your email.
Tax IDs are checked with the same logic as our DNI and NIE and company NIF validators. If you want the letters produced straight from your software and emailed out, we build that as custom work: tell us about it.
This is not tax advice. We explain the rules with their sources, but which transactions go in your form 347 depends on your case: if in doubt, ask your accountant.
Privacy
What happens to the data
- Your file is read in the browser with JavaScript. It is not uploaded to any server or stored in the browser (no
localStorage, no cookies): close or reload the page and it is gone. - The letters, the ZIP and the CSV are created on your computer and downloaded directly. You decide who to send them to.
- Analytics: the fields are flagged so analytics does not collect them and there is no form submission. We checked it: across the whole flow with a test list, no network request carries this data.
- The PDF library (pdf-lib) is loaded from our own domain only when the first letter is created.
Need it connected to your software?
Letters produced straight from your invoicing software, emailed to each customer and supplier, with the replies logged: we build that as custom work at Black Wings.