← All articles
Receipt OCRReceipt ScanningData Extraction

Receipt OCR: How to Scan Receipts and Turn Them into Useful Data

Scan a receipt, define the fields, review the result and export useful data. A simple walkthrough with a clearly labelled fictional receipt.

By Dylan Dan
Receipt OCR: How to Scan Receipts and Turn Them into Useful Data — illustrated receipt workflow cover

Receipt OCR reads text from a receipt photo or scan. To get a useful result, upload a clear image, choose the fields you need, run extraction, and compare the result with the original. Then download the checked data as a spreadsheet or CSV. Keep the original receipt with the exported record.

What receipt OCR actually does

A phone photo is a picture. A spreadsheet needs separate values in separate columns. OCR, short for optical character recognition, helps read the words and numbers in that picture. Data extraction then puts those values into fields such as merchant, date, tax and total.

Reading a number and understanding it are different tasks. A restaurant receipt may contain a subtotal, suggested tips, a card authorisation and a final total. A useful receipt scanner must select the right value for the field you asked for. You still need to check that choice.

StageWhat happensWhat you check
CaptureYou photograph or scan the paperThe whole receipt is visible
ReadSoftware reads text from the imageLetters and decimal points are clear
ExtractValues are assigned to named fieldsTotal is not confused with subtotal
ReviewYou compare the result with the sourceImportant values match
ExportChecked values become a reusable fileThe downloaded columns make sense

What you need before you start

Use a complete receipt image or a readable PDF. Keep the merchant name, date, item section and payment section in the same document. If your scan cuts off the bottom, the tool may miss the payment total even when it reads every visible line correctly.

You also need a short field list. Start with merchant, receipt date, receipt number, currency, subtotal, tax, total and payment method. Add line items only when you need the purchases themselves. For a basic expense register, a receipt-level row is often easier to check.

This walkthrough uses a fictional Harbor Office Supply receipt. It contains two notebooks at $5 each and one pen set at $8. The subtotal is $18, tax is $1.44, and the total is $19.44. The sample is labelled as a demonstration and is not a valid purchase record.

Fictional Harbor Office Supply receipt with a subtotal of 18.00 USD, tax of 1.44 USD and total of 19.44 USD.

Fictional demonstration receipt. Not a purchase or tax record.

Step 1: Make the receipt readable

Put the paper on a plain surface and keep the camera directly above it. Use even light. Check for glare, a shadow across the total, or a fold covering a digit. Open the photo and zoom in before uploading it.

A scanner can help with long or curled receipts, but a clear phone photo can also work. The useful test is whether you can read the original yourself. Enlarging an unreadable image does not restore missing print.

Crop away the table around the paper while leaving every receipt edge inside the image. Avoid heavy filters that erase faint decimal points. If a receipt is already fading, make a clear digital copy while the text is still visible.

Step 2: Upload the receipt to UpParser

Sign in to UpParser and upload your sample document. Use the original file rather than a screenshot of an image displayed inside another app. Extra borders and reduced resolution make the source harder to review.

Check the document preview after upload. Confirm that it is the right receipt and that no page is missing. If you are testing a new workflow, start with one receipt. A single sample makes it easier to spot a wrong field definition before using it again.

UpParser upload screen with the Upload a sample file control.

Upload a sample file starts the extraction. The walkthrough uses a clearly labelled fictional receipt.

Step 3: Choose the receipt fields

Confirm or edit the suggested fields before extraction. In our demonstration, the first suggested setup included item fields but omitted the merchant name. We changed the prompt to request one summary record, selected Update fields, and checked the new list before selecting Extract content. Describe exactly what each amount means. “Total” alone can be unclear on a receipt with several totals. “Final transaction total, excluding cash tendered and suggested tips” is more useful when those distinctions appear in the source.

Use an instruction such as this:

Extract the merchant name, receipt date, receipt number, currency, subtotal, tax, final transaction total, amount paid and payment method. Keep the receipt number as text. Leave a field empty if it is not stated. Do not invent a missing tax amount or currency.

For the sample, the receipt number is 000184. Those leading zeros belong to the identifier. It should not become 184 simply because a spreadsheet treats it as a number.

UpParser extraction prompt requesting one receipt summary and preserving receipt-number leading zeros.

The applied prompt requests a receipt summary and keeps missing values blank.

