Home · Docs-to-JSON · Tax Invoice to JSON

Convert Tax Invoice to structured JSON in 2 seconds

Paste any tax invoice — get clean JSON with fields, line items, totals and dates. One API call. No regex. No training.

Try live demo → See pricing

Example: Tax Invoice → JSON

Input — raw tax invoice text
INVOICE #INV-2043
Date: 2026-03-14
Vendor: Acme Supplies Ltd.
Customer: Brightline Imports Inc.

Items:
1. Copper wire, 2mm — 120 m × $4.50
2. Steel fittings, 3/4" — 40 pcs × $7.25
3. Shipping — $85.00

Subtotal: $925.00
Tax (10%): $92.50
Total: $1,017.50
Output — structured JSON
{
  "document_type": "tax-invoice-to-json",
  "fields": {
    "invoice_number": "INV-2043",
    "date": "2026-03-14",
    "vendor": "Acme Supplies Ltd.",
    "customer": "Brightline Imports Inc.",
    "subtotal": 925,
    "tax": 92.5,
    "total": 1017.5,
    "currency": "USD",
    "line_items": [
      {
        "description": "Copper wire, 2mm",
        "qty": 120,
        "unit": "m",
        "unit_price": 4.5
      },
      {
        "description": "Steel fittings, 3/4\"",
        "qty": 40,
        "unit": "pcs",
        "unit_price": 7.25
      },
      {
        "description": "Shipping",
        "qty": 1,
        "unit": "job",
        "unit_price": 85
      }
    ]
  }
}

API call

curl -X POST https://document-to-json.boring-saas-infra.workers.dev/extract \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "document_type": "tax-invoice-to-json",
    "text": "<your tax invoice text here>"
  }'

# → 200 OK
{
  "document_type": "tax-invoice-to-json",
  "fields": { ... }
}

Why use our tax invoice parser

Pricing

$0/forever
  • 50 extractions / day
  • All 100+ document types
  • REST API access
Start free
$19.99/month
  • 5,000 extractions / month
  • Priority queue
  • Email support
Subscribe →

FAQ

How do I convert a tax invoice to JSON?

POST the raw text of your tax invoice to our /extract endpoint with document_type="tax-invoice-to-json". You get structured JSON back in ~2 seconds.

Is there a free tier for tax invoice extraction?

Yes. 50 extractions per day, no credit card required.

Do I need to OCR my tax invoice first?

No. Send raw text. If you have a PDF or image, use any OCR you already have and send us the text — or use our MCP server which handles PDFs directly.

What fields are extracted from a tax invoice?

Typical fields: parties, dates, amounts, totals, currency, line items, tax, identifiers, and any document-specific fields.

Can I integrate this via API?

Yes. REST API. Works from any language. See the main Docs-to-JSON page for docs.

Related document types