How to Extract Data from Scanned Invoice Email Attachments
Extract fields from scanned invoice email attachments. Check image quality, invoice numbers, amounts and line items before downloading reviewed Excel or CSV data.

Quick Answer: Save the scanned invoice from the email and check that its text is readable. Upload the PDF or image, confirm the invoice fields, and run extraction. Compare the result with the scan, especially invoice numbers, amounts and product rows. Download the reviewed data only after resolving unclear values.
A scanned invoice is a picture of a document, even when it arrives as a PDF. OCR helps read the text in that picture. Invoice extraction then has to work out which text belongs to the supplier, date, tax and total.
Begin with one scan. You can check whether it is readable and whether the selected fields make sense before bringing repeated email deliveries into the process.
What you'll need
Have the original message, the actual invoice attachment and a way to review the output. If the supplier can provide the original digital PDF, ask for it when the scan is difficult to read.
This tutorial uses a fictional invoice for Harbor Office Supplies, numbered INV-2026-2087. The expected total is USD 1,170.00. These source values are teaching examples, not measured OCR results or a promise about your documents.
Step 1: Save the scan from the email
Download the invoice PDF or image from the message. Keep all pages that belong to the invoice. If the supplier attached separate files for separate pages, identify them before starting.
Check that you have the bill, rather than a statement, delivery note or payment receipt. Similar-looking documents may contain different totals and reference numbers. OCR doesn't remove the need to choose the right source.
If the message only has a private download link, retrieve the invoice through the supplier's usual route. Don't assume the parser can sign in to that portal for you.
Step 2: Check readability
Open the scan at a comfortable zoom. Can you read the invoice number, date and total without guessing? Look at small decimal points and any text near the page edge.
Check for a cut-off margin, a folded corner hiding a value, a shadow over the total or a stamp covering the invoice number. A result can't be checked properly if the source itself is unclear.
For a phone photo, keep the page flat and include the whole document. If you take another photo, use even light and avoid glare. A clearer source is usually more useful than writing longer extraction instructions.
Step 3: Open the invoice tool
Open UpParser Invoice Parser. Its public page identifies PDF, image or scan as the starting document type. Select Choose a file, upload the saved scan and sign in if asked.

The screenshot shows the current public upload page. It doesn't show a new OCR test of our fictional sample. Keep your own scan open so you can compare it with the result later.
If you're starting with an ordinary text-based PDF instead, the invoice PDF to Excel guide covers that simpler file workflow.
Step 4: Confirm the invoice fields
Review the suggested fields after uploading. Start with supplier, invoice number, invoice date, currency and total. Add due date, subtotal, tax and shipping if those values are needed by the person receiving the file.
Use separate fields for invoice number and purchase order reference. On our sample, INV-2026-2087 identifies the invoice while PO-2026-1042 identifies the order. They shouldn't replace each other.
If you want to add an instruction, keep it plain: “Use the values printed on this invoice. Keep invoice number and purchase order reference separate. Leave unreadable or missing values blank.”
A blank isn't proof that OCR failed. The invoice might not contain the field at all. Look at the source before changing your instructions.
Step 5: Read the result beside the scan
Run extraction and begin with the important identifiers. Compare the invoice number character by character. Pay attention to letters and digits that look similar in a scan, such as O and 0 or I and 1.
Then check the supplier and date. A date in a payment note may differ from the invoice date. A company named in the billing address may be the customer rather than the supplier.
UpParser's public invoice demonstration illustrates reviewing selected fields beside a source document. Its invoice is a different fictional example; it isn't the output of a new scan extraction test performed for this tutorial.

Step 6: Check amounts and decimal points
Compare subtotal, tax, shipping and total with the scan. Don't accept a value only because the number looks reasonable. A faint decimal point or misplaced separator can change an amount substantially.
For our fictional sample, subtotal 1,150.00 plus shipping 20.00 equals total 1,170.00, with tax 0.00. Use these as expected source values if you test that sample yourself.
Your own invoice may contain a discount, credit or several tax lines. Follow its actual calculation and rounding. Don't make the extracted figures fit a simple formula by changing a printed value.
Step 7: Check product rows across every page
If you need line items, define the columns before extraction. Product description, quantity, unit price and line amount are a useful starting point. Keep the invoice reference with the rows.
Check the first and final product on each page. A table heading repeated on page two isn't a product. A description that continues onto another line shouldn't automatically become a second purchase.
The sample invoice has 80 notebooks at 12.50, giving 1,000.00, plus 10 pen packs at 15.00, giving 150.00. Shipping is a separate 20.00 charge. These examples help explain the checks, rather than claiming a tested output.
For longer tables, use the invoice line-item extraction guide. A correct invoice total alone doesn't show that every product row was captured.
Step 8: Resolve unclear fields
If the source is readable but the selected value is wrong, clarify what the field means and review the result again. If the scan itself is unreadable, ask for a clearer copy instead of making a guess.
Keep a note when a person corrects a value. Include what was changed and which source supported the change. This is particularly useful when someone else reviews the exported file later.
Step 9: Download the reviewed data
Download Excel or CSV once the record is checked. Open the file and compare the invoice number and amount again. Spreadsheet import settings can change how identifiers and dates appear.
If your accounting system supports supplier-bill import, follow its own sample file and required format. A general spreadsheet export isn't automatically an approved bill, a posting instruction or a native accounting template.
The common invoice OCR errors guide provides another checking list for numbers, dates and missing information.
Step 10: Add email intake after the file test
When the scan works through the file process, save the confirmed fields as a workflow. Test another scan before using the same setup for repeated deliveries.
UpParser documents attachment processing for emails forwarded to a workflow address. Enable that option for the invoice files you want to process. Test one message and account for its relevant attachments before arranging automatic forwarding.
Keep an exception route for unreadable scans. Automatic intake can move documents into the process, but somebody still needs to ask for a better copy when the information isn't visible.
Where accounts payable invoice OCR fits
Accounts payable invoice OCR handles the reading part of supplier invoice capture. It can reduce the copying a person does, but your team still needs checks around suppliers, duplicates and approvals.
When comparing accounts payable OCR software or OCR for accounts payable, test real scan conditions rather than only clean digital PDFs. Include a multi-page invoice and a difficult but readable image. Measure the time needed to review and fix the result.
FAQ
Can a scan inside a PDF be processed?
It can be a suitable OCR input when the page is readable and the file is supported. Check the result against the image, rather than assuming a PDF contains selectable text.
What if a digit is hidden by a stamp?
Request a clearer source or confirmation from the supplier. Don't fill the field with a guess simply to finish the spreadsheet.
Does extracting an invoice make it safe to pay?
No. Keep normal supplier, bank-detail and approval checks. Extraction reads a document; it doesn't prove the bill is genuine.
About the Author
Dylan Dan founded UpParser and its team and led the development of its data extraction workflows. He has years of experience in data extraction and processing. He writes practical guides for invoices, bank statements, receipts and other documents.
Related Articles
See current pricing.