How to Open XPS File in Windows 11

Published by Nyau Wai Hoe - Updated on

An XPS (XML Paper Specification) formatted file is an electronic digital document file based on XML. Very much similar to PDF, XPS represents a digital document with a paginated fixed-layout that describes how the page should look and feel. The description of an XPS document is consistent across all platforms. It does not change based on printer or OS.

If you share a XPS document file with others who use different operating systems or devices, what you see on the pages in an XPS file will be the same as what they will see on an XPS viewer.

XPS was developed by Microsoft and was once known to have the potential to replace PDF, but that doesn’t seem to be the case. XPS was still not known to many users as a electronic document file type due to its difficulty in creating, editing and even opening one.

This guide explains how to open and view XPS file in Windows 11 using Windows built-in XPS viewer without installing any third party software.

Install XPS Viewer to open XPS file in Windows 11

Though XPS viewer is one of the built-in features in Windows, it is not enabled by default. Users will have to manually install the XPS viewer by adding it via the optional features in Windows 11 settings.

To install XPS viewer in Windows 11, follow the steps below.

First, press Win + i keys to open Settings. Select Apps on the left pane, then select Apps & features on the right.

Optional features Windows 11

Next, click on the View features button next to “Add an optional feature”.

Add an optional feature View features

In the add an optional feature window, use the search bar to search for XPS Viewer. Select XPS Viewer from the search result and click Next to install it.

Install XPS Viewer Windows 11

Wait for the installation to complete. It may take awhile depending on your PC. You can see the installation progress in the same Settings > Apps > Optional features window.

XPS Viewer Installing

Once installed, restart your PC and you should then be able to open your XPS files.

How to open XPS file in Windows 11


Install XPS Viewer in Windows 11 via PowerShell or CMD

Alternatively, you can install XPS viewer by entering a command in Windows PowerShell or Command Prompt on Windows 11. Here’s how to do so.

In Windows 11, go to Start and search for Windows PowerShell. Right-click PowerShell in the search result and select Run as administrator. You need administrative privilege to run the command below.

In the elevated PowerShell, to install XPS Viewer, enter the command below.

DISM /Online /Add-Capability /CapabilityName:XPS.Viewer

Install XPS Viewer Windows 11 via PowerShell CMD

It may take a while for the installation to complete. PowerShell will show the progress as it installs the app. Once installed, enter “Y” to restart your computer.

The same command can also be used in an elevated (run as admin) Command Prompt or Windows Terminal in Windows 11.

To uninstall/remove XPS viewer from Windows 11, enter the following command instead.

DISM /Online /Remove-Capability /CapabilityName:XPS.Viewer

How to convert XPS to PDF in Windows 11

The easiest way to convert an XPS file to PDF format in Windows 11 is to directly use the Windows built-in XPS Viewer to print the XPS file to PDF. But, this method requires you to first install the XPS viewer on your computer (using one of the methods shown above).

To do so, open the XPS file you want to convert to PDF with XPS Viewer. Next, click on File > Print.

File Print XPS Viewer Windows 11

In the Print window, select Microsoft Print to PDF as the printer. Click Print and select a location where you want to save your PDF file.

Convert XPS to PDF offline Windows 11

You should then have a new PDF copy of the XPS file at the location you select.

Tip: You can create or convert any document to XPS or PDF file format in Windows 11 by printing them using “Microsoft XPS Document Writer” or “Microsoft Print to PDF” respectively. For example, when you open a webpage on Google Chrome, you can select File > Print and select “Save to PDF” or “Microsoft XPS Document Writer” as the printer to save the webpage as PDF or XPS file.

Categories: AppWindows 11

Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link