.XPS

XPS File

XML Paper Specification Document
Ask a question
QUICK ANSWER

An XPS file is Microsoft's fixed-layout document format, created by the "Microsoft XPS Document Writer" virtual printer on Windows. On Windows 10 and 11 it no longer opens by default, so add the free XPS Viewer (Settings > Apps > Optional features > "XPS Viewer"). The most common goal is converting XPS to PDF, which you can do for free using XPS Viewer and "Microsoft Print to PDF".

Developer: Microsoft Category: Layout Files Open standard MIME: application/vnd.ms-xpsdocument
OPENS ON Windows macOS Linux
Related: .OXPS · .PUB · .IDML · .INDD

On this page

19k+ extensions indexed
Last reviewed Jul 30, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the XPS file format?

An .xps file is a page layout file saved in Microsoft's XML Paper Specification format. The format describes the structure and content of a document - including page layout and visual appearance - using XML markup packed inside a ZIP archive that follows the Open Packaging Conventions (OPC). It is similar to a PDF document; however, .xps stores pages as XML rather than binary streams, making the internal parts human-readable once the archive is extracted.

An .xps file can be used consistently across various platforms and operating systems. Access permissions can be configured and the file can be digitally signed using XPS Viewer on Windows. Because the container is a standard ZIP package, you can rename an .xps file to .zip and inspect its internal parts - including the root sequence file /FixedDocSeq.fdseq and the XAML-based .fpage markup files.

Microsoft introduced the format in 2006 alongside Windows Vista and .NET 3.0. It was later standardized by Ecma International as OpenXPS (ECMA-388, 2009), which uses the .oxps extension and a different internal namespace. The MIME type for the original format is application/vnd.ms-xpsdocument.

Security & safety

RISK: LOW

XPS files contain page descriptions, fonts and images - no macros or active scripting - so the attack surface is limited to parser bugs in the viewer, which have been rare. The format can't carry executable payloads the way Office macro documents can. Standard caution about unexpected attachments applies, but an .xps is among the lower-risk document types. Because it's a ZIP package, you can safely inspect it by renaming to .zip.

Format details

in a nutshell
FULL NAMEXML Paper Specification Document
DEVELOPERMicrosoftsince 2006 (Windows Vista / .NET 3.0); standardized later as OpenXPS/ECMA-388 (2009)
CATEGORYLayout Files
MIME TYPEapplication/vnd.ms-xpsdocument
TYPEZIP-based fixed-layout document package (Open Packaging Conventions, XML page markup)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
Identical to any ZIP/OPC package. Distinguish an .xps from .oxps by the internal part names/namespace: original XPS uses the Microsoft XPS namespace and /FixedDocSeq.fdseq, whereas OpenXPS (.oxps, ECMA-388) uses the OpenXPS namespace. Rename .xps to .zip to inspect the parts.

Programs that open XPS files

Windows3 apps
XPS Viewer Built-in Settings > Apps > Optional features > Add a feature > check 'XPS Viewer' > Install, then double-click the .xps. Preinstalled only before Windows 10 1803.
MuPDF Open-source Open mupdf-gl and drag the .xps in - MuPDF renders XPS natively; 'mutool convert -o out.pdf file.xps' makes a PDF.
XpsConverter (Microsoft) Free Command-line tool (ships with the Windows Driver Kit) that converts XPS <-> OXPS; use when a legacy app accepts only one flavor.
macOS1 app
MuPDF (via Homebrew) Open-source brew install mupdf, then 'mutool draw' to view pages or 'mutool convert -o out.pdf file.xps' to get a PDF. Nothing built-in reads XPS on macOS.
Linux2 apps
Okular Open-source KDE document viewer with XPS support - open the .xps directly to view and print/export to PDF.
MuPDF Open-source Install from your distro (package mupdf); 'mupdf file.xps' views it, 'mutool convert' turns it into PDF.

Technical details

