ROWFA

KSeF XML to Excel: the workbook, column by column

The converter writes one .xlsx file with six sheets. Each column below is read from the FA(3) element shown, without rounding. FA(3) is the XML structure of invoices in KSeF, Poland's national e-invoicing system.

Have a ZIP of KSeF XML invoices?
Turn it into an Excel workbook and PDFs. Free up to 5 files, nothing uploaded.

Open the converter

Sheet "Invoices": one row per invoice (58 columns)

ColumnPolish termFA(3) source
File nameNazwa pliku(file)
KSeF numberNumer KSeF(not in the XML: _metadata.json or file name)
KSeF number sourceŹródło numeru KSeF(this tool)
Invoice numberNumer fakturyFa/P_2
Invoice type codeRodzaj fakturyFa/RodzajFaktury
Invoice typeRodzaj faktury (opis)Fa/RodzajFaktury
Issue dateData wystawieniaFa/P_1
Sale dateData dostawy / wykonania usługiFa/P_6
Period fromOkres odFa/OkresFa/P_6_Od
Period toOkres doFa/OkresFa/P_6_Do
Place of issueMiejsce wystawieniaFa/P_1M
Seller NIPNIP sprzedawcyPodmiot1/DaneIdentyfikacyjne/NIP
Seller nameNazwa sprzedawcyPodmiot1/DaneIdentyfikacyjne/Nazwa
Seller countryKraj sprzedawcyPodmiot1/Adres/KodKraju
Seller addressAdres sprzedawcyPodmiot1/Adres/AdresL1 + AdresL2
Buyer ID typeRodzaj identyfikatora nabywcyPodmiot2/DaneIdentyfikacyjne (NIP | KodUE+NrVatUE | NrID | BrakID)
Buyer tax IDIdentyfikator podatkowy nabywcyPodmiot2/DaneIdentyfikacyjne (NIP | KodUE+NrVatUE | KodKraju+NrID)
Buyer nameNazwa nabywcyPodmiot2/DaneIdentyfikacyjne/Nazwa
Buyer countryKraj nabywcyPodmiot2/Adres/KodKraju
Buyer addressAdres nabywcyPodmiot2/Adres/AdresL1 + AdresL2
Buyer customer numberNumer klientaPodmiot2/NrKlienta
Other partiesPodmioty trzeciePodmiot3 (Rola, NIP, Nazwa)
CurrencyKod walutyFa/KodWaluty
Net total (sum of P_13 fields)Suma wartości sprzedaży nettocalculated: sum of Fa/P_13_1 ... P_13_11
VAT total (sum of P_14 fields)Suma kwot podatkucalculated: sum of Fa/P_14_1 ... P_14_5
VAT total in PLNSuma kwot podatku w PLNcalculated: sum of Fa/P_14_1W ... P_14_4W (foreign-currency invoices)
Gross totalKwota należności ogółemFa/P_15
P_15 vs P_13 + P_14Kontrola arytmetycznacalculated: P_15 compared with the two sums (arithmetic only)
PaidZapłaconoFa/Platnosc/Zaplacono | ZnacznikZaplatyCzesciowej (empty when the XML says nothing)
Payment dateData zapłatyFa/Platnosc/DataZaplaty
Payment due dateTermin płatnościFa/Platnosc/TerminPlatnosci/Termin (first)
Other payment termsPozostałe terminy płatnościFa/Platnosc/TerminPlatnosci (further Termin, TerminOpis)
Payment methodForma płatnościFa/Platnosc/FormaPlatnosci | OpisPlatnosci
Bank accountNumer rachunkuFa/Platnosc/RachunekBankowy/NrRB
SWIFTKod SWIFTFa/Platnosc/RachunekBankowy/SWIFT
Amount to payDo zapłatyFa/Rozliczenie/DoZaplaty
Order numbersNumery zamówieńFa/WarunkiTransakcji/Zamowienia/NrZamowienia
Contract numbersNumery umówFa/WarunkiTransakcji/Umowy/NrUmowy
Split paymentMechanizm podzielonej płatnościFa/Adnotacje/P_18A
Reverse chargeOdwrotne obciążenieFa/Adnotacje/P_18
Self-billingSamofakturowanieFa/Adnotacje/P_17
Cash accountingMetoda kasowaFa/Adnotacje/P_16
VAT exemption basisPodstawa zwolnienia od podatkuFa/Adnotacje/Zwolnienie/P_19A | P_19B | P_19C
Margin schemeProcedura marżyFa/Adnotacje/PMarzy
Simplified triangulationProcedura trójstronna uproszczonaFa/Adnotacje/P_23
Related parties (TP)Powiązania między nabywcą a dostawcąFa/TP
Correction reasonPrzyczyna korektyFa/PrzyczynaKorekty
Correction effectTyp skutku korektyFa/TypKorekty
Corrected invoice numbersNumery faktur korygowanychFa/DaneFaKorygowanej/NrFaKorygowanej
Corrected invoice KSeF numbersNumery KSeF faktur korygowanychFa/DaneFaKorygowanej/NrKSeFFaKorygowanej
Advance invoicesFaktury zaliczkoweFa/FakturaZaliczkowa
LinesLiczba wierszycount of Fa/FaWiersz
Has attachmentZałącznikZalacznik
Issuing systemSystem wystawcyNaglowek/SystemInfo
File created atData wytworzenia fakturyNaglowek/DataWytworzeniaFa
KSeF verification linkLink weryfikacyjny (KOD I)calculated: seller NIP + P_1 + SHA-256 of this file
File hash checkKontrola skrótu pliku(this tool) SHA-256 of the file vs invoiceHash in _metadata.json
NotesUwagi(this tool)

