XML to HTML Converter Online — Free & Private

Paste XML and get HTML output. Everything runs in your browser and nothing is uploaded.

Loading…
XML → HTML tables and lists
Reads XML in the browser and writes it as an HTML fragment of tables and lists, for previews, emails and docs.

Developer notes

The conversion goes through JSON: attributes become keys, and text next to attributes appears under a text label. A single wrapper element is unwrapped, so the table starts at the data. Repeated elements with the same children become a table with a header row. Repeated plain values become a list. The output is a fragment, not a full HTML document, and every value is HTML-escaped.

Use cases

Show an XML export as a table in an email or a ticket. Preview a feed or a catalog without a stylesheet. Check the shape of an XML file before you write the real transform.

About these options

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a JSON tree.

Examples

Attributes and child elements

Input

<?xml version="1.0" encoding="UTF-8"?> <release version="2.1.0" channel="stable"> <summary>Converter cluster expansion</summary> <notes>TSV, SQL, HTML, Markdown, Properties, INI</notes> </release>

Output

<table> <tbody> <tr> <th>version</th> <td>2.1.0</td> </tr> <tr> <th>channel</th> <td>stable</td> </tr> <tr> <th>summary</th> <td>Converter cluster expansion</td> </tr> <tr> <th>notes</th> <td>TSV, SQL, HTML, Markdown, Properties, INI</td> </tr> </tbody> </table>

XML rows as an HTML table

Input

<?xml version="1.0" encoding="UTF-8"?> <rows> <product><id>10</id><name>Neo</name></product> <product><id>11</id><name>Trin</name></product> </rows>

Output

<table> <thead> <tr> <th>id</th> <th>name</th> </tr> </thead> <tbody> <tr> <td>10</td> <td>Neo</td> </tr> <tr> <td>11</td> <td>Trin</td> </tr> </tbody> </table>

Related tools

Other converters that start from XML are linked on this page.

XML → HTML FAQ

How the HTML is built

Where do attributes go?

An attribute becomes a row or a column named after the attribute, next to the child elements.

Is XSLT supported?

No. The tool reads the XML with the browser parser and builds the tables itself, so it does not run stylesheets.

Is the HTML escaped?

Yes. The characters &, < and > in values are escaped.

Is my data sent to a server?

No. The conversion runs in your browser, and FastMinify never receives what you paste.

Convert XML to YAML, CSV, JSON, TOML, TSV and HTML.