How to Extract Invoice Data from Email Attachments
Learn how to extract invoice data from email attachments: save PDFs or images, confirm fields, check invoice amounts, and download Excel or CSV.

Quick Answer: Save the invoice attached to your email, upload it to an invoice parser, and confirm the information you want. Check the extracted values against the invoice before downloading Excel or CSV. Once one invoice works, you can reuse its fields for similar files and test forwarding for repeated deliveries.
An invoice email usually has two parts: a short message and the file you need to process. Start with that file. You don't need to set up a whole mailbox connection to see whether extraction works for your invoices.
This guide uses a fictional invoice for Harbor Office Supplies. It is a teaching example, not a real customer bill. The supplier, invoice number and amounts give you something clear to check at each step.
What you'll need
Have one invoice email, its PDF or image attachment, and an UpParser account ready. Choose a readable invoice with a visible invoice number and total. A simple first example makes it easier to understand the result before trying longer documents.
For our sample, the invoice number is INV-2026-2087. The subtotal is USD 1,150.00, shipping is USD 20.00, and the total is USD 1,170.00. Tax is zero. These numbers are fictional and aren't a promise about extraction accuracy.
If you don't have an attachment, use the Email Parser for a saved message instead. Uploading an invoice file and reading an email body are different starting points.
Which kind of invoice email do you have?
Not every invoice email looks the same. Check which one you have before you start. It decides what to do next.
| What the email has | What to do |
|---|---|
| A PDF or image attachment | Save the file and follow the steps below |
| Two or more attachments | Open each one and keep every actual invoice; leave out logos and unrelated files |
| The invoice only in the email text, no attachment | See "If the invoice is in the email body" below |
| A link to download the invoice | Get the file from the supplier's portal first, then upload it |
| A password-protected PDF | Open it with the password, save an unlocked copy if you are allowed to, then upload |
| A ZIP file | Unzip it, then keep only the invoice files |

Step 1: Save the invoice attachment
Open the message and download the PDF or image containing the invoice. Keep its original filename if it helps you find the source later. If the email has several attachments, open them and identify the invoice before continuing.
A company logo, a terms sheet and a remittance notice aren't extra invoices. Sending them through the same extraction process can create records you didn't intend to keep. For your first attempt, use only the actual invoice.
An email that contains a download link is another case. Get the invoice through the supplier's normal portal first. Don't assume a parser will open a link inside the message and retrieve a private document for you.
Check the sender before you download
Fake invoices often arrive by email. Before you open an attachment, look at who sent it. Be careful if the sender is new, the address looks slightly wrong, or the email asks you to pay quickly or to a new bank account. When in doubt, contact the supplier using a phone number or website you already know.
Have many invoices? Find and save them faster
If you have a month of invoices to collect, use search to narrow the list before opening and saving the attachments.
In Gmail, type this into the search box and change the dates:
has:attachment filename:pdf subject:invoice after:2026/11/01 before:2026/12/01
You can also add from: and the supplier's address to look at one supplier at a time. These filters find matching messages; they do not download attachments for you. See Google's Gmail search guide for supported operators.
In Outlook, try hasattachment:yes invoice, or use the attachment filter in your version of Outlook. See Microsoft's search instructions. You can also use a rule to move matching messages into a folder. Menus and supported search options differ between versions.
Email signatures often contain small logo images, and they can show up as attachments. Look for the file that is the real invoice.
Name your files the same way each time
A clear name makes it easier to find an invoice later. A simple pattern is:
Supplier_InvoiceNumber_Date.pdf
For example, HarborOffice_INV-2026-2087_2026-11-03.pdf.
Keep a simple log
A log shows what you have done and helps stop duplicates. Here is a fictional example row. Update its status after you actually review the result:
| Email date | Sender | File name | Invoice number | Status |
|---|---|---|---|---|
| 2026-11-03 | Harbor Office Supplies | HarborOffice_INV-2026-2087_2026-11-03.pdf | INV-2026-2087 | Ready for review |
Step 2: Open the invoice tool
Go to the UpParser Invoice Parser. The public page has a Choose a file button. Select the saved invoice and follow the sign-in request if one appears.

