What is an .xsn file, and how do you open it?

Updated 12 October 2026

A file ending in .xsn is a Microsoft InfoPath form template: the layout, the field definitions and the rules of a form, packed into one file. In a SharePoint form library it is normally Forms/template.xsn. It is not the data people typed in; each filled-in form is a separate .xml file. With InfoPath retired, here is what is inside an .xsn file and how to open it with tools that come with Windows.

What is inside an .xsn file

Microsoft's InfoPath developer reference describes the .xsn format as "the compressed file format (.cab) that packages all the form files into one file". The format is documented in an open Microsoft specification, [MS-IPFF2] InfoPath Form Template Format, which describes how a form server reads the files inside it. Unpacked, a template typically contains:

  • manifest.xsf: the form definition, with information about all the other files and components;
  • an .xsd schema: the fields the form stores;
  • one .xsl file per view: the layouts people saw on screen;
  • template.xml: an empty form with its default values;
  • sometimes pictures, scripts or .dll files with the form's code.

What a template does not contain is anyone's answers. A filled-in form is an XML file whose first lines specify the associated form template, so to see a form the way it was filled in you need both files. Our guide on opening InfoPath forms without InfoPath explains how the two fit together.

How to open an .xsn file without InfoPath

On a PC without InfoPath, double-clicking an .xsn file won't open the form, and Microsoft never released a free InfoPath viewer: as an answer published on a Microsoft InfoPath blog put it in 2004, "users need a copy of InfoPath installed on their PC". Because the file is a cabinet archive, though, you can unpack it with the built-in Windows expand command. In Command Prompt:

mkdir C:\xsn
expand C:\Archive\template.xsn -F:* C:\xsn

The destination folder has to exist before you run it, which is what mkdir is for. In our tests expand unpacks the .xsn file as it is; you don't need to rename it to .cab. Open the unpacked files in Notepad or VS Code to read the field names and views. To display a filled-in form through one of the views, follow method 2 in that guide, and read its limits first.

Online .xsn viewers: think before you upload

Searching for an "xsn file viewer online" turns up sites that ask you to upload the file. Uploading means sending it to a server you know nothing about. A template on its own carries your organisation's field names, default values and pictures, and to see real data you would have to upload the filled-in forms as well, which often hold names, addresses or financial details. The expand command above runs on your own PC and sends nothing anywhere.

Quick answers

Is an .xsn file the same as an .xml file?

No. The .xsn file is the template (layout and fields); each .xml file is one filled-in form. Most archives have one template and many forms.

Can I convert an .xsn file to PDF?

The template alone holds no answers, so a PDF of it would be an empty form. What you usually want is a PDF of each filled-in form, drawn with the template's layout: see how to convert InfoPath XML forms to PDF.