JSON ↔ YAML ↔ XML converter
Convert between JSON, YAML, and XML in your browser, with line and column for errors, without uploading anything.
Text you enter never leaves this device.
How to use it
- 1
Paste your text
Put the JSON, YAML, or XML into the input box. JSON, YAML, or XML text of up to 1,000,000 characters.
- 2
Choose the formats
Pick the format of your input and the format you want. They must be different, so the result list leaves out the input format.
- 3
Press Convert
The converted text appears in the result box. The YAML library loads the first time you convert YAML, so that press may take a moment. XML is read with the browser's own parser: an element becomes a key, repeated sibling names become an array, attributes become "@name" keys, and text next to attributes or children becomes "#text". Going to XML, an object with one key uses that key as the root element, otherwise the root is <root>; a key that cannot be an XML name is reported instead of changed.
- 4
Copy the result
Press Copy to place the result on your clipboard. There is no download button.