Sheet "Lines": one row per invoice line (36 columns)

Order lines of advance payment invoices (ZamowienieWiersz) are included and marked "Order line".

ColumnPolish termFA(3) source
File nameNazwa pliku(file)
KSeF numberNumer KSeF(not in the XML: _metadata.json or file name)
Invoice numberNumer fakturyFa/P_2
Issue dateData wystawieniaFa/P_1
Seller NIPNIP sprzedawcyPodmiot1/DaneIdentyfikacyjne/NIP
Seller nameNazwa sprzedawcyPodmiot1/DaneIdentyfikacyjne/Nazwa
Buyer tax IDIdentyfikator podatkowy nabywcyPodmiot2/DaneIdentyfikacyjne
Buyer nameNazwa nabywcyPodmiot2/DaneIdentyfikacyjne/Nazwa
CurrencyKod walutyFa/KodWaluty
Line typeRodzaj wierszaFaWiersz = invoice line; ZamowienieWiersz = order line on an advance invoice
Line no.Lp.FaWiersz/NrWierszaFa | ZamowienieWiersz/NrWierszaZam
DescriptionNazwa towaru lub usługiFaWiersz/P_7
UnitMiaraFaWiersz/P_8A
QuantityIlośćFaWiersz/P_8B
Unit price netCena jednostkowa nettoFaWiersz/P_9A
Unit price grossCena jednostkowa bruttoFaWiersz/P_9B
DiscountRabatFaWiersz/P_10
Net valueWartość sprzedaży nettoFaWiersz/P_11
VAT rate codeStawka podatkuFaWiersz/P_12
VAT rate meaningStawka podatku (opis)FaWiersz/P_12
VAT amountKwota podatkuFaWiersz/P_11Vat
Gross valueWartość sprzedaży bruttoFaWiersz/P_11A
OSS VAT rateStawka podatku OSSFaWiersz/P_12_XII
Line dateData dostawy / wykonaniaFaWiersz/P_6A
Item codeIndeksFaWiersz/Indeks
GTINGTINFaWiersz/GTIN
PKWiUPKWiUFaWiersz/PKWiU
CN codeCNFaWiersz/CN
GTUGTUFaWiersz/GTU
ProcedureProceduraFaWiersz/Procedura
Annex 15 itemZałącznik nr 15FaWiersz/P_12_Zal_15
Excise amountKwota podatku akcyzowegoFaWiersz/KwotaAkcyzy
Exchange rateKurs walutyFaWiersz/KursWaluty
Before correctionStan przed korektąFaWiersz/StanPrzed
Line IDUU_IDFaWiersz/UU_ID
Line notesDodatkowy opisFa/DodatkowyOpis (rows with NrWiersza)

Sheet "VAT summary": one row per invoice and VAT category

ColumnPolish termFA(3) source
FieldPoleFa/P_13_x
VAT categoryKategoriameaning of the P_13_x field
Net amountKwota nettoFa/P_13_x
VAT amountKwota podatkuFa/P_14_x
VAT amount in PLNKwota podatku w PLNFa/P_14_xW

Other sheets

How values are written

Source: schemat_FA(3)_v1-0E.xsd (Ministry of Finance, KSeF documentation repository). Read 2026-11-10.