deep spec
Container formatZIP-based Open Packaging Conventions (OPC) package
Page markup languageXAML-based FixedPage XML stored as `.fpage` files inside the package
MIME typeapplication/vnd.ms-xpsdocument
Magic bytes50 4B 03 04 ("PK") - standard ZIP local-file header at offset 0
Root entry point/FixedDocSeq.fdseq (Fixed Document Sequence file)
CompressionDeflate compression applied to internal OPC parts
Font embeddingFonts embedded with XPS obfuscation: GUID-based filenames and partial byte scrambling per OPC spec
Digital signaturesXML Digital Signatures (XMLDSig) for document integrity and authenticity
Document permissionsXPS access policy supports read-only, print-restriction, and signing restrictions
Color managementICC profile-based color management; scRGB color space supported for wide-gamut content
Print pipeline roleNative Windows print spool format, replacing EMF in the XPS print path introduced with Vista
Coordinate unitsDevice-independent units at 1/96 inch (96 dpi grid, matching WPF and CSS pixel definitions)
Embedded image formatsJPEG, PNG, TIFF, and WDP (Windows Media Photo / HD Photo)
Transparency modelAlpha compositing and opacity masks supported directly in FixedPage XML markup
Gradient renderingLinear and radial gradient brushes defined in XML; fully resolution-independent
Relationship to OpenXPSNon-interchangeable predecessor to ECMA-388 (`.oxps`); differs in XML namespace URIs and internal part names
Released2006 (Windows Vista / .NET 3.0); standardized later as OpenXPS/ECMA-388 (2009)
Open standardYes · royalty-free
Specificationlearn.microsoft.com

XPS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with XPS files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about XPS files.

Frequently asked questions

How do I open an XPS file in Windows 10/11?
Install the free XPS Viewer: Settings > Apps > Optional features > Add a feature > 'XPS Viewer' > Install, then double-click the .xps. It's no longer preinstalled (removed from default installs in Windows 10 1803, April 2018), which is why double-clicking does nothing by default.
How do I convert XPS to PDF for free?
Open the .xps in XPS Viewer, press Ctrl+P and print to 'Microsoft Print to PDF' - both are built into Windows. No third-party software or upload needed. Cross-platform: MuPDF's 'mutool convert -o out.pdf file.xps'.
What's the difference between XPS and OXPS?
Same fixed-layout idea, different versions: XPS is Microsoft's original 2006 format (Windows 7-era); OXPS is the Ecma-standardized revision (ECMA-388) that Windows 8+ produces. Windows 7's viewer can't open OXPS; Microsoft's free XpsConverter translates between them.
Why did printing create an XPS file instead of a printout?
The selected printer was 'Microsoft XPS Document Writer', a virtual printer that saves to a file. Pick your physical printer (or 'Microsoft Print to PDF' for a PDF) and print again.
Can I open an XPS file on a Mac?
Nothing built-in reads XPS on macOS. Install MuPDF via Homebrew (brew install mupdf) and convert to PDF with 'mutool convert', or use an online XPS-to-PDF converter for one-off, non-confidential files.
Is XPS the same as PDF? Can I edit it?
XPS is Microsoft's PDF alternative - both are fixed-layout 'electronic paper'. It's not meant to be edited; unlike PDF there's no mature editor ecosystem, so convert to PDF (or go back to the source document) if you need to change it.

References

1ECMA-388 - Open XML Paper Specification (OpenXPS)ecma-international.org
2Microsoft Learn - XPS Documents overviewlearn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.MDMarkdown Document
8.DATProgram Data File (generic)
9.NOMEDIAAndroid No-Media Marker File
10.TXTPlain Text File

Related extensions

.OXPSOpenXPS Document (Open XML Paper Specification)
.PUBMicrosoft Publisher Document
.IDMLAdobe InDesign Markup Language
.INDDAdobe InDesign Document
.BTWBarTender Label Document (barcode/label design file)
.PMDAdobe PageMaker document

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z