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.
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.
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.
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?
Why does Chrome or Edge show a blank page for my document?
Can I check the electronic signature?
It says the XSL was not found.
Can it open the National Tax Agency's deduction certificates (XML)?
Can I open the CSV or PDF files?
The page breaks change when I print.
Documents from work that won't open
Other tools for the same situation
- Open JTD (Ichitaro) View, then save as Word, PDF or text
- Open XDW (DocuWorks) View page by page and save as PDF
- Visio Viewer View drawings page by page, save as PDF