Input
Result
Direction—
Input0
Output0
How this YAML, JSON and XML converter works
Pick a direction, paste the document or load a file. The tool converts it in the browser: YAML ↔ JSON ↔ XML, plus formatted XML.
YAML is for config, JSON for APIs, XML for feeds and SOAP. XML attributes show up in JSON with an @ prefix. YAML lists become JSON arrays.
YAML
Config ↔ JSON
From a .yml file into a JSON object, or back, with indentation.
XML
Format and convert
Pretty-print XML, or move it through JSON / YAML.
File
Paste or upload
.yaml, .yml, .json or .xml, max 1 MB.
Important:
XML conversion drops comments and the DTD. If JSON has no single root key, the XML is wrapped in the tag you choose.
Useful notes
- YAML allows comments (#). JSON does not. JSON → YAML cannot restore comments that were never in the object.
- XML attributes (`id="1"`) become `@id` in JSON. `#text` is mixed content.
- Format XML only indents. It does not rename tags.
- Nothing is saved on the server. Reloading the page clears the fields.