XML Paper Specification

.xps · Documents

XPS (XML Paper Specification) is Microsoft's fixed-layout document format, its answer to PDF. Almost nobody creates XPS on purpose. The usual story: you clicked Print, the default printer was Microsoft XPS Document Writer, and Windows saved a .xps or .oxps file instead of printing. Some accounting programs, banks and older enterprise systems also export statements as XPS.

History

Microsoft published XPS 1.0 in October 2006 and built it into Windows Vista as the new print spool format and as a document format. In 2007 it submitted the specification to Ecma International; after changes by technical committee TC46 it became ECMA-388, Open XML Paper Specification (OpenXPS), in June 2009. Windows Vista and 7 write files with the .xps extension; Windows 8 and later write OpenXPS with the extension .oxps by default. The two are close relatives but not identical: the Windows 7 viewer cannot open .oxps.

XPS never caught on outside Windows. Since “Microsoft Print to PDF” arrived in Windows 10, there is little reason to use it, and from Windows 10 version 1803 the XPS Viewer is no longer installed by default.

How an XPS file is built

An XPS file is a ZIP archive using the Open Packaging Conventions, the same container as DOCX and XLSX. Rename it to .zip and you can look inside:

  • FixedPage files in XML describe each page with absolutely positioned glyphs, paths and images (a subset of WPF's XAML).
  • Fonts are embedded, usually as obfuscated TrueType files (.odttf), so the document renders without the fonts installed.
  • Images are stored as JPEG, PNG, TIFF or JPEG XR (HD Photo).
  • Optional parts: document structure (outline), thumbnails, digital signatures, print tickets with printer settings.

Like PDF, XPS records where things are on a page, not what they mean. There are no editable paragraphs, which is why there is no direct route from XPS to Word.

How to open XPS and OXPS files

  • Windows 10 and 11: add XPS Viewer in Settings, under Optional features. After that XPS and OXPS open with a double click. The viewer can also print the file to PDF via Microsoft Print to PDF.
  • Windows, free alternative: SumatraPDF opens .xps and .oxps directly.
  • macOS: no built-in support. Convert to PDF and open it in Preview.
  • Linux: Evince (via libgxps), Okular and MuPDF read XPS.
  • Android: MuPDF-based viewers; on iPhone the practical route is conversion to PDF.

Common problems

“I printed to XPS by mistake”

The default printer was set to Microsoft XPS Document Writer. Convert the file to PDF, or open it in XPS Viewer and print it again on a real printer. Then change the default printer in Settings, Bluetooth & devices, Printers & scanners.

XPS file won't open on Windows 11

The viewer is not installed. Install the optional feature, or use SumatraPDF.

Recipient on Mac or phone can't open it

Send a PDF instead. XPS outside Windows is a guarantee of a reply asking what the file is.

OXPS file won't open in an old program

Tools written for Windows 7 understand only the older .xps flavour. Converting to PDF bypasses the issue.

Converting XPS

Our converter reads both .xps and .oxps:

  • XPS to PDF: all pages, embedded fonts carried over, text stays selectable and searchable. This is the conversion almost everyone needs.
  • XPS to PNG (150 dpi) and SVG: first page only.
  • XPS to TXT and HTML: the text content, in page order.
  • XPS to JPG, TIFF and other image formats go through PDF; for JPG only the first page is kept, TIFF holds all pages. Also see PDF to JPG.

If you need the content in Word, convert to PDF first and then follow PDF to DOCX, keeping its limits in mind.

Facts

DeveloperMicrosoft; OpenXPS standardised by Ecma International
First releaseXPS 1.0, October 2006 (Windows Vista)
Current versionECMA-388 (OpenXPS, .oxps); .xps remains Microsoft's original variant
Typefixed-layout document, XML in a ZIP container (OPC)
CompressionZIP (Deflate); images JPEG, PNG, TIFF, JPEG XR
Typical useWindows print-to-file output, spool format, occasional statements and reports

Format descriptions at the Library of Congress: XPS and OpenXPS.

We can convert XPS into

Documents

PDF DOCX DOC ODT TXT HTMLDOCMDOTDOTXFODTOTT RTFUOTPDF/AABWAWTFOZABW

Images

JPG PNGWEBP GIF TIFFHEICAVIFJXLPSDICOAAIAPNGARTAVS BMP CINCURDCXDDSDPXFF FITSFL32 HDRHRZJP2JBIGJNGJPCMNGMTVOTBPALMPAM PBMPCD PCXPFMPGMPGXPHMPICTPPMPSBPTIFQOIRASRGFSGISIXELSUN TGAVICARVIFFVIPS WBMPXBMXPMXWDDCM

Vector images

SVG EPSEMFFXGHPGLPOV PSSIFSVGZWMFXAML

eBooks

EPUB MOBI AZW3 FB2CBZHTMLZ LIT LRF OEB PDB TCRTXTZCB7CBTDJVU

Markup languages

MDTEXRSTADOCWIKIORGDOCBOOKCONTEXTDOKUWIKIHADDOCKICMLIPYNBJATSJIRAMANMSMUSEOPMLTEITEXITEXTILETYPXWIKIZIM