fileview.dev

Convert Markdown to XML

Convert Markdown to XML in your browser: load your Markdown, choose XML as the target, and download the result. The converter reports exactly what it could not carry across, and nothing is uploaded to a server.

Convert Markdown to XMLRuns in your browser. Nothing uploaded.

When you need this

A narrower case than the rest: a documented table that has to be fed to something XML-shaped, usually an import job or a schema-validated interface, where the document is the only place the data exists.

How to convert Markdown to XML

Load your Markdown
Drag the .md file in, or paste just the table you want. There is no need to strip the surrounding prose — only the tables are read. Nothing leaves your browser at this or any later step.
Choose the target format
Press Ctrl+Shift+K (Cmd+Shift+K on a Mac) to open the conversion panel, then pick XML as the target. The source and the result sit side by side.
Read the loss report
The panel shows whether the conversion is lossless for your particular data, and lists every value it had to transform. Adjust indentation, key sorting and null handling if you need to.
Take the XML
Download the .xml file, copy it, or open it as a new tab to keep working on it in the XML views.

What survives the conversion

Markdown to XML cannot be lossless, because the two formats express different things. Converts the tables to repeated row elements.

A worked example

A row as a repeated element, with the header rewritten:

| max size | unit |
| --- | --- |
| 50 | MB |
Markdown in
<root>
  <row>
    <max_size>50</max_size>
    <unit>MB</unit>
  </row>
</root>
XML out

Privacy

The conversion runs in your browser — in a Web Worker for anything above a quarter of a megabyte, so the page stays responsive. Your data is not uploaded, not logged and not stored. There is no account, and the whole thing works offline.

Convert Markdown to XML

Questions

What happened to my column heading with a space in it?

It was rewritten, because <max size> is not a well-formed XML element name — no parser would accept it. The substitution is reported in the warnings so you can map it back to whatever the receiving schema calls that field.

Is converting Markdown to XML lossless?

No, and no tool can make it so. Converts the tables to repeated row elements. The converter lists every affected value rather than silently dropping it.

Is my Markdown uploaded to a server?

No. The file is read and converted by your browser. Nothing about its contents is sent anywhere, which you can verify in your browser’s network panel or by using the tool with the network disconnected.