Learn How To Convert XML To Excel In Minutes

XML is a great way for systems and apps to work with, but it can be difficult for people because we don’t understand XML data very easily.

Excel, on the other hand, is a popular spreadsheet application which is designed to make working with data much easier for humans. So converting XML data into Excel makes sense!

There are two main ways to convert XML files into an Excel spreadsheet. One is to use a converter tool, or by manually editing the file. 

Converter Tools

Converter tools are pieces of software which can take an XML file and turn it into another format – in this case, an .xls or .xlsx file which can be opened in Excel.

The advantage of using a converter tool is that it’s usually much faster and easier than doing it yourself. All you need to do is download the converter, open your XML file, select the output as an Excel file, and then click convert. 

Your file will be ready in a few seconds or minutes, depending on its size.

Manually Editing The File

The other way to convert XML to Excel is by manually editing the file. This is a more complex process, but it gives you more control over the final outcome.

To do this, you’ll need to open the XML file in a text editor (we recommend using Notepad++)

Once you have the file open, you’ll need to find and replace all of the tags with commas (which can be cumbersome), for example, if your XML file looks like this:

[insert example here]- this will presumably require a screenshot, we don’t provide these for standard content

You ‘ll need to replace all of the “<” symbols with commas, so that it looks like this:

[insert example here]- this will presumably require a screenshot, we don’t provide these for standard content

Then you can save the file as a .csv file, which can be opened in Excel.

Manually editing an XML file is definitely more complex than using a converter tool, but it does give you more control over the final outcome!

What Is An XML File?

Extensible markup language (EML) is a file that can be used for storage and transportation purposes. The file consists of tags and text. Tags give structure to the data stored in the file, while the text is the core part of the document.

Take a look at the example below:

<employees list>
<employee id=”1”>

The file contains tags and texts. The plain text is the data that is being stored, while the tags indicate what the data is. This example shows the XML is storing employee names and their test scores.


XML Data Types

A data type is an attribute of data that informs a computer system how to interpret its value. There are many different XML data types, and all have different values. Take a look at some examples below:


Boolean, also known as Bool, is used to represent logical values. The two values it usually denotes are true or false. Boolean expressions use common operators, which are simple words like OR, AND, XOR, and NOT as conjunctions. These words are used to either combine or exclude words in a keyword search so users can access results that are more focused and productive. 


Integer is a data type used for whole numbers and is commonly used to store numbers without a fractional component. Examples of this data type include 33, 21, and 55. The whole number can be zero, negative, or positive. So, -456 would be valid integers. However, 4.2 would not as it is not a whole number. 


The decimal data type is exact numeric data defined by its total number of digits and the number of digits to the right of the decimal points (precision and scale). You would tend to use this data type if you wanted to store or complete operations on precise decimal values. 


String, also known as str or text, is used for alphanumeric characters. It is a popular data type that is used in programming. However, it represents text rather than numbers. A string is a set of characters that contains characters and often numbers too. For example, the word “cake” and the phrase “I baked 3 cakes” are both string data type examples. 


This data type represents the difference between one point in time to another. It is intended for use with time durations measured in seconds, minutes, hours, or days. 


DateTime stores a value that contains both date and time parts together. It allows programmers to store dates from 01/01/1753 to 31/12/9999 and time information from 00:00:00.000 to 23:59:59.997. It is ideal if you want to serve your data together regardless of different time zones. 


This data type is the most self-explanatory of the group. It stores a date in the following format – YYYY/MM/DD. 


This stores time in an hours, minutes and seconds format. This data type can also be used to store time intervals between two events. 


Importing An XML Data File

  • Open the Excel file that you want to import your XML data into then select the “data” tab.
  • Click on the “Get Data” section. A list should appear. 
  • Click the “From file” option and from there click on “From XML”.
  • An input data dialogue box will open up. This is where you will locate your XML file that you wish to import. Once you find it, select the file.  
  • As you click import the file will import into the power query and the Navigator dialogue box will open.
  • Select the data that you wish to import from your XML file. 
  • Click on load and you are finished. 

How To Convert XML To An Excel File

  • Open Microsoft Excel and click “File” on the top left of the screen. 
  • Click open to view your files and double click the XML file you wish to convert. 
  • Again, click “File” and select the “Save as” button. 
  • Find the file in the folder you have saved it in. 
  • Click on the file and select “Excel workbook” from the “Save as type” in the drop-down menu.
  • Once you click save your XML file will now be converted to an Excel file. 


How To Convert XML To An Excel Table?

Click on ‘File’ and open the Excel document you want to import your XML data into; make a new one if required. Click the Data tab, then go to the Get & Transform group, where you click on the ‘Get Data’ option. From there, you need to go to the ‘From Other Sources’ option and click ‘From Web’ In the ‘From Web’ dialog box, copy and paste the URL that has the XML data, and you’ll then be able to import that data into your Excel table and use it. 

How To Convert XML To Excel On MAC?

Click “File” and select “Open”. Locate your XML file and click “OK”. Once the file opens, you need to click on “File” again and choose “Save as”. After typing in a new name for your file, you will need to click “.CSV” in the file pop-up menu. Once you have done this, click “Save”.

Convert XML To Excel Using Powershell?

First, you need to use the XML cmdlets to import and parse your XML file. You can do this by downloading and using one of the many XML modules from the MS PowerShellGallery.com.

Convert XML To Excel Python?

It is possible to convert XML to Excel Python: you’ll need to make sure that you have all the software you need to make the conversion possible. You can then run the Python code that converts XML spreadsheet to Excel in your chosen software. You can learn more about selecting software for Excel by checking out our blog.

Automating tasks with excel (1)

Cut and Fill

With Construction Twin we want to model the foundations  and the cut and fill process of a construction project.  Every square meter of the site

Read More »

Need Help With Excel?

The Excel Experts are here to help with your Excel tasks big or small, including spreadsheet help, consulting, reporting, VBA, automation, and Power Bi. Let us help you take your Excel skills to the next level with our experience in delivering solutions.

    Max. file limit is 20mb

    Recommended For You

    The Excel 2023 Book

    Master Microsoft Excel from scratch in less than 7 minutes a day!

    Learn how you can convert xml to excel with these simple steps, including the use of conversion tools and manual editing XML files.