Saved

Press the star next to a tool's name to save it.

All my tools

Open .xps File

Use this tool to open XPS file documents in your browser and read the text of each page, see the pictures inside, and copy or save the text, without Windows' viewer.

Open an XPS or OpenXPS document to read the text of each page and see its pictures. This is a text-and-pictures reader, not a page viewer: layout, fonts and drawings are not shown. The file is read in your browser.

The file is read in your browser. Nothing is uploaded.

Your document

Choose an .xps or .oxps file to see its pages.

Use this page to open xps file documents without Windows' own viewer. It reads the package in your browser, lists the pages, shows the text of each page and displays the pictures stored in the file, and you can copy the text or save it as a .txt file. Nothing is uploaded, and the file is not changed.

What an XPS file is

An XPS file is a ZIP archive that follows the Open Packaging Conventions, and its page markup is a subset of XAML.[1] Microsoft designed it to keep a document looking the same wherever it is viewed or printed.[2] The same Wikipedia article says there are two incompatible formats, so you may meet files ending in .xps and files ending in .oxps.[1] This page accepts both extensions. The standard behind the open version is ECMA-388, the Open XML Paper Specification, first published by Ecma International in June 2009.[3]

Open XPS file contents here: how it works

Choose a file, or drop it on the upload box. The page unzips the package and reads it the way the specification describes. A package has a start relationship that points to a FixedDocumentSequence part. That part references FixedDocument parts, and each of those references FixedPage parts, one for every page.[3] MSDN Magazine describes the same chain.[2] The page follows those references in order, so pages appear in the sequence the file lists them, not in the sequence of the file names. If a package has no usable start relationship, the page falls back to the file extensions of the parts it finds.

  1. Choose a .xps or .oxps file.
  2. Read the summary table: documents, pages, words of text and pictures.
  3. Scroll through the pages. Each has a heading, its text and its pictures.
  4. Press Copy all the text, or download the .txt file.

How the text is found

Each FixedPage part holds the markup and layout of one page, with references to images, fonts and other resources used on it.[2] Text sits in Glyphs elements. The UnicodeString attribute of a Glyphs element holds the Unicode characters that the element draws.[3] This page reads the UnicodeString of every Glyphs element in the order it appears in the page markup, and shows each one on its own line. The specification adds a small rule: a string that begins with an open brace is written with a leading pair of braces, and readers must ignore those two characters. The page drops them.[3] A Glyphs element can also carry only glyph indices and no UnicodeString; the specification allows that, and such an element has no text this page can read.[3]

The order is the order of the markup, not a reading order worked out from where text sits on the page. Some producers write one Glyphs element per word or style change, so a line on screen may be several lines here. The page does not join them, because it cannot know each run's width.

How the pictures are found

An image is drawn by an ImageBrush, whose ImageSource attribute names a part in the package. The specification says that part must be a JPEG, PNG, TIFF or JPEG XR image.[3] Resources such as images and fonts are stored in the package but outside the page, so several pages can share them.[2] The page reads each ImageSource it finds on a page, resolves the name against the page's own folder, and shows JPEG and PNG pictures directly. It also handles the wrapped form of the attribute, the one that pairs an image with a colour profile.[3] A TIFF or JPEG XR picture is listed by name and size because browsers do not display it. A picture the package names but does not contain is left out.

What this page does not do

This is not a page viewer. It does not reproduce page layout, fonts, vector drawings, links or digital signatures, and a page that is mostly drawing may show little or nothing. Fonts are embedded in the package, and an embedded font may be obfuscated to stop casual extraction, which this page does not touch.[2] Text that was converted to outlines, or that is part of a scanned picture, is not text and is not found, because the page does no optical character recognition. Pictures are shown under the text of their page, not where they sat.

Nothing was compared with Microsoft's own XPS viewer. The page was tested with packages built by hand to follow the structure in the sources above,, not with files saved by a particular program or in the .oxps format.

Limits and privacy

The file is read on your device by a script on this page, so nothing is uploaded, and the tool records no file names or contents. Files up to 100 MB are accepted. The page draws the first 50 pages to keep the browser responsive; the Copy button and the .txt file hold every page. Pictures above 25 MB are skipped, and at most 200 are read. Press Clear to remove the document from view.

When a file will not open

The page needs a ZIP package that holds at least one FixedPage part. A file with the right extension that is not a ZIP, or a ZIP with no pages, gets a message saying it is not an XPS document. A password-protected or rights-managed document may not open for the same reason; this page does not try to unlock it. To count the words you copied, use the word counter; if you can ask for a PDF instead, try the PDF to text converter.

Common mistakes

  • Expecting a page image. Only text and pictures are shown, not the page layout.
  • Trusting the line breaks. A line may be split into several runs.
  • Expecting text from scans. A scanned page holds a picture, not characters.
  • Choosing a different format. Only .xps and .oxps packages are read.

What next

Use this often? Add Open .xps Fi to your Home screen.

Frequently asked questions

How can I open XPS file documents without Windows?

Choose the file on this page. It reads the package in your browser, lists the pages, shows the text of each one and displays the JPEG and PNG pictures. Nothing is uploaded.

What is an XPS file?

An XPS file is a ZIP archive that follows the Open Packaging Conventions. It holds one markup part for each page, plus the images and fonts those pages use.

Does it show the page layout?

No. It shows text and pictures only. Layout, fonts, vector drawings and fidelity are not reproduced, and nothing was compared with Microsoft's own viewer.

Does it open .oxps files too?

Yes, it accepts both .xps and .oxps and reads the parts the same way. It was tested with hand-built packages, not with files from a particular program.

Why is some text missing?

Text drawn as outlines or stored inside a scanned picture is not text in the file, and a Glyphs element with only glyph indices has no characters to read.

Is my document uploaded?

No. The file is opened on your device, and the page records no file names or contents.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Office & Productivity Tools