Keep the source invoice nearby. You'll need it again when checking the supplier, dates and amounts. Opening it in a second window can make this comparison easier.
Step 3: Confirm the fields after uploading
Upload first, then review the suggested fields. A field is simply a piece of information you want in the result, such as the invoice number or total. Think of these fields as the column headings in your spreadsheet.
For a first pass, ask for supplier name, invoice number, invoice date, currency and invoice total. Add due date, subtotal, tax and shipping when you need them. Leave out fields that don't serve your next task.
Our sample also has purchase order reference PO-2026-1042. Keep it separate from invoice number INV-2026-2087. Both appear on the page, but they identify different documents.
If you want to change the instructions, a short sentence is enough: “Extract the supplier, invoice number, invoice date, currency, subtotal, tax, shipping and total. Leave missing values blank.” You don't need a long technical prompt.
Step 4: Extract the invoice data
Start extraction after confirming the fields. Wait for the result before clicking again or sending another copy of the same file. Repeating the request can make it harder to tell which result you reviewed.
Read the invoice number first. A result can look tidy while using the purchase order number in the invoice column. Check the source labels, not just whether the value looks familiar.
Then compare the supplier and invoice date. Don't use the email's received date as the invoice date unless that's the information you intended to collect. A late email can contain an invoice issued several days earlier.
The screenshot below shows UpParser's public demonstration with a different fictional invoice. It illustrates the source-and-fields layout; it is not an extraction result for the Harbor Office Supplies sample.

