KSeFGPT
Get started for free
Guide
July 10, 202611 min readRafał Zeidler

How to Convert KSeF XML into a Readable PDF Invoice

Learn how to create a readable PDF from invoice XML, check the data and distinguish a preview from a KSeF-accepted invoice visualisation.

How to Convert KSeF XML into a Readable PDF Invoice

Summary

A KSeF XML file stores invoice data in the FA(3) structure, but it is not as convenient to read as a traditional document. A converter can arrange the data in a readable PDF with details of the seller, buyer, line items, tax and totals.

Generating a PDF does not change the source document, repair errors or confirm that KSeF has accepted the invoice. A complete check still requires the XML file, validation and system data such as the status, KSeF number and UPO, the official acknowledgement of receipt.

After conversion, compare the parties, invoice number, dates, currency, number of line items, VAT rates and amounts with the XML file. If the PDF will be sent to a customer or used outside KSeF, also check whether the specific case requires the correct QR verification code.

Why an XML file does not look like an invoice

You receive a file with an XML extension and see tags, technical field names and a long stream of data instead of a readable invoice. This is normal. A structured invoice is designed primarily for automatic processing by KSeF and accounting software, not for viewing like a text document.

A PDF solves the readability problem at only one level. It presents the data to a person. On its own, it does not show whether the structure complies with FA(3), whether KSeF has accepted the invoice or whether its tax treatment is correct.

Key takeaways

The table below separates the parts of the process that distinguish a working data preview from a visualisation of an invoice already processed by KSeF.

PointDetails
XML is the data sourceA structured invoice is an XML file that complies with the FA(3) structure.
PDF is a readable presentationIt makes checking, printing and sharing data with a person easier, but does not show whether the invoice already has a KSeF number.
Appearance does not prove correctnessA readable PDF can also be generated from a document that contains incorrect or incomplete data.
A check is still needed after conversionCompare the transaction parties, number, dates, line items, VAT and totals.
QR depends on how the document is usedA verification code is required in certain cases when an invoice is shared or used outside KSeF.

What happens when XML is converted to PDF

The FA(3) structure stores data in organised sections. The header contains technical information, the entity sections describe the seller, buyer and other parties, and the invoice section includes the document number, dates, currency, line items, VAT rates and totals.

A converter reads these fields and arranges them in a format that resembles a traditional invoice. It does not use OCR because the data is already stored in the file. Its purpose is to map the XML structure to headings, tables and totals that a person can read.

Transaction parties: check the seller's and buyer's name, identifier and address.

Document: compare the invoice number, dates, currency and payment details.

Line items and totals: check descriptions, quantities, prices, VAT rates and the net, VAT and gross amounts.

Conversion changes how the invoice is presented, not its content. Once you know what the generator does, you can move safely to the conversion process itself.

XML sectionElement in the PDFWhat the user should check
Seller dataSeller blockWhether the name, Polish tax identification number (NIP) and address belong to the correct company.
Buyer dataBuyer blockWhether the invoice was issued to the correct entity.
Invoice dataNumber, dates and currencyWhether the PDF includes every date and displays the correct currency.
Invoice linesLine-item tableWhether the number of items, descriptions, quantities and prices match the transaction.
TotalsNet, VAT and grossWhether the totals are consistent with the line items and tax rates.

How to convert KSeF XML to PDF step by step

In the KSeF XML-to-PDF converter, you can paste the invoice content or upload a file from your device. The tool is intended primarily for invoices using the current FA(3) structure.

In the current version of the tool, the XML content is read and processed in the browser. The server checks the usage limit, while the PDF itself is created on the user's device. You need to provide an email address before downloading the result. The free limit is 3 uses within 24 hours.

Preparation: keep the original XML file unchanged and work on a copy.

Upload: open the converter, paste the content or select a file from your device.

Generation and download: start the process, enter your email address and download the prepared PDF.

Check: compare the visualisation with the source data before sharing it.

The tool accepts files up to 5 MB. If a file is larger, unusual or contains extensive additional data, check it separately and do not assume that an incomplete visualisation means the invoice itself is incorrect.

