Invoice to JSON Converter

Upload a PDF or scan of an invoice and see the invoice number, seller, date, line items, tax and total extracted in seconds. The same data is available as JSON through the WiseOCR API.

Upload an invoice

Drag a photo or PDF, or click to select

This is what the API returns

A sample invoice and the unedited data the WiseOCR API returned for it (each response also carries a small usage block with the credits used). Every invoice comes back in the same structure, so you map it into your accounting system or database once.

Sample US invoice with sales tax used as the API example
{
  "data": {
    "vendor": "Cedarline Office Supply LLC",
    "time": "2026-09-14",
    "currency": "USD",
    "country": "US",
    "documentType": "invoice",
    "documentNo": "INV-2026-0418",
    "totalNet": "2361.97",
    "totalTax": "194.86",
    "taxDetails": [
      {
        "rate": "0.0825",
        "amount": "194.86"
      }
    ],
    "total": "2556.83",
    "items": [
      {
        "name": "Ergonomic Office Chair",
        "quantity": "4",
        "unitPrice": "289.00",
        "price": "1156.00"
      },
      {
        "name": "Standing Desk Frame",
        "quantity": "2",
        "unitPrice": "415.50",
        "price": "831.00"
      },
      {
        "name": "Dual Monitor Arm",
        "quantity": "3",
        "unitPrice": "74.99",
        "price": "224.97"
      },
      {
        "name": "Installation Service",
        "quantity": "1",
        "unitPrice": "150.00",
        "price": "150.00"
      }
    ]
  }
}

One request is all it takes:

curl -X POST https://api.wiseocr.com/v1/file \
  -H "Authorization: $WISEOCR_API_KEY" \
  -F "file=@invoice.pdf"

Fields you get in the JSON

  • documentType - "invoice" or "receipt", detected automatically
  • documentNo - the invoice number
  • vendor - seller name
  • taxNo - seller tax ID such as a VAT number, when printed on the invoice
  • time - issue date in ISO 8601
  • currency / country - ISO currency code and country of the invoice
  • items[] - line items with quantity, unit price and amount, plus net amount and tax per line when the invoice shows them
  • totalNet / totalTax / taxDetails - subtotal, tax amount and a breakdown per tax rate
  • total - the amount due

Amounts come back as plain decimal strings and dates in ISO format, regardless of how the invoice printed them. The reasoning behind every field, with edge cases like discounts and multi-page PDFs, is in our receipt & invoice JSON schema guide. Prefer no code? The same fields flow into 2,000+ apps through the Make.com integration and Zapier.

Working with receipts? See the receipt to JSON converter.

How invoice to JSON conversion works

  1. Step 1

    Upload a PDF or scan

    A PDF invoice straight from your mailbox, a scanned paper invoice or a phone photo - no templates or per-supplier setup.

  2. Step 2

    OCR reads the text, AI structures it

    WiseOCR recognises the text, checks that the document really is an invoice, and maps the header, line items and taxes to fixed fields.

  3. Step 3

    Get the same JSON for every supplier

    Every invoice comes back in one predictable shape, so your accounting import or database mapping is written once - whatever the layout or country.

FAQ

Frequently Asked Questions

  • Yes. The demo calls the same endpoint as the API. The demo renders the result as a table; the API returns the exact same data as JSON, like the example above.

  • Yes. The API accepts PDF invoices up to 5 pages and 4 MB, as well as JPG, PNG and other common image formats. Each page counts as one scanned page for billing.

  • Yes. The example above is a US invoice with sales tax. EU VAT invoices return the seller's VAT number, the tax per rate and, when printed, the net amount and tax for each line. Every response includes the ISO currency code and country.

  • The standard response covers the seller, invoice number, issue date, line items, taxes and totals. If you need additional fields, contact support@wiseocr.com and we will discuss a custom schema.

  • Yes. The WiseOCR apps for Make and Zapier send the extracted fields to Google Sheets, accounting software and thousands of other apps without any code.

  • You pay per scanned page, from $0.03 per page on the largest credit pack. You can buy credits once or subscribe monthly - there is no minimum monthly fee.

Background

Turn receipts into data, effortlessly

Stop wasting time on manual entry — automate it with WiseOCR

Get Started Now