How to extract data from an OFD invoice
Choose or drop a Chinese VAT invoice in .ofd format. The browser reads the structured data inside the file and shows the invoice details. Select Copy details to paste the displayed labels and values into another app. Select Download JSON to save a file for a script or another system. The invoice stays on your device.
Which invoice fields are available?
The result can include the invoice number, invoice code, issue date, buyer and seller names and tax IDs, the amount before tax, the tax amount, and the total with tax. It shows the fields available in the invoice. JSON stores values as text so that invoice numbers retain leading zeros and amounts retain their decimal digits.
Which OFD invoices can I use?
Use an original Chinese VAT invoice whose OFD file contains an embedded invoice XML or structured tags that point to the invoice text. Image-only files and OFD documents without those fields cannot be extracted here. Some fully digital invoices are delivered as a separate XML file. This tool opens OFD files, and it extracts header fields without checking electronic signatures or reading line items.
Use the OFD viewer to read the invoice as it appears on the page, or convert OFD to PDF to share a fixed-layout copy.