StepWhat you doWhat you check
PreparationSave a copy of the XML file.Whether the file comes from a trusted system or the correct business partner.
UploadPaste the XML content or select a file from your device.Whether you have selected an invoice rather than a UPO or another XML document.
GenerationCreate a readable visualisation.Whether the tool reports an error while reading the structure.
DownloadEnter your email address and download the PDF.Whether the file name and preview match the correct invoice.
CheckCompare the PDF with the source data.Whether all key fields and totals are complete.
Free KSeFGPT tools, including the converter from a KSeF XML file to a PDF invoice

Work with KSeF invoices in one place

Read documents, check data and organise incoming and outgoing invoices without copying information manually.

Go to KSeFGPT

What to check in the visualisation before downloading the PDF

The best check is not simply to read the PDF from top to bottom. First identify the fields whose incorrect value would change the meaning of the document, then compare them with the XML file, order, contract or accounting-system data.

Parties: compare the seller's and buyer's name, NIP or another identifier, and address.

Document: check the seller's invoice number, dates and currency.

Line items: compare the number of rows, units of measure, quantities, prices and discounts.

Tax and payment: check VAT rates, net, VAT and gross amounts, as well as the due date and payment account.

Example from an accounting office: a client sends a purchase invoice as XML. The accountant generates a PDF to review the parties, line items and amounts quickly, but also retains the unchanged XML file as part of the records. Before posting the invoice, the accountant runs validation and, if the invoice comes from KSeF, also compares its KSeF number and document status.

This process takes several dozen seconds longer than downloading a PDF without reviewing it, but reduces the risk of posting a readable document with incorrect data. After checking the visualisation, you still need to determine what the PDF itself cannot prove.

FieldTypical problemHow to check
NIP and party nameDetails of another company or an outdated address.Compare them with the business-partner record and source document.
Invoice numberConfusing the seller's invoice number with the KSeF number.Check the document identifier and KSeF system data separately.
DateA missing date or an incorrect interpretation of the supply date.Compare the PDF with the relevant XML fields and the transaction.
Line itemsA truncated description, missing row or unclear unit.Compare the number and order of line items.
VAT and totalsA discrepancy between the line items and document total.Recalculate the amounts by rate and compare them with the accounting records.
PaymentThe due date or payment account is missing from the visualisation.Check the payment section in the XML file and the arrangements with the customer or supplier.

What a PDF does not confirm

A PDF can look correct even when the XML file fails validation or contains data that requires clarification. A generator is responsible for presentation. A validator checks technical compliance. KSeF provides the processing status and assigns the system number.

Structure: a PDF does not confirm compliance with the complete FA(3) schema or that every required field has been completed.

Status: a PDF does not prove that KSeF has accepted the invoice, assigned a KSeF number or made a UPO available.

Tax: a readable visualisation does not confirm that the VAT rate or transaction classification is correct.

To check the structure, read the guide to XML validation and processing in KSeF. If you need help identifying fields and numbers, see How to read KSeF XML.

Keeping these layers separate leads to the final important question: can the generated PDF be sent to the customer without any additional action?

ElementWhat it is used forWhat it does not replace
FA(3) XMLStores structured invoice data.KSeF acceptance status.
PDFMakes reading, checking and communication easier.The KSeF number, acceptance status or correct QR code.
ValidatorChecks the structure and some technical rules.A tax assessment or confirmation of acceptance.
KSeF number and statusIdentify the document after it has been processed by the system.A review of its content and consistency with the contract.
UPOConfirms the result of the process on the KSeF side.A readable presentation of line items and amounts.

When a visualisation needs a QR code

A PDF prepared solely as an internal preview is not automatically the same document that a company uses outside KSeF. The Polish Ministry of Finance states that, in situations specified by law, an invoice made available to the buyer or used outside KSeF must carry the appropriate verification code.

The code provides access to the invoice and allows the data stored in KSeF to be checked. For an online invoice used outside the system, it is linked to the KSeF number. In offline modes, the number and labelling of codes depend, among other things, on whether the invoice has already been sent to the system.

Purpose: is the document only for internal review, or will it be provided to the recipient?

Status: is the invoice already in KSeF and does it have a system number?

Marking: does the visualisation contain the correct code for the way the invoice was issued and shared?

