Convert Invoice to structured JSON in 2 seconds
Paste any invoice — get clean JSON with fields, line items, totals and dates. One API call. No regex. No training.
Example: Invoice → JSON
Input — raw 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": "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": "invoice-to-json",
"text": "<your invoice text here>"
}'
# → 200 OK
{
"document_type": "invoice-to-json",
"fields": { ... }
}
Why use our invoice parser
- Extracts every important field from any invoice — no templates, no regex, no training.
- Handles layout variations, multi-page, non-English text.
- Returns clean JSON with line items, totals, dates, parties and identifiers.
- Free 50 extractions per day. Pro: 5,000/month for $19.99.
- REST API. Works from any language. MCP server for AI agents.
Pricing
FAQ
How do I convert a invoice to JSON?
POST the raw text of your invoice to our /extract endpoint with document_type="invoice-to-json". You get structured JSON back in ~2 seconds.
Is there a free tier for invoice extraction?
Yes. 50 extractions per day, no credit card required.
Do I need to OCR my 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 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.