YAML, XML & TOML Converter

Convert between JSON, YAML, TOML and XML. Paste or open a file, pick the format you want, and copy or download the result.

Runs in your browser. Files are not uploaded.

How to use

  1. Paste your data, or open a file. The format is detected for you.
  2. Choose the format to convert to.
  3. Copy or download the result. Swap sends it back the other way.

Questions

How is XML turned into JSON?

Attributes become keys starting with @, text next to child elements becomes #text, and repeated elements become lists. Going back to XML uses the same rules.

Why can’t my data be written as TOML?

TOML needs an object at the top, and has no empty (null) value. Give empty values a value, or remove them, and try again.

Are comments kept?

No. Comments in YAML, TOML and XML are dropped, because JSON has no comments to hold them.

What happens to dates?

Dates and times are kept as ISO text, such as 2026-09-23, so nothing is changed by time zones.

More developer tools