# XML to Markdown converter

Turn XML elements, attributes and text into structured Markdown.

Canonical page: https://aismarty.com/tools/convert-xml-to-markdown

## Purpose

Turn XML into readable Markdown. Elements become headings, attributes become bullet points, and repeated records with the same fields become a table.

## How to use this tool

1. Paste your content or open a file from your device.
2. Choose Convert to Markdown. Conversion happens in your browser.
3. Review the Markdown, then copy or download it.

## Example inputs

- XML: <services>
  <service id="cut">
    <name>Haircut</name>
    <minutes>45</minutes>
  </service>
  <service id="colour">
    <name>Colour</name>
    <minutes>120</minutes>
  </service>
</services>

## Limits and what to check

The conversion runs entirely in your browser and nothing is uploaded. Input is limited to 500,000 characters. XML with a DOCTYPE or entity declarations is refused for safety, and comments and processing instructions are left out.

## Frequently asked questions

### Is XML with entities supported?

Standard character entities are supported. Documents with a DOCTYPE or entity declarations are rejected, and nothing external is loaded.

### Is my XML uploaded?

No. XML is parsed in your browser and nothing is sent to AI Smarty. Input is limited to 500,000 characters.

### How are repeated XML records shown?

Sibling elements with the same fields become a table. Other elements become headings, with attributes as bullet points.

### Are XML comments kept?

No. Comments and processing instructions are left out. Element text, attributes and CDATA content are kept.

## Related tools

- [PDF to Markdown converter](https://aismarty.com/tools/convert-pdf-to-markdown)
- [DOCX to Markdown converter](https://aismarty.com/tools/convert-docx-to-markdown)
- [Google Docs to Markdown converter](https://aismarty.com/tools/convert-google-docs-to-markdown)
- [All tools](https://aismarty.com/tools)
