PDF download Download Article PDF download Download Article

XML (Extensible Markup Language) files are simple text-based data files that can be easily read by other programs. Many programs use XML to store data, and the code is fairly simple to read and understand. If you want to see what's inside of an XML file, you can quickly open it in a text editor, web browser, XML viewer, or even Microsoft Excel—read on to learn how!

Opening XMLs Fast

  • Right click the XML file you want to open and hover the cursor over “open with.” Select Notepad to open the text on your computer.
  • You can open XML files using a browser if your notepad isn’t legible.
  • If the contents of the XML file don’t make sense, download an XML reader to interpret the file.
Method 1
Method 1 of 4:

Using a Text Editor

PDF download Download Article
  1. XML files are encoded in plaintext, so you can open them in any text editor and be able to clearly read it.[1]
  2. This will display a list of programs to open the file in.
    Advertisement
  3. Select "Notepad" (Windows) or "TextEdit" (Mac). These are the pre-installed text editors for each operating system and should already be on the list. Any basic text editors will work.[2]
    • If they aren't on the list, you'll need to browse for them. Notepad is located at %SystemRoot%\system32\notepad.exe, and TextEdit can be found in your Applications folder.
    • You can use more advanced code editors like Notepad++ or TextMate as well, which can be useful for syntax highlighting and advanced editing. You can still see all of the information using a simple text editor.[3]
  4. Your XML file will open in your text editor. The complexity of the file is dependent on what it was created for. Use the tag labels to find the information you are looking for. Generally the labels will be fairly self-explanatory, allowing you to browse through the data and find the information you need.
    • You'll likely see <?xml version="1.0" encoding="UTF-8"?> at the top. This indicates that the following content is in XML format.
    • XML uses custom tags to house pieces of data. Each of these tags are created for whatever program is using it, so there is no common syntax to the markup labels. For example, one XML file may have a <body></body> section, and other might have <message_body></message_body>, but both may function similarly.
    • Tags can be nested inside other tags, creating a tree. For example, each <note></note> tag may have several tags inside, such as <title></title> and <date></date>.
  5. Advertisement
Method 2
Method 2 of 4:

Using a Web Browser

PDF download Download Article
  1. While you can use any basic text editor to open an XML file (see above), opening the file in a browser may make it a little easier to navigate. This is because most browsers automatically indent nested tags and allow you to collapse each section of the XML tree.
  2. This will let you choose the program you want to use to open the file.[4]
  3. You can open the XML file in any web browser. Oftentimes, your web browser will already be on the list of suggested programs. If it isn't, you'll need to browse for it on your computer.[5]
  4. The XML file will open in a new tab in your browser. All of the contents will be displayed, and your browser will automatically indent nested tags. This can make it easier to tell which data belongs to which set.[6]
  5. The big advantage to using a browser to read XML files is the ability to control what you see. Click the arrows or +/- buttons next to each section to expand or minimize it.
  6. Advertisement
Method 3
Method 3 of 4:

Using Excel

PDF download Download Article
  1. Open Excel. Excel will not usually pop up as a suggested program, so the quickest way to open the file is to open Excel first.
    • Excel can convert an XML file into a table, which can be useful for visually processing the information.
  2. This will display the Open menu.
  3. This will let you look for files on your computer.
  4. You should be able to navigate to it and see it by default, but if you can't, click the "Type" menu and select "XML Files."
  5. This will convert the XML file into an Excel table.
    • You will generally be informed that the XML file does not refer to a schema. Click "OK" to have Excel construct one for you based on the tags in the file.
  6. Your XML file will be organized into a table based on the tag structure. You can use Excels sorting and filtering tools to customize the table from here.[7]
    • You may have difficulties rendering complex XML files as tables.[8] If your XML file has lots of nested tags, you may want to use an XML viewer instead.
  7. Advertisement
Method 4
Method 4 of 4:

Using an XML Viewer

PDF download Download Article
  1. If you deal with lots of XML files, you may want to get a viewer or XML editor. These can make handling complex XML files much easier. There are a variety of programs available, both free and paid. A popular free, open-source reader is XML Explorer (https://xmlexplorer.github.io/).
    • Different programs will fit different needs. If you need to create a lot of XML files, you may want a professional XML editor. These allow you to automate and collaborate on large XML projects.
  2. Many XML programs will set themselves as the default program for XML files, allowing you to simply double-click the XML file to open it. If you can't, right-click the XML file and select "Open With." Browse for your newly-installed program.
  3. Programs like XML Explorer allow you to collapse sections, as well as turn syntax highlighting on and off. More advanced programs may allow you to make edits and create additional entries.
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    I saved JPGs and raw photo files to a remote hard drive as XML files. How can I open them in Adobe Elements 13?
    Community Answer
    Community Answer
    Open Adobe Element 13. Click on 'file open' and select the file and click 'open.'
  • Question
    What if notepad says the XML file is too big?
    Community Answer
    Community Answer
    Find a program to compress the file. There are free options available online.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

View XML FilesView XML Files
Run an XML File on Linux Run an XML File on Linux
Edit XML Files Open and Edit XML Files
Convert XML to Excel2 Easy Ways to Import and Convert XML in Microsoft Excel
Convert XML to MS Word Convert an XML File to a Word Document: Complete Guide
Open HTM FilesOpen HTM Files
Open EML Files Open EML Files on Windows, Mac, iPad, iPhone, & Android
Open a File in WindowsOpen a File in Windows
Run a HTML File Open and Run an HTML File: Step-by-Step Guide
Edit HTML FilesEdit HTML Files
Open Excel Files Open Excel Files: Complete Beginner's Tutorial
Open a TSV File on PC or MacHow Do I Open a TSV File? Your Easy, Step-by-Step Guide
Open CSV Files View, Open, and Edit a .CSV on Windows or Mac
Convert Text Files to Excel Convert Text & CSV Files to Excel: 2 Easy Methods
Advertisement

About This Article

Luigi Oppido
Co-authored by:
Computer & Tech Specialist
This article was co-authored by Luigi Oppido. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 1,445,744 times.
How helpful is this?
Co-authors: 13
Updated: July 16, 2025
Views: 1,445,744
Categories: Basic Computer Skills
Article SummaryX

1. Right-click the file.
2. Click Open with.
3. Select Notepad (to edit) or a browser (to view).

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,445,744 times.

Reader Success Stories

  • Anonymous

    Anonymous

    May 12, 2017

    "XML is everywhere, but not many people really understand its usage and functionality. I have always related XML..." more
Share your story

Is this article up to date?

Advertisement