Convert HTML Table to Excel

Convert HTML table to Excel

Description

This action takes HTML input that contains one or more <table> elements and converts it into a real Excel (xlsx) file.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
HTMLHTMLThe HTML content containing the table(s) to be converted.✔️-

Output

ResponseTypeDescription
File responsexlsxThe generated Excel file. Each HTML table becomes a separate sheet (if multiple tables are present in the input
File response as stringStringThe content of the Excel file encoded as a string. Useful for storing in a variable, sending to Dataverse, or passing to other actions.
MIME typeStringThe MIME type of the Excel file
ExtensionxlsxThe file extension (always xlsx)

Power Automate Examples

Convert HTML Table to Excel

As input, we provide a simple HTML snippet that contains a <table> element. Here's a sample:

HTML table
<table border = "1">
<tr> 
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>

Picture

💡

Looking for the response to this example? Scroll up to see the Output tab.

Known Limitations

⚠️
If you experienced other limitations please get in touch with us!