Open Japanese Official XML Documents (e-Gov, Japan Pension Service)

Show an official document from Japanese government e-filing (.xml and .xsl, or the ZIP as it came) as it should look, and print it or save it as PDF. It also opens the electronic deduction certificates of Japan's National Tax Agency (the XML for life and earthquake insurance premiums, donations, housing loans and more). The files are read in your browser and sent nowhere.

Your files stay safe — processed entirely in your browser. Nothing is uploaded.

Drop the ZIP of an official document, or its .xml and .xsl files together, here

or click to choose files (more than one is fine)

For official documents (XML + XSL) from e-Gov, the Japan Pension Service, Hello Work, labour standards offices and others. Works on Mac and iPhone too. The files never leave your device.


How to open a Japanese official document (XML + XSL) in your browser

Official documents (公文書) from e-Gov electronic filing, the Japan Pension Service and Hello Work come as an XML file with the document's content and an XSL stylesheet that lays it out, usually packed in a ZIP. Browsers used to apply the stylesheet themselves, but Chrome removes that feature (XSLT) in version 158, the stable release of 17 November 2026.

This page applies the stylesheet with a conversion component built into the page, shows the document, and lets you print it or save it as PDF or HTML. The files are read inside this browser and sent nowhere.

1

Add the files

Drop the ZIP as it came (no need to unzip it), or the .xml and .xsl files together, onto the box above, or click it to choose them.

2

Choose a document

The documents in the ZIP (the cover letter, notices, copies of filings and so on) are listed. Choose one to see it laid out by its XSL stylesheet.

3

Print or save

"Print" or "Save as PDF" opens the print dialog (for a PDF, choose "Save as PDF" as the printer). "Save as HTML" gives one file that looks as shown. Attachments such as CSV and PDF files can be saved as they are without opening them.

The layout is exactly what the document's own XSL produces; this page does not redesign it. The electronic signature is not verified (there is no check that the document has not been altered).

How this viewer works

The viewer applies the XSL stylesheet from the same ZIP to the document's XML to make HTML, removes anything that would run as a program or connect to the network, and shows the result in a frame where scripts cannot run. Nothing is sent to a server.

Conversion without the browser's XSLT
The conversion uses xslt-polyfill 1.0.34 (BSD 3-Clause), the XSLT library libxslt compiled to WebAssembly, served with this site. Chrome removes the browser's XSLT (XSLTProcessor and <?xml-stylesheet?>) in version 158 (17 November 2026); this page is not affected.
Which stylesheet is used
In this order: the XSL named by the <?xml-stylesheet?> at the top of the XML, the one named by <STYLESHEET> in copies of filings, an XSL with the same name in the same folder, and the only XSL in the same folder. When none is found, the XML's contents can be shown as a table.
The National Tax Agency's deduction certificates (XML)
The National Tax Agency's electronic deduction certificates are XML files whose <?xml-stylesheet?> points to an XSL on the agency's server, and that server does not let pages of other sites load it (it gives no CORS permission), so a web page cannot read it. This site therefore keeps copies of the XSL stylesheets the agency publishes for 45 forms, and uses the one the XML names. The copies are unmodified (source: National Tax Agency website, copied under the Public Data License (Version 1.0)). The print script inside those stylesheets is not run, so the print scale can differ from the agency's own display. Your XML is not sent anywhere; the page only loads the stylesheet copy from this site (so this site's server logs record which form's copy was loaded). Source and the list of 45 forms
Nothing runs, nothing is fetched
The converted result is cleaned with DOMPurify, which removes scripts, event handlers, forms and embedded objects. The frame that shows it is not allowed to run scripts and can load only pictures from inside the ZIP. Addresses outside the files (web images and styles) are not loaded, only counted, and the XSL's include, import and document() are not allowed to read outside files either.
What it was tested with
It was checked against the published information on how these documents are built (e-Gov's own viewer and public programs that handle them) and against sample files built the same way. If one of your documents does not display properly, please contact us.

What it cannot do

Electronic signatures are not verified. XML and XSL files with a DOCTYPE or ENTITY declaration are not opened (official documents do not contain one). Files over 50 MB (20 MB on phones and tablets) and XML files over 10 MB are not opened. Across all the files dropped, ZIPs are read up to 1,000 entries, 50 ZIP files, 200 MB unpacked in total (each entry counted as 4 KB) and 20 seconds of reading; what goes past that is not read. Up to 200 documents are shown in all. QR-coded deduction certificates (the printouts handed in for year-end adjustment or a tax return) cannot be made (a printout from this page cannot be handed in). Password-protected ZIPs cannot be opened. CSV, DTA, PDF and other files can only be saved, not opened.

Frequently asked questions

Are my files uploaded?
No. Unzipping and the XSL conversion both run in a program inside this browser. Nothing is sent to this site or anywhere else.
Why does Chrome or Edge show a blank page for my document?
Browsers are removing the feature that applies an XSL stylesheet to XML (XSLT). Chrome removes it in version 158 (the stable release of 17 November 2026). Edge turns browser-native XSLT off by default in version 159 (Microsoft Learn, Microsoft Edge release notes for Beta Channel). Also, double-clicking an .xml file opens it as a file on your computer, and the browser may then not apply the XSL in the same folder. This page shows the document in both cases.
Can I check the electronic signature?
No. This page only shows, prints and saves the document; it does not verify signatures. A document that carries a signature is marked as such.
It says the XSL was not found.
An official document's XML points to an XSL stylesheet in the same ZIP. Drop the ZIP without unzipping it, or add the .xsl from the same folder as the .xml. Even without the XSL, "Open anyway" shows the XML's contents as a table.
Can it open the National Tax Agency's deduction certificates (XML)?
Yes. For the 45 forms whose XSL the National Tax Agency publishes — life and earthquake insurance premium deduction certificates, donation receipts, withholding slips, the housing loan deduction certificate for year-end adjustment and others — dropping the XML alone is enough (the page uses its own copy of the XSL). For a form it has no copy of, drop that .xsl too, or use "Open anyway" to see the contents as a table. A deduction certificate printed or saved as PDF from this page cannot be handed in for a paper tax return or year-end adjustment (for most certificate forms the agency's own layout says it cannot be used for a paper tax return, and for the housing loan certificates not for year-end adjustment either). The documents to hand in (QR-coded deduction certificates) cannot be made here; they are made with the agency's QR-coded certificate creation system (Japanese).
Can I open the CSV or PDF files?
CSV, DTA, PDF and other files in the ZIP are not opened here, but you can save them as they are. Open a PDF in your browser or a PDF reader, and a CSV in a spreadsheet program.
The page breaks change when I print.
Printing follows the page breaks written in the XSL and your browser's print settings. Choose the paper size, orientation and margins in the print dialog.

Documents from work that won't open

Other tools for the same situation

More for this situation →