XSN Viewer

How to extract attachments from InfoPath forms

Files attached to InfoPath forms are stored inside the XML. Save them as normal files – free, in your browser.

Free, in your browser – nothing is uploaded

When someone attaches a file to an InfoPath form, InfoPath doesn't store it separately: it puts the whole file inside the form's XML, encoded as text (base64) together with its name. That is why the attachments seem to disappear once InfoPath is gone.

Save the attachments

  1. Open the form with XSN Viewer (Choose files). The template is not needed for attachments.
  2. Open the Attachments tab: every attached file is listed with its name and size.
  3. Click Save next to a file, or Save all (ZIP) to get them all at once.

Attached files keep their original name and content. In the form itself you can also click an attachment to save it.

Many forms?

XSN Viewer Pro (Convert folder) extracts the attachments of a whole folder of forms in one go, in a folder for each form.

Frequently asked questions

What does an InfoPath attachment look like in the XML?

A long block of text that starts with x0lGQR: a small header with the file name, followed by the file, all encoded in base64.

Are pictures extracted too?

Pictures in picture controls are shown in the form. They are stored the same way, but without a file name.

XSN ViewerOpen InfoPath forms online for free. A whole library? XSN Viewer Pro converts it in one go, right here.

Other guides