The free converter helps create a readable document, but you should not automatically assume that every PDF downloaded from it is a complete visualisation for every KSeF scenario. If the document will leave the company, verify the QR code and invoice status.

Purpose of the PDFRole of the QR codeNext step
Internal data previewA code is not required merely to read the document.Retain the XML file and check the data.
Sharing an online invoice outside KSeFA code linked to the KSeF number may be required.Use a visualisation generated with the complete verification data.
Offline invoice before submission to KSeFThe rules may require two codes and a type 2 certificate.Do not use a standard PDF without checking the applicable mode.
Document after an offline invoice has been submittedThe marking changes after the KSeF number has been assigned.Generate an up-to-date visualisation based on the system status.

Expert perspective

The most common mistake is to equate readability with correctness. When a document has a line-item table and totals that look right, it is easy to assume that the process is complete. In reality, the generator may only have displayed correctly the values it received in the XML file.

A safe working set has several layers. The XML file stores the invoice data. Validation answers technical questions. The KSeF number, status and UPO document the process in the system. The PDF allows a person to read and compare the invoice quickly.

In a small company, this can be a simple manual process. An accounting office or an organisation processing many invoices should standardise it: retain the original XML file, generate a preview, check an agreed set of fields and only then send the document for further approval or posting.

Frequently asked questions

Is a PDF generated from XML a KSeF invoice?

A PDF is a readable visualisation of invoice data. A structured invoice in Poland's National e-Invoice System, KSeF, is an XML file that complies with the FA(3) schema and receives a KSeF number after the system accepts it. The PDF does not replace the XML file or the system data.

Does an XML-to-PDF converter fix errors in the file?

No. The converter presents the data it can read from the XML file. You should not assume that it repairs the structure, fills in missing fields or confirms the invoice's tax correctness. Use a validator to check the structure.

Can I send the generated PDF to a customer?

You can provide a customer with a readable visualisation, but first check how the invoice was issued, its status and the applicable QR code requirements. A standard PDF without the correct verification code may not be a complete visualisation for use outside KSeF.

Does the converter upload my XML file to a server?

In the current version of the KSeFGPT tool, the file is read and the PDF is generated in the user's browser. The server handles the usage limit, not the content of the converted XML file. Always assess this function against the current version of the tool and its privacy policy.

Recommended reading

To understand the file structure first, read How to read KSeF XML. For a broader explanation of fields and the schema, see XML and the FA(3) format in KSeF.

Before using the document in accounting, also review XML validation and processing in KSeF. If you are starting with a PDF and need the reverse process, read Can you send a PDF to KSeF?.

Organise KSeF invoices without copying data manually

KSeFGPT helps you read documents, check data, manage invoices and turn files into a clear process for your business and accounting team.

Go to KSeFGPT

Sources and reference materials

This article is based on official KSeF 2.0 materials, the FA(3) structure, CIRF and Polish Ministry of Finance documentation, and verified operation of the public KSeFGPT tool. The sources were checked on July 10, 2026.

  1. Structured invoice and the FA logical structure

    KSeF · accessed: July 10, 2026

    Official description of a structured invoice, the XML format, the FA(3) structure and the data stored in an invoice.

  2. FA(3) logical structure

    KSeF · accessed: July 10, 2026

    Official page containing XSD files, the information brochure and examples for the FA(3) structure.

  3. QR verification codes

    KSeF · accessed: July 10, 2026

    Rules for marking invoice visualisations used outside KSeF and the differences between online and offline modes.

  4. PDF visualisation generator for KSeF invoices

    CIRF / Polish Ministry of Finance · accessed: July 10, 2026

    Official library for generating PDF visualisations of KSeF invoices and handling QR codes.

  5. FA(3) v1-0E schema

    CIRF / Polish Ministry of Finance · accessed: July 10, 2026

    Official XSD schema for the FA(3) logical structure.

Expert reviewed: Bogdan Mazurek

Tax adviser · July 10, 2026

The article was reviewed to confirm that it correctly distinguishes an FA(3) structured XML invoice from a PDF visualisation, technical validation, the KSeF number, UPO and the verification codes used when an invoice is handled outside KSeF.

Related articles