Extract attachments

Save the files that someone tucked inside a PDF, with their original names.

or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To extract attachments from a PDF, choose the file and press Pull out. The tool reads the PDF's embedded files list, decompresses each attachment and saves it with its original file name, as a ZIP when there are several. It all runs in your browser, so the PDF is never uploaded. Files attached to individual page comments are not included.

How to extract embedded files from a PDF

  1. STEP 1

    Choose your PDF

    Pick one PDF that you believe contains attached files, such as an e-invoice or a report pack.

  2. STEP 2

    Pull out the attachments

    Press "Pull out the attachments". The report shows how many were found and their total size.

  3. STEP 3

    Save the files

    Download each file with its own name, or all of them as a ZIP when there is more than one.

What PDF attachments are

A PDF can carry other files inside it, the way an email carries attachments. Spreadsheets behind a report, source data for a chart, the original Word file, or the machine-readable XML in a ZUGFeRD or Factur-X e-invoice are common examples. A reader shows them in an attachments or paperclip pane, if it shows them at all.

There are two places attachments can live. Document-level attachments sit in a list attached to the whole file. Page-level ones are attached to a comment on a particular page. Many browsers' built-in PDF viewers do not expose either kind, which is why people reach for an extractor.

What survives, and what does not

The engine opens the file with pdf-lib, finds the EmbeddedFiles list in the document catalogue and reads each entry's file stream. Attachments are normally stored deflated, so each one is decompressed back to the original bytes and named with the file name recorded in the PDF. If decompression fails, the raw bytes are kept rather than losing the file.

What you keep

Each attachment's original contents, decompressed back to the real file

The file names recorded in the PDF

Any file type: spreadsheets, XML, images, other PDFs

What you lose

Attachments added to page comments (the paperclip icon on a page) are not extracted

Original modification dates and descriptions of the attachments are not kept

Very large attachment lists stored in nested sections of the PDF may not all be found

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Extract attachments at a glance

InputPDF
OutputThe embedded files, as a ZIP if several
FindsDocument-level attachments
Runs onYour device, in the browser
Enginepdf-lib
Works offlineAfter the first use

If something goes wrong

It says this PDF has no embedded attachments

The file has no document-level attachments. If you see a paperclip on a page, that attachment belongs to a comment, which this tool does not read; open it from the comment in a desktop reader.

The extracted file will not open

Check the file name extension, which comes from the PDF. If it is missing or wrong, rename the file with the right extension, such as .xml or .xlsx, and try again.

Extract attachments questions

How do I see attachments in a PDF?

Desktop readers show them in an attachments or paperclip panel. Many browser viewers do not, so the quickest check is to run the PDF through this tool: it lists and saves every document-level attachment it finds.

How do I extract the XML from a ZUGFeRD or Factur-X invoice?

Choose the invoice PDF and press Pull out. The embedded XML is saved under the name recorded in the PDF, ready for your accounting software or a validator.

Is my PDF uploaded to extract attachments?

No. The PDF is opened by pdf-lib in your browser, and the attachments are written straight back to your device. Invoices and financial packs stay private.

Are the extracted files the same as the originals?

Yes. Attachments are stored compressed inside the PDF and are decompressed back to their exact original bytes, with the original file names.

Can it extract attachments from page comments?

Not yet. Only files attached to the document as a whole are read. A file pinned to a comment on a page needs to be saved from a desktop PDF reader.

Does this work on a Mac or iPhone?

Yes. It runs in Safari on Mac and iPhone and in any modern browser on Windows and Android. The files are saved wherever your browser keeps downloads.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/extract-pdf-attachments
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy