Extract Attachments From PDF
Find and download every file embedded inside a PDF, including e-invoice XML payloads and file-attachment annotations, straight from your browser.
What is the Extract Attachments From PDF?
A PDF can carry other files inside it. Accountants meet this constantly with ZUGFeRD and Factur-X e-invoices, where a machine-readable XML sits inside a human-readable invoice.
- Walks the full embedded-files name tree, including nested branches
- Also finds file-attachment annotations pinned to individual pages
- Inflates compressed payloads with the browser's own decompression
- Shows the declared MIME type, with a sensible fallback from the extension
- Download files individually or all at once
- Runs offline in your browser — nothing is uploaded
How to use the Extract Attachments From PDF
- 1
Drop the PDF onto the upload area — the scan starts immediately.
- 2
Read the summary showing how many embedded files were found and their total size.
- 3
Check each entry's name, size, type and where it came from.
- 4
Download the files one at a time, or click Download all.
About the Extract Attachments From PDF
A PDF can carry other files inside it. Accountants meet this constantly with ZUGFeRD and Factur-X e-invoices, where a machine-readable XML sits inside a human-readable invoice. Engineers meet it as CAD files stapled to a drawing, and reviewers meet it as spreadsheets pinned to a page with a paperclip icon.
This tool walks the document's embedded-files name tree and every page's file-attachment annotations, decompresses each payload and offers it as a normal download, with its size, its declared MIME type and where in the document it was found.
It all happens in your browser using pdf-lib and the browser's own decompression API — the PDF is never uploaded, which matters when the attachment is an invoice or a contract. Nothing is written back to the original file.
Frequently asked questions
How do I extract an XML invoice from a ZUGFeRD or Factur-X PDF?
Drop the invoice here. The XML payload is stored as an embedded file, so it appears in the list — usually named factur-x.xml, zugferd-invoice.xml or xrechnung.xml — and you can download it with one click.
What is the difference between an attachment and an embedded image?
An attachment is a whole separate file carried inside the PDF and extracted unchanged. An embedded image is part of the page's artwork. To pull pictures out of the pages, use the PDF Image Extractor instead.
The tool says my PDF has no attachments. Is that right?
Almost certainly. Attachments only exist if someone deliberately added one, or if the file is a PDF/A-3 style e-invoice. Most ordinary PDFs carry none at all.
Are attachments safe to open?
Treat them exactly like an email attachment. A PDF can carry any file type, including executables and macro-enabled documents, so only open attachments from a source you trust.
Does extracting change the original PDF?
No. The tool only reads. Your original file is untouched, and nothing is uploaded or stored.
Related tools
PDF Image Extractor
Pull the original embedded pictures out of a PDF at full resolution. JPEG streams are saved untouched and compressed bitmaps are rebuilt as PNG files.
PDF Metadata Viewer
View, read and check PDF metadata online — title, author, subject, keywords, creator, producer and dates — extracted privately in your browser.
PDF Form Data Extractor
Pull the answers out of a filled PDF form. Lists every field name, type and value, and exports the lot as JSON, CSV or a plain name = value list.
PDF Comment and Annotation Extractor
Pull sticky notes, highlights, underlines, strikeouts and text boxes out of a reviewed PDF with author, date and page, then export as CSV or Markdown.
PDF Link Extractor
List every clickable link in a PDF with its page number and target. Separates external URLs from internal jumps and exports the whole table as CSV.