Turn a receipt into JSON with stable field names for your code
Convert a receipt photo or PDF into clean JSON with snake_case keys, exact prices and null for missing values. Preview free, no sign-up needed.
This preview shows the first 350 words and does not keep your file.
Need a different result? Turn anything into anything: drop any file, pick what you want out of it.Try it →If you are writing code that reads receipts, the hard part is not the text but the shape: the same shop prints totals, tax and payment lines in a different layout every time. This page turns a receipt into one JSON object with fixed snake_case keys, so your parser or database gets the same fields for every file. Prices and the total are kept exactly as printed, and anything the receipt does not show comes back as null.
What you get
Stable snake_case keys
Field names such as shop_name, receipt_date, line_items and total are chosen from the receipt's own sections, so the same kind of receipt produces the same keys every time.
Prices kept as printed
Each price and the total are copied as they appear on the receipt, including the decimal format. Nothing is rounded or recalculated, so you decide how to convert them in your code.
Null instead of guessing
If the receipt has no payment method, tax line or receipt number, that key is still present with a null value. Your code never has to check for missing keys.
How it works
- Step 1
Paste the receipt text or drop a photo or PDF into the box. The preview shows the start of the JSON so you can check the field names and nesting.
- Step 2
Read the preview and confirm that shop, date, line items and total are under the keys you expect. Note any line the tool flags as ambiguous.
- Step 3
A free account gives you the whole JSON with a .json download, works on long and scanned files, converts batches, and lets you set your own field names or a schema your tool expects.
Who uses it
Backend developers
Build an expense or accounting service that accepts receipt uploads. Use the JSON output as the request body for your own endpoint, with the same keys for every upload.
Data engineers
Load receipt data into a warehouse or document store. Stable field names mean one table schema can hold receipts from many shops without per-shop parsing rules.
Frontend developers building prototypes
Create a working mock of a receipt-scanning feature. Paste a real receipt, copy the JSON, and wire the fields into your UI before you build the parsing pipeline.
Questions
Will the field names stay the same between receipts?
The tool uses one fixed structure for receipts: shop, date, line items, tax, total and payment, with snake_case keys. Receipts from different shops are mapped into the same keys. On a free account you can also set your own field names or give a schema so the output matches what your program expects.
How are prices and totals returned?
They are copied as printed, for example "3.58" or "9.63", without rounding or recalculating. If you need numbers, convert them in your code. A receipt that prints a currency symbol or thousands separator keeps that exact text in the value.
What does the JSON contain when a value is missing?
Every key the structure defines is included. If the receipt does not show a value, such as a card ending, a receipt number or a tax line, the key is present with null. Your parser can rely on the key existing.
Can I trust the output without checking it?
Results can contain mistakes, especially with faded print, scanned images or unusual layouts. Check the values against the original receipt before you store them or use them for accounting. The tool names any line it found unclear.
Related tools
More tools for developers: see them all.
See it on real examples
Three actual runs of this tool. Open one to see the input and the whole result.