EN
EnglishEspañolPortuguêsFrançaisDeutschItalianoРусский中文
Get a website

Convert XML to TOML

Convert XML files to TOML online for free. No sign-up, no ads, and your file is deleted right after.

Your config deserves to be read by humans, not parsed by sheer patience.

From Angle Brackets to Tables: Turning XML Into TOML

You inherited a config file written in XML, and your new setup (Cargo, pyproject.toml, Hugo) wants TOML. Converting turns nested elements into tables and repeated elements into arrays of tables, leaving you with something a person can edit without hunting for closing tags.

XML carries things TOML has no slot for: attributes, namespaces, comments, mixed text and child elements, and the ordering of differently named siblings. Those get flattened into ordinary keys or lost. Every XML value is plain text, so check that numbers, booleans and dates came out with the types you expect before you ship it.

What are XML and TOML?

XML: tagged structured data common in business systems

TOML: fmt.toml

How it works

  1. Choose your XML file.
  2. Check that TOML is selected and press convert.
  3. Download your new file. We delete both files automatically.

Questions

What happens to XML attributes when converting to TOML?

TOML has no concept of attributes, so they end up as regular keys next to child values. That can clash with a child element of the same name, so review the output.

Can I convert the TOML back and get my original XML?

Not reliably. The difference between attributes and elements, plus comments, namespaces and mixed content, doesn't survive the trip. Keep your original XML file if you might need it again.

Is it free to convert XML to TOML?

Yes. Converting XML to TOML on Kevora is free, with no sign-up and no ads.

What happens to my file?

It is only used to create your conversion. We delete it as soon as the result is delivered.

Made by Kevora

We built this. Imagine your website.

These tools are free because they show what we can do. We design websites with real character for businesses that want more customers, from $30 for the first year.

Visit Kevora