Step 5: Check the amounts against the source
For the fictional invoice, the expected figures are:
| Field | Expected value in this sample |
|---|---|
| Invoice number | INV-2026-2087 |
| Purchase order reference | PO-2026-1042 |
| Subtotal | 1,150.00 |
| Tax | 0.00 |
| Shipping | 20.00 |
| Total | 1,170.00 |
| Currency | USD |
These are the values printed on the sample, not measured output from a completed extraction. Use them as a checking sheet when you run it yourself.
The subtotal plus tax and shipping should agree with the total here. Your invoices may also contain discounts, credits or other charges. Follow the amounts actually shown, including any stated rounding, rather than forcing every invoice into the same sum.
If a value is missing from the source, don't ask the tool to guess it. A blank due date is easier to investigate than a plausible date that nobody supplied.
Step 6: Download and open the spreadsheet
Download Excel or CSV once you've checked the result. Open the file and look at the headers and first record. Make sure invoice numbers remain whole and the total stays in the correct column.
If you need each product on a separate row, include line items when defining the fields. For our sample, A5 notebooks and black pen packs are separate products. The invoice total belongs to the invoice as a whole; don't add it once for every product row.
Use the invoice line-item guide if your next task depends on quantities, unit prices or product descriptions. A summary spreadsheet may be enough when you only need a list of bills.
What to do with the spreadsheet next
- Check for duplicates. Look for the same supplier and invoice number twice.
- Match to a purchase order, if you use them. The PO reference on the invoice should match an order you placed.
- Check the math. Include the charges and discounts actually shown. Avoid subtracting a discount twice when it is already included in the subtotal, and allow for the invoice's rounding rules.
- Update your log so you know the invoice has been dealt with.
If the invoice is in the email body (no attachment)
Some suppliers, especially software and online services, put the invoice or receipt in the email itself. There is nothing to download. Here is a simple way to handle it:
- Open the email and check that it really contains the invoice details, such as the supplier, date and amount.
- Use the Email Parser with the saved message, as mentioned at the start. If you want to work with the invoice tool instead, print the email to PDF and upload that file.
- Choose the same fields: supplier, invoice number, date, currency and total.
- Check the result against the email.
Be careful with forwarded emails and long threads. Make sure the invoice you extract is the one you meant, not a quote from an older message.
Step 7: Reuse the setup for the next invoice
Once the fields make sense, save the confirmed setup as a workflow for similar invoices. Give it a name that tells you what it does, such as “Supplier invoice attachments.”
Try another invoice with a different number and amount. Then try a different supplier. Check the result each time. Success on one clean document doesn't show how a workflow handles every layout or scan.
For repeated email deliveries, UpParser documents forwarding to a saved workflow's address with attachment processing enabled. Test one forwarded message before arranging automatic forwarding. Direct mailbox monitoring isn't part of that setup.
Three Ways to Move Invoices from Email into Extraction
| Way | How it works | Good for |
|---|---|---|
| Save and upload | You download the attachment and upload it yourself | A few invoices, and your first test |
| Rule and forward | An email rule sends invoice emails to a saved workflow's address | Repeated deliveries from the same suppliers |
| Mailbox connection | Some tools connect directly to your inbox and scan it | Large volumes. Check what each tool supports and where your data goes |
This guide starts with save-and-upload, then explains how to test forwarding. The mailbox-connection option describes other tools; it is not a direct UpParser inbox connection.
Test forwarding with one email
- Pick one invoice email with a single attachment.
- Forward it to your workflow's address.
- Check which attachments were processed. Make sure each invoice is included and that logos or signature images have not become invoice records. Adjust your workflow settings if needed.
- Compare the result with the source.
- Only then set up a rule for more emails, and begin with one supplier.
When to extract invoice data from PDF through an API
Use the browser process first if you're checking a few attachments. An API becomes useful when your own software needs to submit documents and receive structured results without repeating the browser steps.
The extraction still needs the right fields and a review process. An API doesn't decide whether a bill is valid, approved or ready to pay. Developers can continue with the PDF invoice extraction API guide after agreeing on the data the business actually needs.
Common problems
The email has two invoices. Treat each invoice as a separate record. Check that you haven't kept only the first attachment or combined both totals into one bill.
The invoice is a scan. Make sure the text is readable at normal zoom. Ask for a clearer copy if the image cuts off an amount or hides a digit.
The supplier sent it twice. Compare supplier and invoice number before adding another record. A new email doesn't necessarily mean a new invoice.
The payment details changed. Extraction copies information; it doesn't verify a bank account change. Follow your normal supplier-checking process before using those details.
There is no attachment. The invoice may be in the email text, or behind a link. See the sections above.
The attachment is password-protected or zipped. Open or unzip it first, and upload only the invoice.
A small image was read instead of the invoice. It was probably a logo or signature picture. Pick the correct file and try again.
One PDF contains several invoices. Check that each invoice has its own record, with its own number and total.
FAQ
Can I extract invoice data from an email without an attachment?
Yes, when the invoice details are in the message itself. Start with a saved email or text file and choose fields from the body. Don't expect a missing attachment to appear in the result.
Should I download Excel or CSV?
Choose Excel for a file you'll review by hand. Choose CSV when another system asks for a plain table. Check that system's required column names before importing.
Can I skip checking after the first invoice?
Keep checking important fields and unusual cases. Different suppliers, scans and document changes can produce different results even when you reuse the same setup.
How do I find lots of invoice attachments?
Search your mailbox for emails with attachments and the word invoice, then save the files into one folder. Search narrows the messages; bulk attachment download depends on your mail app. In Gmail, a search such as has:attachment filename:pdf subject:invoice helps. In Outlook, use hasattachment:yes or a rule that moves invoice emails into a folder.
Does extraction tell me if an invoice is real?
No. It copies the information. Check new suppliers, unusual amounts and changed bank details yourself, using contact details you already trust.
What if the invoice is a link, not a file?
Download it from the supplier's portal first, then upload the file.
What if the invoice is in the email text?
Use the Email Parser with the saved message, or print the email to PDF and upload that. Check the result against the email.
How do I avoid duplicates?
Keep a log of supplier, invoice number and date. Check for the same supplier and invoice number before you add a new record.
Can I forward invoice emails automatically?
UpParser documents forwarding to a saved workflow's address with attachment processing enabled. Test one forwarded email first. Direct mailbox monitoring isn't part of that setup.
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.