Convert HTML table to XML

Form for HTML converting to XML

This form allows you convert HTML tables to XML data, paste or upload your HTML file below:


Your result can be seen below.

Result of HTML conversion to XML


Move to "Paste Code" for Save it

About HTML conversion to XML

About HTML tables conversion to XML data

The HTML to XML Converter was created for online transform code of HTML tables into XML(Extensible Markup Language) data. It's very simple and easy way to transform and share HTML to XML data.

How it Works?

Just paste or upload your HTML data to the textarea above and click to the button "Convert" and you will instantly get XML data.

Example of HTML conversion to XML

Before:
<!DOCTYPE html>
<html>
<head>
<style>h1{color:orange;text-align:center;}</style>
</head>
<body>
<h1>HTML example!</h1>
<p>This is a paragraph.</p>
<table>
<thead>
<tr>
<td>id</td>
<td>firstName</td>
<td>lastName</td>
<td>age</td>
</tr>
</thead>
<tr>
<td>1</td>
<td>Kim</td>
<td>Kardashian</td>
<td>39</td>
</tr>
<tr>
<td>2</td>
<td>Ariana</td>
<td>Grande</td>
<td>26</td>
</tr>
<tr>
<td>3</td>
<td>Cristiano</td>
<td>Ronaldo</td>
<td>35</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</body>
</html>
After:
<root>
	<rows>
		<col1>id</col1>
		<col2>firstName</col2>
		<col3>lastName</col3>
		<col4>age</col4>
	</rows>
	<rows>
		<col1>1</col1>
		<col2>Kim</col2>
		<col3>Kardashian</col3>
		<col4>39</col4>
	</rows>
	<rows>
		<col1>2</col1>
		<col2>Ariana</col2>
		<col3>Grande</col3>
		<col4>26</col4>
	</rows>
	<rows>
		<col1>3</col1>
		<col2>Cristiano</col2>
		<col3>Ronaldo</col3>
		<col4>35</col4>
	</rows>
</root>
Or:
<root>
	<rows>
		<id>1</id>
		<firstName>Kim</firstName>
		<lastName>Kardashian</lastName>
		<age>39</age>
	</rows>
	<rows>
		<id>2</id>
		<firstName>Ariana</firstName>
		<lastName>Grande</lastName>
		<age>26</age>
	</rows>
	<rows>
		<id>3</id>
		<firstName>Cristiano</firstName>
		<lastName>Ronaldo</lastName>
		<age>35</age>
	</rows>
</root>
After the conversion, you can apply the XML data to your project or use it for some other purpose.