pdftojson.dev
Receipt → JSON

Turn a receipt into JSON.

Expenses, bookkeeping, reimbursements — get a receipt's data as JSON. Text in the browser, structured fields through the API.

— no file —
Runs in your browser Nothing uploaded Scanned & tables via API Free to use

Building something? Same parse, one call.

Send a PDF, get the same structured output back, plus OCR for scanned files and table extraction. Batch-ready. From $29/month.

Read the API docs →
# POST a file, get JSON curl -X POST https://api.pdftojson.dev/v1/extract \ -H "Authorization: Bearer $KEY" \ -F file=@doc.pdf \ -F format=json

Receipts are small but awkward — odd sizes, tight layouts, faded print. This tool reads a text-based receipt PDF and returns its contents as JSON in your browser, no upload. It's the quick path when you just need the text as data.

For expense and bookkeeping workflows you usually want the fields — merchant, date, tax, total, and line items — not the raw text. That's structured extraction on the API, which returns typed JSON ready to drop into an expense report or ledger.

Can it read a photo of a receipt?+

A photo has no text layer, so it needs OCR. The browser tool handles text-based receipt PDFs; the API can OCR photos and scans.

Which fields does receipt extraction return?+

Typically merchant name, date and time, payment method, subtotal, tax, tip, total, and line items with description and price.

Free tool vs API for receipts?+

The browser tool gives you the receipt's text as JSON. The API extracts named fields and line items as structured JSON.

How do I feed receipts into an expense system?+

Use the API to convert each receipt to JSON, then map the fields to your expense tool's format. It's designed for automated pipelines.

How accurate is it on faded or thermal receipts?+

Clean digital receipts extract well. Faded thermal prints and skewed photos are harder and benefit from a review step.

Can I extract receipts in bulk?+

Yes, through the API — send them as they come in and store the JSON.

How is this different from an OCR library?+

An OCR library gives you raw text you still have to parse. This returns the text as JSON in the browser, and named fields through the API.

Is my receipt uploaded?+

Not for free browser extraction of text-based PDFs. OCR and structured extraction run on the API.