By 9 min read

How to Open an XML File When Chrome Shows Raw Text: Japanese Tax Certificates, e-Gov Documents, and Plain Data XML

Japanese tax deduction certificates (電子的控除証明書) and e-Gov official documents arrive as XML. They show raw tags or a blank page because the browser does not apply the XSL that gives them their layout, and Chrome 158 (November 2026) removed that feature altogether. What XML is, why it will not open, how to view and print it in your browser without uploading, and how that differs from the National Tax Agency's QR certificate system.

Open the XML right here

Drop a National Tax Agency deduction certificate XML, or an e-Gov or Japan Pension Service official document (the ZIP as it is, or the .xml and .xsl), into the dashed box below, and it appears on this page, laid out by its XSL stylesheet. This site has copies of the stylesheets for the 45 forms the National Tax Agency publishes, so for those the XML alone is enough. Print it, or save it as PDF or HTML.

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.

The file is read on your own device and never sent anywhere.

You downloaded your deduction certificate (控除証明書) from your insurer's website, and it is a .xml file. A furusato nozei (hometown tax donation) site sent you a "certificate for the donation deduction" (寄附金控除に関する証明書) as XML. You filed something through e-Gov, and the notice came back as a ZIP with XML inside. You double-click it, and all you get is a page of text full of symbols, or a blank page. XML is a container for data; its look comes from a separate file, an XSL stylesheet. If the browser cannot apply that XSL, the file does not take the shape of a document. A National Tax Agency deduction certificate XML has its XSL on the agency's server, and e-Gov and Japan Pension Service official documents do not get their XSL applied on a PC with its initial settings (according to e-Gov's FAQ), so both could already open as a blank page when double-clicked in Chrome or Edge. Then Chrome 158 (November 2026) stopped the feature that applies an XSL (XSLT) altogether (and Edge is following).

This article explains what XML is, why it will not open (including the browser change of November 2026), and how to tell which kind of XML you have (a National Tax Agency (国税庁) deduction certificate, an e-Gov official document, or plain data). It then covers opening it on this page, opening it with the National Tax Agency's and e-Gov's own tools, and opening it for now through browser settings. The Japanese names of forms and services are given in brackets, since the agencies publish their instructions in Japanese.

What an XML file is

XML is a text file that writes data as pairs of item names and values. Open one in Notepad and you see names in angle brackets (tags) around values, such as <WCA00000>◯◯生命保険</WCA00000> (the name of a life insurer). That is not damage. It is what XML actually contains.

XML holds no layout of the kind a paper form has. The layout comes from a separate file, an XSL stylesheet. An XML file meant to be read as a document has a line near the top, usually the second line, like <?xml-stylesheet type="text/xsl" href="…"?>, which points to where the XSL is. The browser read that line and applied the XSL (this transformation is called XSLT), drawing the certificate or notice in its proper form.

Where the XSL lives depends on who issued the file.

  • National Tax Agency electronic deduction certificates (電子的控除証明書等) (deduction certificates for life insurance premiums, earthquake insurance premiums, donations, housing loans and so on, and withholding slips): the XSL is on the National Tax Agency's server, and the XML holds only its URL (such as https://xml.e-tax.nta.go.jp/xsl/1.0/…). You receive a single .xml file.
  • Official documents (公文書) from e-Gov e-filing and the Japan Pension Service: the XSL comes in the same ZIP as an .xsl file, and the XML points to it by file name. Taken out on its own, the .xml will not open (see the article on e-Gov XML documents that will not open).
  • Plain data XML (software settings files, the insides of Excel and Word files, RSS, sitemaps and so on): there is no XSL to point to, and it is not meant to be viewed as a document.

Why it will not open (including Chrome 158 in November 2026)

A National Tax Agency deduction certificate XML could already open as a blank page when double-clicked. A file on your PC loads its XSL from another server (the agency's), and the browser does not allow that. The agency's page for the QR-coded certificate creation system also says that an XML file will not display correctly unless it is read in through e-Tax software or the QR-coded certificate creation software (「XMLファイルについては、e-TaxソフトやQRコード付証明書作成ソフトから読み込まないと正しく表示されません」). For this article, too, when we opened an XML pointing to the agency's XSL (one we made as a test) in a version of Chromium where XSLT still works, the page stayed blank.

e-Gov and Japan Pension Service official documents do not open on a PC with its initial settings either. e-Gov's FAQ says that with the initial settings, an XML official document that loads an XSL cannot be opened, and the Japan Pension Service guides you to Edge's Internet Explorer mode or a change to Safari's settings (see the e-Gov documents article). For this article, too, when we opened an XML in the shape of an official document pointing to an .xsl in the same folder (one we made as a test) in a version of Chromium where XSLT works, the page stayed blank.

On top of that, in November 2026 the browser's XSLT itself stopped. Google has removed XSLT from the browser. According to the Chrome Platform Status entry "Deprecate and remove XSLT" and the Chrome for Developers article, Chrome 158 (the Stable release of 17 November 2026) stopped both the XSLTProcessor JavaScript API and the <?xml-stylesheet type="text/xsl" …?> line in an XML file. Companies can keep it a little longer with an administrator setting (the XSLTEnabled policy), but that stops too in Chrome 176 (planned for 17 August 2027). Google's reason is that libxslt, the component that does the XSLT processing, is old C code in which security flaws keep being found.

In Chrome 158 and later, an XML file that points to an XSL shows its contents as raw tags, with a notice above them that the document uses XSLT, which the browser does not support, so it cannot be shown as intended (in English: "This document cannot be formatted as intended. It uses XSLT, which the browser does not support." We checked this with an English-language Chromium with XSLT turned off; we have not checked what a Japanese-language display shows). An XML file with no XSL has long shown "This XML file does not appear to have any style information associated with it." followed by its raw contents.

Microsoft Edge is doing the same. Microsoft's Edge Beta channel release notes say that in Edge 159, browser-native XSLT will be off by default in the Stable channel. The policy for companies (XSLTEnabled) is planned to stop working in Edge 176.

For Firefox, a Mozilla developer posted an "Intent to Unship: XSLT" on 26 August 2026. XSLT can already be turned off with a setting (dom.xslt.enabled); the post proposes stopping it in Nightly (the development version) first and in every release channel in August 2027. The Chrome for Developers article says WebKit (Safari's engine) has also indicated plans to remove it. In every browser, the way to show XML through its XSL is closing.

Which XML do you have? (three types)

How to open it depends on the type. Open the file in Notepad and look at the first few lines (or drop it into What Is This File?, which tells you whether the XML points to an XSL).

Type 1: National Tax Agency electronic deduction certificates

The second line points to an XSL on an nta.go.jp server, for example href="https://xml.e-tax.nta.go.jp/xsl/1.0/CMTEG800-001.xsl", and the next line starts with TEG, as in <TEG800 …>. According to the National Tax Agency's FAQ, an electronic deduction certificate is data that records what a certificate such as a life insurance premium deduction certificate, an earthquake insurance premium deduction certificate or a donation receipt certificate must state, issued with the issuer's digital certificate attached. It is issued by insurers and the organisations you donated to, in the same way as a paper certificate. You can also receive these together through Mynaportal integration (マイナポータル連携).

The forms in the agency's specification and on the page for its QR-coded certificate creation system can be told apart by the number in the name. The main ones are:

  • TEG800 life insurance premium deduction certificate (生命保険料控除証明書), TEG810 earthquake insurance premium deduction certificate (地震保険料控除証明書)
  • TEG820–822 donation receipt certificates (寄附金受領証明書), TEG830 certificate for the donation deduction (寄附金控除に関する証明書; issued by specified businesses designated by the Commissioner of the National Tax Agency, such as furusato nozei portal sites)
  • TEG840 national pension premium deduction certificate (国民年金保険料等控除証明書), TEG850 small business mutual aid premium deduction certificate (小規模企業共済等掛金控除証明書)
  • TEG900 certificate of the year-end balance of a housing acquisition loan (住宅取得資金に係る借入金の年末残高等証明書; issued by a financial institution), TEG910–913 and 916–919 housing loan special deduction certificate for year-end adjustment (年末調整のための(特定増改築等)住宅借入金等特別控除証明書; issued by the tax office, with its XSL on uketsuke.e-tax.nta.go.jp)
  • TEG101–109 withholding slip for salary income (給与所得の源泉徴収票), TEG400–409 withholding slip for public pensions (公的年金等の源泉徴収票; 409 is planned to be provided from January 2027), TEG202–204 annual report on a specified account (特定口座年間取引報告書), TEG300 withholding slip for retirement income (退職所得の源泉徴収票・特別徴収票), TEG500 and 501 payment notice for distributions from open-end securities investment trusts (オープン型証券投資信託収益の分配の支払通知書), TEG600–602 payment notice for amounts deemed dividends (配当等とみなす金額に関する支払通知書), TEG700 medical expense notice (医療費通知(お知らせ))

Type 2: e-Gov e-filing official documents (procedures with the Japan Pension Service, Hello Work and others)

These arrive as a ZIP with .xml and .xsl files in pairs. The second line of the XML points to a file name in the same folder, such as href="kagami.xsl". The article on e-Gov XML documents that will not open explains how to open them in detail, and how that differs from e-Gov's own viewer (公文書表示). The viewer at the top of this article opens the ZIP as it is, too.

Type 3: Plain data XML

This is XML with no <?xml-stylesheet line: software settings, game save data, the insides of Excel and Word .xlsx and .docx files, RSS, sitemaps and so on. It is not something you "open" as a document. Read it with the software that made it, or look at the contents in Notepad. If you drop it into the viewer at the top, the viewer says the XML does not look like an official document and shows its items and values as a table.

Method 1: Open it on this page (nothing to install)

The XML viewer at the top of this article opens it as it is. It does not rely on the browser's XSLT: a transformation component included in this page (libxslt) lays the XML out by the XSL it points to. It works the same after Chrome 158 and Edge 159. There is no software or extension to install. It is built to work on a phone-width screen too (checked in Chromium, not on a real iPhone's Safari).

  1. Drop the XML into the dashed box (or click the box to choose it). An e-Gov official document can go in as the ZIP it came in.
  2. For a National Tax Agency deduction certificate, the page loads a copy, kept on this site, of the stylesheet the XML points to, and shows it in the form of the certificate. A note below the frame says which form's stylesheet was used.
  3. "Print" prints it, and "Save as PDF" makes a PDF (both open your browser's print screen; choose "Save as PDF" there to get a PDF). "Save as HTML" saves the document as displayed in a single HTML file.

Why this site keeps the National Tax Agency's XSL: a deduction certificate XML points to an XSL on the agency's server. That server does not allow pages on other sites to load from it (it gives no CORS permission). So this page cannot fetch the XSL on the spot. Instead, it keeps copies of the XSL files the agency publishes (37 forms that are in the table of forms in the specification and are on the agency's server, plus 8 forms for the housing loan special deduction certificate, 45 forms in all) and matches them by the file name the XML points to. The copies are unchanged, character for character. Source: National Tax Agency website (国税庁ホームページ) — https://www.e-tax.nta.go.jp/shiyo/ksk2/ksk2_shiyo-kojo3.htm and other pages; the copies were fetched from https://xml.e-tax.nta.go.jp/xsl/1.0/ and https://uketsuke.e-tax.nta.go.jp/xsl/ . The terms of use of the National Tax Agency and e-Tax websites (which follow the Public Data License, version 1.0 (公共データ利用規約(第 1.0 版))) are, as we read them, what applies to these XSL files: the 37 forms whose address the specification gives, and the 8 housing loan forms that the samples on the page for the QR-coded certificate creation system point to, are both what the agency points to from the e-Tax website. We reproduce them with the source stated. The list of files and where each came from is here.

Three things to know. The electronic signature is not verified (there is no check that the data has not been altered). A signed XML shows "This document carries an electronic signature (not verified on this page)." Scripts (programs) in the XSL that adjust printing do not run, so the printed scale may differ slightly from what the agency's system shows. A printout from here cannot be used for submission. For the deduction certificates and the main forms such as the medical expense notice (16 forms), the National Tax Agency's XSL itself says that if you file your tax return on paper, a printout of it cannot be used (「書面により確定申告される場合は、…を印刷したものは使用できません」; for the housing loan special deduction certificate, also for year-end adjustment), and that note appears below the certificate when it is shown on this page too. For the document you hand in, see Method 2.

This page has been checked with the sample XML files the National Tax Agency publishes (housing loan special deduction certificates, 8 files) and with samples built to the agency's specification. It has not been checked with XML actually issued by an insurer or financial institution. If yours displays wrongly, please tell us through the contact page (do not send the XML itself: it holds your name and contract details).

Method 2: The National Tax Agency's and e-Gov's own tools

The National Tax Agency's QR-coded certificate creation system (when you need a document to hand in)

The National Tax Agency's QR-coded certificate creation system (QRコード付証明書等作成システム) takes the electronic deduction certificates issued to you by insurers, financial institutions, donation recipients, the tax office and others, and makes, on a PC, the "QR-coded deduction certificate" (QRコード付控除証明書等) you hand in for your final tax return or year-end adjustment. The agency's FAQ describes a QR-coded deduction certificate as a printout of the QR-coded certificate (a PDF file) made with this system. To use it, you install on your PC a pre-setup tool (事前準備セットアップ) for your operating system and browser, and on Windows a browser extension (e-Tax AP) as well. Smartphones are outside the recommended environment. When you hand in a paper document, use one made here, or a certificate you were issued on paper, not a printout from this page.

If you are an employee and your employer has moved year-end adjustment online, the flow is the one in the agency's guide to electronic year-end adjustment: you load the deduction certificate data into the year-end adjustment software (年調ソフト, which the agency distributes free) or similar, make your declaration data, and give it to your employer together with the certificate data. In that case you do not need to open and print the XML yourself. Follow your employer's instructions on how to hand it in.

e-Gov's official document viewer (公文書表示) (for official documents)

e-Gov e-filing has an official document viewer (公文書表示), added on 18 March 2026, where you select an official document's extracted .xml and .xsl files to view them. The Japan Pension Service describes it as showing the document "by uploading" the files. How to use it, and how it differs from this page, which sends the files nowhere, are covered in Method 2 of the e-Gov documents article. e-Gov's instructions are steps for selecting a pair of .xml and .xsl files, and they do not say it can be used for a National Tax Agency deduction certificate, whose XSL you do not have.

Method 3: Open it for now through browser settings

All of these are ways the Japan Pension Service and e-Gov describe for e-Gov and Japan Pension Service official documents that have the .xsl in the same folder. A National Tax Agency deduction certificate XML has its XSL out on the internet, and this article has not checked whether it displays with these settings.

  • Edge (Windows): the steps in the Japan Pension Service's PDF reopen the official document in Internet Explorer mode (see Method 3 of the e-Gov documents article). Microsoft's material on XSLT does not say how long IE mode will keep working. The administrator policy XSLTEnabled is a way to keep XSLT a little longer for XML on websites, and it is not described as a way to open official documents on your PC.
  • Firefox: there is a proposal to stop XSLT in August 2027 (see above). This article has not checked whether official documents open in it until then, or whether a National Tax Agency XML displays.
  • Safari (Mac): the Japan Pension Service's steps to disable local file restrictions (ローカルファイルの制限を無効にする) are for official documents with the .xsl in the same folder (see Method 3 of the e-Gov documents article). WebKit (Safari's engine) has also indicated plans to remove XSLT.

All of these only bridge the gap until XSLT is gone from browsers. If you would rather not install anything, Method 1 is the reliable choice.

What you get in Notepad or Excel

In Notepad, you see the text with its tags, as it is. That is the XML's contents, and the file is not broken. The policyholder's name and the premium amounts are written between the tags, so you can read them if you only want to check. But it will not look like a document.

Excel and Word also have features for opening XML, but this article has not checked whether they give you the National Tax Agency certificate's layout. Only software that can process XSLT can lay XML out as a document with its XSL, which is why the viewer at the top of this article carries its own transformation component.

Also, do not edit the XML and save it. A National Tax Agency deduction certificate carries the issuer's electronic signature, and if the contents change, the signature no longer matches when the recipient verifies it.

Frequently asked questions

Is the file sent anywhere when I open it here?
Neither the file's contents nor its name are sent to this site or anywhere else. Applying the XSL stylesheet happens in your browser. For a National Tax Agency deduction certificate, the page loads a copy of the agency's stylesheet that is kept on this site: that is receiving a file, not sending one (which form was opened does show up in this site's server logs, just as when you open any other page). Apart from that, the page sends only usage measurement (whether a file was chosen, a rough size, whether it opened and what kind of failure, the number of a form the page had no copy of, whether you saved or printed; never the file name, the contents or your name). See the privacy policy.
Does it work on a phone (iPhone or Android)?
The viewer on this page is built to work on a phone-width screen too, and takes files up to 20 MB. It was checked in Chromium (the engine of Chrome and Edge), not on a real iPhone's Safari. The National Tax Agency says smartphones are outside the recommended environment for its QR-coded certificate creation system (QRコード付証明書等作成システム).
Can I hand in what I print here for year-end adjustment or my tax return?
It cannot be used for submission. For the deduction certificates and the main forms such as the medical expense notice (life insurance premiums, earthquake insurance premiums, donations, national pension premiums and the like, the medical expense notice, the housing loan special deduction certificate and others: 16 of the 45 forms), the National Tax Agency's XSL itself says that a printout cannot be used when you file your tax return on paper (for the housing loan special deduction certificate, also for year-end adjustment), and that note appears below the certificate when it is shown on this page too. To hand in a paper document, use a QR-coded deduction certificate (QRコード付控除証明書等), which is a printout of the PDF made with the agency's QR-coded certificate creation system, or a certificate you were issued on paper. If your employer has moved year-end adjustment online, you can also hand over the data as it is, through the year-end adjustment software or similar. Printing on this page is for checking the contents, whatever the form.
The page says it has no copy of the stylesheet, or that the .xsl was not found.
For a National Tax Agency deduction certificate XML, the page says it has no copy of that stylesheet. This page has copies for the 45 forms the agency publishes. If you have the .xsl for another form, add it with "Choose ….xsl to add". If not, "Open anyway (show the XML as a table)" shows the items and values the XML holds as a table. (If the page says the copy could not be loaded, check your connection and drop the file in again.) For an e-Gov or Japan Pension Service official document, the page says the .xsl was not found when only the .xml was taken out of the ZIP: drop the ZIP in again as it is.
Has this been checked with a real XML file from an insurer?
It was checked with the sample XML files the National Tax Agency publishes (housing loan special deduction certificates, 8 files) and with samples built to the agency's specification. It has not been checked with XML actually issued by an insurer, a financial institution or a furusato nozei (hometown tax donation) site. If yours displays wrongly, please tell us through the contact page (do not send the XML itself: it holds your name and contract details).
I cannot install extensions or software on my work PC.
This page works in the browser alone, with no extension or software to install. The National Tax Agency's QR-coded certificate creation system needs its pre-setup tool (事前準備セットアップ) installed, and on Windows a browser extension (e-Tax AP) as well.

About the author

Ren

Developer, OpenedFile

I build and maintain OpenedFile on my own. It started when a winmail.dat attachment landed in my inbox and nothing would open it — and every online converter I found wanted me to upload the file to their server first. So I wrote a TNEF parser from scratch instead, and every tool here has run entirely in the browser ever since.

More about OpenedFile