TTallystick

Convert UBL to JSON

For the case where the next step is code, not a spreadsheet. The invoice comes out as JSON with the same field names the other exports use.

Drop your invoice files here
or choose them from your computer. Several files at once is fine.
XRechnung · ZUGFeRD · Factur-X · UBL · CII · Peppol · FatturaPA · Facturae · KSeF FA · X12 · EDIFACT · OFX · IIF · CSV
Files stay in your browser, nothing is uploaded No account, no daily limit No file at hand?
0 files uploaded, ever Test corpus comes from the official XRechnung, ZUGFeRD, Peppol and OASIS test suites.
Export Totals not checked Format
Invoice
Seller and buyer
Line items
#Description QtyUnit Unit priceVAT %Net amount
Tax breakdown and totals
CategoryRateTaxable baseVAT amount
Payment and references

Why JSON and not the raw XML

The raw XML is already structured, but it is structured the way the standard wants rather than the way an integration wants: deeply nested, namespace-prefixed, with the same value reachable by three paths. The JSON here is the flattened result of the mapping, so a UBL file and a CII file produce the same keys and your code stops caring which syntax arrived.

What you get out

Every field below is read from the file itself. Nothing is inferred, and a field the invoice does not carry is left empty rather than filled in with a plausible guess.

  • document, seller, buyer, lines, tax, totals and payment as objects
  • The same key names across every input format the tool reads
  • Numbers as numbers, dates in ISO form
  • The detected format and syntax included in the payload

Questions

Is there an API?

Not yet. This page is a browser tool: the JSON is produced on your machine and downloaded. An API endpoint is on the paid roadmap, so say on the feedback form if that is what you actually need.

Is the schema stable?

The key names are the ones documented in the field list on the home page and they have not moved. Treat additions as possible and removals as unlikely.

Can I convert several files at once?

One file at a time here, as often as you like. Folder and ZIP batches are the paid side of the split.