How to open an XPS or OXPS file
On Windows, open an XPS or OXPS file with Microsoft XPS Viewer, which may need to be installed as an optional Windows feature. If you need to share the document with people using other devices or apps, convert it to PDF rather than merely changing the filename extension. XPS and OXPS belong to the same fixed-layout family, but they are less widely supported than the other document formats you are likely to receive.
XPS and OXPS preserve pages rather than editable document structure
XPS stands for XML Paper Specification. Microsoft developed it as a fixed-layout document format: the file records where text, images and other page elements appear so that the result retains its layout when viewed or printed. OXPS stands for Open XML Paper Specification and is the standardized OpenXPS version of the same general technology.
The two extensions indicate related but technically distinct versions:
| Extension | Format | What it means in practice |
|---|---|---|
| .xps | Microsoft XPS | The earlier Microsoft version, commonly associated with older Windows applications and the Microsoft XPS Document Writer |
| .oxps | OpenXPS | The standardized OpenXPS version defined by Ecma International and used by later Windows printing systems |
| Portable Document Format | A different fixed-layout format with much broader support across browsers, operating systems and document apps |
Both XPS variants are intended to preserve a finished page. They are closer to PDF than to an editable Word document, but an XPS file is not a PDF and cannot be made into one by renaming .xps or .oxps to .pdf.
A simplified file anatomy looks like this:
- Document sequence: establishes the order of one or more documents in the package.
- Fixed documents: organize the individual pages.
- Fixed pages: describe the position and appearance of text, paths and images on each page.
- Resources: supply fonts, images, color information and other assets used by those pages.
- Print settings: may describe printing preferences or device-related instructions.
- Relationships and content types: tell compatible software how the package parts connect and what each part represents.
This structure explains two common experiences. First, opening an XPS file in a text editor produces unreadable package data rather than a useful document. Second, importing it into an ordinary word processor may fail or produce content that is difficult to edit. The format records a composed page, not the original paragraphs, styles, spreadsheet cells or presentation objects from which that page may have been printed.
For example, someone can create an XPS file by printing a spreadsheet through an XPS document writer. The resulting file preserves the printed sheets, but it does not remain a working spreadsheet with formulas and editable cells. Converting that XPS file to PDF preserves the page presentation; it does not restore the original workbook.
OXPS was introduced to standardize the format, not to turn it into a different kind of document. An .oxps file still behaves as a fixed-layout package and normally requires software that understands OpenXPS. Some older applications recognize .xps but not .oxps, while newer Windows components can support both.
Check the extension, device and file condition before choosing a viewer
Start by confirming whether the filename ends in .xps or .oxps. Windows may hide known extensions, so a file can appear to have only a descriptive name even though its full name includes one of these suffixes. In File Explorer, open View, choose Show, and enable File name extensions if necessary.
The extension helps you choose the next check, but it does not prove that the file is valid. A damaged download, an incomplete email attachment or an unrelated file given the wrong extension can still fail in a compatible viewer.
Use these checks to narrow down the problem:
- The file ends in .xps or .oxps and you use Windows. Look for Microsoft XPS Viewer. If it is not installed, add it through Windows Optional Features.
- XPS Viewer is installed, but double-clicking opens another app. The file association may be wrong. Use Open with and select XPS Viewer, or change the default app for the extension in Windows settings.
- The file opens on one Windows computer but not another. The second computer may not have XPS Viewer installed, or an older third-party app may support XPS but not OpenXPS.
- The document came from an older archive or business system. Keep an untouched copy before converting it. Archived workflows sometimes depend on the original filename, extension or package.
- The attachment is unexpectedly tiny or has a size of zero bytes. It may not have downloaded correctly. Obtain a fresh copy before troubleshooting software.
- The file has a double extension. A name such as statement.xps.zip or invoice.oxps.html is not the same as a normal XPS document. Confirm what was actually sent before opening it.
- The viewer reports that the document is invalid or corrupted. Try another known-good XPS file in the same viewer. If the test file opens, the problem is probably the document rather than the viewer.
- You are using a Mac, phone, tablet or managed work device. You may not have a compatible local viewer or permission to install one. Conversion to PDF is usually the more practical route.
Do not use Notepad or another plain-text editor to judge whether the document contains useful text. XPS and OXPS are packaged formats, so a text editor may display fragments of XML, compressed content or meaningless symbols. That does not automatically mean the document is corrupted.
Likewise, do not assume that Microsoft Word can repair or convert the file simply because the document contains text. Word is designed to work with editable document structures. An XPS package describes fixed pages, and forcing it through an incompatible application can omit fonts, graphics, clipping paths or page positioning.
If you received the file by email, save it to a normal local folder before opening it. Trying to launch an attachment directly from an email preview can involve temporary folders, restricted permissions or security controls that obscure the real problem. A short, simple filename such as report.xps also helps rule out path and naming issues.
Open the file in Windows or convert its pages to PDF
The right method depends on whether you only need to inspect the document, need to distribute it, or need to recover editable content. Opening preserves the existing XPS package. Converting creates a different file for wider compatibility. Extracting editable text or rebuilding the source document is a separate task and may not reproduce the original structure.
Install and use Microsoft XPS Viewer on Windows
Microsoft supplies XPS Viewer as a Windows Feature on Demand. It can read XPS documents and provides functions for viewing, copying, printing, signing and managing permissions supported by the format. The feature may be available even when it is not installed by default.
To add it in Windows 11:
- Open Settings.
- Select System, then Optional features. The location or wording may vary slightly between Windows builds.
- Choose View features or the option to add an optional feature.
- Search for XPS Viewer.
- Select it and complete the installation.
- Open the Start menu, search for XPS Viewer, and launch the app.
- Open the .xps or .oxps file from the viewer.
If the viewer is already installed but the file opens in the wrong program, right-click the file and select Open with. Choose XPS Viewer and, if appropriate, make it the default for that extension. Treat .xps and .oxps as separate associations because Windows can assign a different default app to each one.
Once the file opens, inspect more than the first page. Check that:
- every expected page is present;
- text is visible rather than replaced by empty boxes;
- images and diagrams appear in the correct positions;
- unusual page sizes or orientations have been retained;
- headers, footers and margins are not clipped;
- searchable text can be selected where expected.
An incorrect display can result from a damaged resource, an unsupported feature or a conversion problem in the application that originally created the file. If the document is important, compare it with a screenshot, printed copy or source-file preview where one is available.
Convert XPS or OXPS to PDF for wider compatibility
Convert the file when recipients cannot install XPS Viewer, when the document must open on several operating systems, or when a website accepts PDF but not XPS. PDF is normally the more practical delivery format because browsers and document apps support it much more widely.
There are two common conversion paths:
- Use a converter that accepts XPS or OXPS input. Upload or select the original file, choose PDF as the output, complete the conversion, and download the result. If a service rejects the extension, do not rename it to .pdf; use a different converter or the Windows printing method.
- Open the file in XPS Viewer and print it to a PDF printer. Choose Print, select a PDF output device such as Microsoft Print to PDF, confirm the page range and orientation, and save the new PDF.
Printing to PDF reconstructs the pages through the print path. It is useful when the document opens correctly but a direct converter does not accept its XPS variant. However, printing can flatten or alter features that are not purely visual, including document metadata, digital signatures, permissions, hyperlinks, bookmarks and structural information. Keep the original XPS or OXPS file if any of those features may matter.
After conversion, open the PDF and compare it with the original. Check the page count, page dimensions, orientation, fonts, line wrapping, image quality, colors and clipping. Pay particular attention to technical drawings, small labels, forms, unusual fonts and documents containing mixed portrait and landscape pages.
Converting XPS to PDF does not make the underlying source editable. The PDF will normally remain a fixed-layout representation of the pages. If you need to revise wording, formulas or design elements, ask for the original Word, Excel, PowerPoint, publishing or design file. Converting the final pages back into an editable format can require layout reconstruction, and some elements may become separate text boxes or images.
Handle an XPS or OXPS file that still will not open
If a compatible viewer and converter both reject the file, preserve the original and work through the likely causes rather than repeatedly changing its extension.
- Download or copy the file again from its original source.
- Confirm that its size is reasonable and not zero bytes.
- Test a different known-good XPS file in the same viewer.
- Try the document on another Windows computer with XPS Viewer installed.
- Ask the sender whether the file opens on the computer that created it.
- Request a new PDF export or the original editable document if the package appears damaged.
- If the document is part of a formal archive, retain the failed file and record any replacement separately.
Changing .oxps to .xps changes only the name; it does not convert OpenXPS into Microsoft XPS. Microsoft provides an XpsConverter command-line utility for developers and testing workflows, but it is distributed with the Windows Driver Kit and is not intended as a general consumer document converter. Most people should use XPS Viewer, a compatible conversion service or a new export from the original application.
Source: OpenXPS format, packaging and interoperability requirements from ECMA-388: Open XML Paper Specification, Ecma International; XPS and OpenXPS support from XPS Documents, XPS Viewer capabilities and availability from Available Features on Demand, XPS fixed-layout behavior from File format reference for Word, Excel, and PowerPoint, and conversion tool information from XpsConverter, Microsoft Learn; online document-conversion information from PDF Converter, Soda PDF. Page last checked 2 October 2026.