Step 4: Run extraction and inspect the result

Start extraction after the fields describe what you want. When the result is ready, compare it with the document preview. Begin with the merchant, date, currency and final amount. Then inspect the other fields.

For our sample, the expected amounts are:

FieldExpected valueReason
Subtotal18.00Two notebooks plus one pen set
Tax1.44The separately printed tax
Total19.44Subtotal plus tax
Amount paid19.44The card payment shown

This calculation works for this sample. Other receipts may include discounts, inclusive tax, service charges or deposits. Read their labels before applying a formula. If a field is wrong, correct the field definition or source problem and check the new result. Do not assume another run will fix an unclear instruction.

Fictional receipt on the left and nine extracted fields on the right, including receipt number 000184 and total 19.44 USD.

View result shows the original beside the extracted data. Compare each value with its source label.

Step 5: Download the checked data

Choose the export format that matches your next task. Excel is useful when you want to filter rows, format amounts or add review notes. CSV is useful when another system expects a plain table. JSON is useful when a program needs named fields or nested items.

Open the downloaded file before treating the job as complete. Check the receipt number, date and amounts again. Keep the source filename with the extracted record so you can find the original later. Saving the data does not replace retaining the source evidence.

UpParser Download dialog with Excel selected.

Choose Excel under Download format, then select Download.

A simple OCR technology comparison

Choose a method by the result you need rather than the word “OCR” on its own.

MethodUseful forMain review task
Phone text recognitionCopying a few visible wordsManually place values in the right columns
Plain OCR text outputMaking scanned text searchableSeparate totals, dates and item lines
Field-based receipt extractionCreating a receipt registerCheck that each field has the right meaning
Reusable extraction workflowProcessing receipts with repeated requirementsTest new layouts and handle exceptions

UpParser supports extracting named fields from uploaded documents. That does not mean every faint mark will be readable or every receipt will produce a correct result without review. Compare methods using your own representative samples, including difficult receipts, before relying on one for routine work.

Common receipt scanning problems

The subtotal appears as the total. The instruction may be too broad. Identify the final transaction total and keep subtotal in a separate field.

A suggested tip is treated as a payment. Check whether the amount is a suggestion, a handwritten addition or the final settled amount. Preserve that distinction in your fields.

The date looks valid but is reversed. A date such as 04/05 is ambiguous without context. Keep the original text or flag it for review instead of guessing the month.

The merchant name is an abbreviation. Record what is visible, then add any verified business name in a separate normalised field. Do not silently replace source text.

A missing tax line becomes zero. Missing and zero are different. Use an empty field or a review note unless the receipt explicitly establishes a zero value.

How to check whether your receipt scanner is good enough

Test more than the neatest receipt in your folder. Include a long receipt, a faded scan, a receipt with discounts and a different merchant layout. Record which fields need correction. A tool that reads the final amount correctly may still misread dates or item quantities.

Keep a small review log with the filename, field, extracted value and corrected value. This helps you see whether the source images need improvement or the field instructions need work. Do not turn a few successful examples into an unsupported accuracy percentage.

FAQ

Does receipt OCR prove that an expense is valid?

No. It reads and organises document information. Business purpose, approval and tax treatment require separate checks.

Can I scan a receipt with my phone?

Yes, if the resulting image is clear and complete. Review it at a readable size before extraction.

Will OCR always read handwritten details?

No. Handwriting quality and image clarity affect the result. Check handwritten tips, dates and signatures against the original.

Which fields should I start with?

Start with the merchant, date, reference, currency and total. Add other fields when they support a defined task. The receipt information guide explains what those fields mean.

Should I keep the paper after scanning?

Follow the recordkeeping rules that apply to your purpose. A readable scan is useful, but making one does not automatically authorise destroying the original. For the different document categories, see types of receipts.

About the Author

Dylan Dan is the founder of UpParser and the team behind it. He led the team in developing all of the website's data extraction workflows and is a data extraction and processing expert with years of experience. He writes UpParser guides on extracting, organizing, and checking data from invoices, bank statements, receipts, and other documents. His published guides cover invoice processing, spreadsheet preparation, and invoice OCR error checks.

✉ Contact our human support team via Gmail, 24/7. We’ll help with UpParser and data extraction questions as quickly as possible.