JSON ↔ YAML ↔ XML
Convert data between JSON, YAML and XML in any direction, with clear errors and file open.
order:
'@_id': INV-2026-041
customer: Asha Traders
city: Pune
paid: true
items:
- name: Notebook
qty: 12
price: 45.5
- name: Pen & refill
qty: 30
price: 10
JSON ↔ YAML ↔ XML FAQ
How do I convert YAML to JSON?
Paste the YAML into Input and choose JSON under To. If the YAML has several documents separated by ---, they become a JSON list.
How are XML attributes converted to JSON?
Each attribute becomes a key starting with @_, so <book id="7"> becomes { "book": { "@_id": 7 } }. Converting back to XML turns those keys into attributes again.
Why do I get an error with a line number?
The input is not valid in the detected format. The message names the line and column; common causes are a missing comma or quote in JSON, uneven indentation in YAML, or tags closed in the wrong order in XML.
What is the difference between JSON and YAML?
They hold the same kind of data. JSON uses braces and quotes and is common in APIs; YAML uses indentation, allows comments and is common in configuration files.
Is my data uploaded?
No. Parsing and conversion happen in your browser, so your files and API data never leave your device.